Home » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » InTheMag/DrawBasic/Graphs

InTheMag/DrawBasic/Graphs

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1
Filename: InTheMag/DrawBasic/Graphs
Read OK:
File size: 00F4 bytes
Load address: 0000
Exec address: 0000
File contents
lambda=.5 : @%="+F4.1"
m=7
FOR x=1 TO m+1 STEP m
FOR y=.5 TO m+1 STEP m
 �FrameSize(x,y,m-2,m-2)
 �Screen(0,12,-2,2)
 �FrameScale(2,2,2,4)
  lambda-=.1
 �Function("EXP(-lambda*x)*SINx",50)
 �Print("Lambda="+STR$lambda,1,-1.5)
 NEXT
 NEXT

�Quit
00000000  6c 61 6d 62 64 61 3d 2e  35 20 3a 20 40 25 3d 22  |lambda=.5 : @%="|
00000010  2b 46 34 2e 31 22 0a 6d  3d 37 0a 46 4f 52 20 78  |+F4.1".m=7.FOR x|
00000020  3d 31 20 54 4f 20 6d 2b  31 20 53 54 45 50 20 6d  |=1 TO m+1 STEP m|
00000030  0a 46 4f 52 20 79 3d 2e  35 20 54 4f 20 6d 2b 31  |.FOR y=.5 TO m+1|
00000040  20 53 54 45 50 20 6d 0a  20 a0 46 72 61 6d 65 53  | STEP m. .FrameS|
00000050  69 7a 65 28 78 2c 79 2c  6d 2d 32 2c 6d 2d 32 29  |ize(x,y,m-2,m-2)|
00000060  0a 20 a0 53 63 72 65 65  6e 28 30 2c 31 32 2c 2d  |. .Screen(0,12,-|
00000070  32 2c 32 29 0a 20 a0 46  72 61 6d 65 53 63 61 6c  |2,2). .FrameScal|
00000080  65 28 32 2c 32 2c 32 2c  34 29 0a 20 20 6c 61 6d  |e(2,2,2,4).  lam|
00000090  62 64 61 2d 3d 2e 31 0a  20 a0 46 75 6e 63 74 69  |bda-=.1. .Functi|
000000a0  6f 6e 28 22 45 58 50 28  2d 6c 61 6d 62 64 61 2a  |on("EXP(-lambda*|
000000b0  78 29 2a 53 49 4e 78 22  2c 35 30 29 0a 20 a0 50  |x)*SINx",50). .P|
000000c0  72 69 6e 74 28 22 4c 61  6d 62 64 61 3d 22 2b 53  |rint("Lambda="+S|
000000d0  54 52 24 6c 61 6d 62 64  61 2c 31 2c 2d 31 2e 35  |TR$lambda,1,-1.5|
000000e0  29 0a 20 4e 45 58 54 0a  20 4e 45 58 54 0a 0a a0  |). NEXT. NEXT...|
000000f0  51 75 69 74                                       |Quit|
000000f4