Home » Archimedes archive » Acorn User » AU 1993-04.adf » !StarInfo/Files/Newton\1

!StarInfo/Files/Newton\1

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 » Acorn User » AU 1993-04.adf
Filename: !StarInfo/Files/Newton\1
Read OK:
File size: 0154 bytes
Load address: FFFFFB44
Exec address: 696DE9FF
File contents
   10REM     >Newton/1 (Info7)
   20REM By  Alistair Brown
   30REM For 32-bit machines
   40REM (c) BAU April 1993
   50:
   60MODE1:VDU23;8202;0;0;0;0:FORx=-1TO1STEP1/128:FORy=-1TO1STEP1/128:a=x:b=y+.001:REPEATc=a^3-3*a*b^2-1:d=3*b*a^2-b^3:e=(a^2+b^2)^2:f=2*a*b/e:a=(2*a+(a^2-b^2)/e)/3:b=(2*b-f)/3:UNTIL(c^2+d^2)<1E-5:GCOL0,-((a>0)+(a<0ANDb>0)*2+(a<0ANDb<0)*3):PLOT69,x*512+512,y*512+512:NEXT:NEXT

�     >Newton/1 (Info7)
� By  Alistair Brown
� For 32-bit machines
(� (c) BAU April 1993
2:
<��1:�23;8202;0;0;0;0:�x=-1�1�1/128:�y=-1�1�1/128:a=x:b=y+.001:�c=a^3-3*a*b^2-1:d=3*b*a^2-b^3:e=(a^2+b^2)^2:f=2*a*b/e:a=(2*a+(a^2-b^2)/e)/3:b=(2*b-f)/3:�(c^2+d^2)<1E-5:�0,-((a>0)+(a<0�b>0)*2+(a<0�b<0)*3):�69,x*512+512,y*512+512:�:�
�
00000000  0d 00 0a 1b f4 20 20 20  20 20 3e 4e 65 77 74 6f  |.....     >Newto|
00000010  6e 2f 31 20 28 49 6e 66  6f 37 29 0d 00 14 18 f4  |n/1 (Info7).....|
00000020  20 42 79 20 20 41 6c 69  73 74 61 69 72 20 42 72  | By  Alistair Br|
00000030  6f 77 6e 0d 00 1e 19 f4  20 46 6f 72 20 33 32 2d  |own..... For 32-|
00000040  62 69 74 20 6d 61 63 68  69 6e 65 73 0d 00 28 18  |bit machines..(.|
00000050  f4 20 28 63 29 20 42 41  55 20 41 70 72 69 6c 20  |. (c) BAU April |
00000060  31 39 39 33 0d 00 32 05  3a 0d 00 3c e9 eb 31 3a  |1993..2.:..<..1:|
00000070  ef 32 33 3b 38 32 30 32  3b 30 3b 30 3b 30 3b 30  |.23;8202;0;0;0;0|
00000080  3a e3 78 3d 2d 31 b8 31  88 31 2f 31 32 38 3a e3  |:.x=-1.1.1/128:.|
00000090  79 3d 2d 31 b8 31 88 31  2f 31 32 38 3a 61 3d 78  |y=-1.1.1/128:a=x|
000000a0  3a 62 3d 79 2b 2e 30 30  31 3a f5 63 3d 61 5e 33  |:b=y+.001:.c=a^3|
000000b0  2d 33 2a 61 2a 62 5e 32  2d 31 3a 64 3d 33 2a 62  |-3*a*b^2-1:d=3*b|
000000c0  2a 61 5e 32 2d 62 5e 33  3a 65 3d 28 61 5e 32 2b  |*a^2-b^3:e=(a^2+|
000000d0  62 5e 32 29 5e 32 3a 66  3d 32 2a 61 2a 62 2f 65  |b^2)^2:f=2*a*b/e|
000000e0  3a 61 3d 28 32 2a 61 2b  28 61 5e 32 2d 62 5e 32  |:a=(2*a+(a^2-b^2|
000000f0  29 2f 65 29 2f 33 3a 62  3d 28 32 2a 62 2d 66 29  |)/e)/3:b=(2*b-f)|
00000100  2f 33 3a fd 28 63 5e 32  2b 64 5e 32 29 3c 31 45  |/3:.(c^2+d^2)<1E|
00000110  2d 35 3a e6 30 2c 2d 28  28 61 3e 30 29 2b 28 61  |-5:.0,-((a>0)+(a|
00000120  3c 30 80 62 3e 30 29 2a  32 2b 28 61 3c 30 80 62  |<0.b>0)*2+(a<0.b|
00000130  3c 30 29 2a 33 29 3a f0  36 39 2c 78 2a 35 31 32  |<0)*3):.69,x*512|
00000140  2b 35 31 32 2c 79 2a 35  31 32 2b 35 31 32 3a ed  |+512,y*512+512:.|
00000150  3a ed 0d ff                                       |:...|
00000154