diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/lgc2/4-4-6.mp |
Initial commit
Diffstat (limited to 'info/examples/lgc2/4-4-6.mp')
-rw-r--r-- | info/examples/lgc2/4-4-6.mp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/info/examples/lgc2/4-4-6.mp b/info/examples/lgc2/4-4-6.mp new file mode 100644 index 0000000000..dda27950af --- /dev/null +++ b/info/examples/lgc2/4-4-6.mp @@ -0,0 +1,28 @@ +% --- start of displayed preamble in the book --- + +% --- end of displayed preamble in the book --- +defaultfont:="ptmr8r"; +warningcheck:=0; +beginfig(1) +numeric r,pr,x,rmin,rmax,ur,ux; +rmin=1.9; +rmax=3; +ur=5cm; +ux=6cm; +r:=rmin; +pr:=(rmax-rmin)/250; +for i=1 upto 250: + x:=.3; + for j=1 upto 50: + x:=(1+r)*x-r*x*x; + endfor; + for j=1 upto 50: + x:=(1+r)*x-r*x*x; + draw (r,x) xscaled ur yscaled ux; + endfor; + r:=r+pr; +endfor; + + +endfig; +end; |