Home » Archimedes archive » Archimedes World » AW-1995-03-Disc1.adf » Disk1Mar95 » !AWMar95/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs
!AWMar95/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/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-03-Disc1.adf » Disk1Mar95 |
Filename: | !AWMar95/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs |
Read OK: | ✔ |
File size: | 095B bytes |
Load address: | 0000 |
Exec address: | 0000 |
Duplicates
There are 5 duplicate copies of this file in the archive:
- Archimedes archive » Archimedes World » AW-1995-03-Disc1.adf » Disk1Mar95 » !AWMar95/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs
- Archimedes archive » Archimedes World » AW-1994-12-Disc1.adf » Disk1Dec94 » !AWDec94/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs
- Archimedes archive » Archimedes World » AW-1995-01-Disc1.adf » Disk1Jan95 » !AWJan95/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs
- Archimedes archive » Archimedes World » AW-1995-04-Disc1.adf » Disk1Apr95 » !AWApr95/Goodies/Draw/!DrawBasic/Info/Commands/Calculus/Graphs
- Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » InTheMag/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs
- Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/!DrawBasic/Info/Commands/Calculus/Graphs
File contents
Calculus.Graphs : ================= Graphs are discussed in Chapter 9 of the DrawBasic book. ----------------------------------------------------------------------------- � MATHEMATICAL FUNCTIONS (pages 86-89) ---------------------- �Graph(f$,n%) �@Graph(f$,a,b,n%) �Graph(f$,a,b,n%) �Function(f$,n%) �@Function(f$,a,b,n%) �Function(f$,a,b,n%) �Points(f$,n%) �@Points(f$,a,b,n%) �Points(f$,a,b,n%) �Curve(x$,y$,A,B,n%) �@Curve(x$,y$,a,b,n%) �Curve(x$,y$,A,B,n%) �ClosePlot(data(),x%,y%) �DrawClip(RETURN X,RETURN Y,x,y) �CubicClip(RETURN X,RETURN Y,x,y,_h) �Draw_ControlLinearStep �Draw_DoubleStep �Draw_HalveStep �Slope(data(),x%,y%,i%,RETURN mx,RETURN �Slope(f$,X,Y,h,a,b,type%) ----------------------------------------------------------------------------- � PLOTTING DISCRETE DATA (pages 83-85) ---------------------- �GraphPlot(data(),x%,y%) �@GraphPlot(data(),x%,y%) �GraphPlot(data(),x%,y%) �LinePlot(data(),x%,y%) �@LinePlot(data(),x%,y%) �LinePlot(data(),x%,y%) �Plot(data(),x%,y%) �@Plot(data(),x%,y%) �Plot(data(),x%,y%) �MatRead(data()) �MaxMin(data(),RETURN min, RETURN max) ----------------------------------------------------------------------------- � CHARTS (pages 79-83) ------ �Pie(data()) 79 �Histogram(data(),gap) 81 �BarChart(data()) 81 �BarScales(Div%,Sub%) �BarScalesLarge �BarScalesSmall ----------------------------------------------------------------------------- � MISC. ------ �Resolution(max%,min%) 88 �MaxNoofPoints �MinNoofPoints �DotsPerInch �ScreenSize(factor) �ScreenSize �Accuracy(dots%)
00000000 43 61 6c 63 75 6c 75 73 2e 47 72 61 70 68 73 20 |Calculus.Graphs | 00000010 3a 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |:.==============| 00000020 3d 3d 3d 0a 0a 20 47 72 61 70 68 73 20 61 72 65 |===.. Graphs are| 00000030 20 64 69 73 63 75 73 73 65 64 20 69 6e 20 43 68 | discussed in Ch| 00000040 61 70 74 65 72 20 39 20 6f 66 20 74 68 65 20 44 |apter 9 of the D| 00000050 72 61 77 42 61 73 69 63 20 62 6f 6f 6b 2e 20 0a |rawBasic book. .| 00000060 0a 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |. --------------| 00000070 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 000000a0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a |---------------.| 000000b0 20 20 8f 20 4d 41 54 48 45 4d 41 54 49 43 41 4c | . MATHEMATICAL| 000000c0 20 46 55 4e 43 54 49 4f 4e 53 20 20 28 70 61 67 | FUNCTIONS (pag| 000000d0 65 73 20 38 36 2d 38 39 29 0a 20 20 20 20 2d 2d |es 86-89). --| 000000e0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 000000f0 2d 2d 2d 2d 20 20 20 20 20 20 20 20 20 20 20 20 |---- | 00000100 20 20 20 20 20 20 20 20 20 20 0a 20 b7 47 72 61 | . .Gra| 00000110 70 68 28 66 24 2c 6e 25 29 20 20 20 20 20 20 20 |ph(f$,n%) | 00000120 20 20 20 20 20 b7 40 47 72 61 70 68 28 66 24 2c | .@Graph(f$,| 00000130 61 2c 62 2c 6e 25 29 20 20 20 20 20 20 20 20 20 |a,b,n%) | 00000140 bb 47 72 61 70 68 28 66 24 2c 61 2c 62 2c 6e 25 |.Graph(f$,a,b,n%| 00000150 29 20 20 20 20 20 20 20 20 20 20 20 b7 46 75 6e |) .Fun| 00000160 63 74 69 6f 6e 28 66 24 2c 6e 25 29 20 20 20 20 |ction(f$,n%) | 00000170 20 20 20 20 20 b7 40 46 75 6e 63 74 69 6f 6e 28 | .@Function(| 00000180 66 24 2c 61 2c 62 2c 6e 25 29 20 20 20 20 20 20 |f$,a,b,n%) | 00000190 bb 46 75 6e 63 74 69 6f 6e 28 66 24 2c 61 2c 62 |.Function(f$,a,b| 000001a0 2c 6e 25 29 0a 20 b7 50 6f 69 6e 74 73 28 66 24 |,n%). .Points(f$| 000001b0 2c 6e 25 29 20 20 20 20 20 20 20 20 20 20 20 b7 |,n%) .| 000001c0 40 50 6f 69 6e 74 73 28 66 24 2c 61 2c 62 2c 6e |@Points(f$,a,b,n| 000001d0 25 29 20 20 20 20 20 20 20 20 bb 50 6f 69 6e 74 |%) .Point| 000001e0 73 28 66 24 2c 61 2c 62 2c 6e 25 29 20 20 20 0a |s(f$,a,b,n%) .| 000001f0 20 b7 43 75 72 76 65 28 78 24 2c 79 24 2c 41 2c | .Curve(x$,y$,A,| 00000200 42 2c 6e 25 29 20 20 20 20 20 b7 40 43 75 72 76 |B,n%) .@Curv| 00000210 65 28 78 24 2c 79 24 2c 61 2c 62 2c 6e 25 29 20 |e(x$,y$,a,b,n%) | 00000220 20 20 20 20 20 bb 43 75 72 76 65 28 78 24 2c 79 | .Curve(x$,y| 00000230 24 2c 41 2c 42 2c 6e 25 29 0a 20 20 0a 20 20 20 |$,A,B,n%). . | 00000240 20 20 20 20 20 b7 43 6c 6f 73 65 50 6c 6f 74 28 | .ClosePlot(| 00000250 64 61 74 61 28 29 2c 78 25 2c 79 25 29 0a 20 0a |data(),x%,y%). .| 00000260 20 20 20 20 20 20 20 20 b7 44 72 61 77 43 6c 69 | .DrawCli| 00000270 70 28 52 45 54 55 52 4e 20 58 2c 52 45 54 55 52 |p(RETURN X,RETUR| 00000280 4e 20 59 2c 78 2c 79 29 20 0a 20 20 20 20 20 20 |N Y,x,y) . | 00000290 20 20 b7 43 75 62 69 63 43 6c 69 70 28 52 45 54 | .CubicClip(RET| 000002a0 55 52 4e 20 58 2c 52 45 54 55 52 4e 20 59 2c 78 |URN X,RETURN Y,x| 000002b0 2c 79 2c 5f 68 29 20 20 20 20 20 0a 20 20 20 20 |,y,_h) . | 000002c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000002d0 0a 20 20 20 20 20 20 20 20 b7 44 72 61 77 5f 43 |. .Draw_C| 000002e0 6f 6e 74 72 6f 6c 4c 69 6e 65 61 72 53 74 65 70 |ontrolLinearStep| 000002f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000300 20 20 0a 20 20 20 20 20 20 20 20 b7 44 72 61 77 | . .Draw| 00000310 5f 44 6f 75 62 6c 65 53 74 65 70 20 20 20 20 20 |_DoubleStep | 00000320 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000330 20 20 20 20 0a 20 20 20 20 20 20 20 20 b7 44 72 | . .Dr| 00000340 61 77 5f 48 61 6c 76 65 53 74 65 70 0a 20 20 20 |aw_HalveStep. | 00000350 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000360 20 20 20 20 20 20 20 20 20 20 20 20 20 0a 20 20 | . | 00000370 20 20 20 20 20 20 b7 53 6c 6f 70 65 28 64 61 74 | .Slope(dat| 00000380 61 28 29 2c 78 25 2c 79 25 2c 69 25 2c 52 45 54 |a(),x%,y%,i%,RET| 00000390 55 52 4e 20 6d 78 2c 52 45 54 55 52 4e 20 20 0a |URN mx,RETURN .| 000003a0 20 20 20 20 20 20 20 20 20 bb 53 6c 6f 70 65 28 | .Slope(| 000003b0 66 24 2c 58 2c 59 2c 68 2c 61 2c 62 2c 74 79 70 |f$,X,Y,h,a,b,typ| 000003c0 65 25 29 20 20 20 20 20 20 20 20 20 20 20 20 20 |e%) | 000003d0 20 20 20 20 20 20 20 20 20 0a 20 2d 2d 2d 2d 2d | . -----| 000003e0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000420 2d 2d 2d 2d 2d 2d 2d 2d 0a 20 20 8f 20 50 4c 4f |--------. . PLO| 00000430 54 54 49 4e 47 20 44 49 53 43 52 45 54 45 20 44 |TTING DISCRETE D| 00000440 41 54 41 20 20 20 28 70 61 67 65 73 20 38 33 2d |ATA (pages 83-| 00000450 38 35 29 0a 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d |85). --------| 00000460 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 20 20 |-------------- | 00000470 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000480 20 20 20 20 0a 20 b7 47 72 61 70 68 50 6c 6f 74 | . .GraphPlot| 00000490 28 64 61 74 61 28 29 2c 78 25 2c 79 25 29 20 20 |(data(),x%,y%) | 000004a0 b7 40 47 72 61 70 68 50 6c 6f 74 28 64 61 74 61 |.@GraphPlot(data| 000004b0 28 29 2c 78 25 2c 79 25 29 20 20 20 bb 47 72 61 |(),x%,y%) .Gra| 000004c0 70 68 50 6c 6f 74 28 64 61 74 61 28 29 2c 78 25 |phPlot(data(),x%| 000004d0 2c 79 25 29 20 20 b7 4c 69 6e 65 50 6c 6f 74 28 |,y%) .LinePlot(| 000004e0 64 61 74 61 28 29 2c 78 25 2c 79 25 29 20 20 20 |data(),x%,y%) | 000004f0 b7 40 4c 69 6e 65 50 6c 6f 74 28 64 61 74 61 28 |.@LinePlot(data(| 00000500 29 2c 78 25 2c 79 25 29 20 20 20 20 bb 4c 69 6e |),x%,y%) .Lin| 00000510 65 50 6c 6f 74 28 64 61 74 61 28 29 2c 78 25 2c |ePlot(data(),x%,| 00000520 79 25 29 20 20 20 b7 50 6c 6f 74 28 64 61 74 61 |y%) .Plot(data| 00000530 28 29 2c 78 25 2c 79 25 29 20 20 20 20 20 20 20 |(),x%,y%) | 00000540 b7 40 50 6c 6f 74 28 64 61 74 61 28 29 2c 78 25 |.@Plot(data(),x%| 00000550 2c 79 25 29 20 20 20 20 20 20 20 20 bb 50 6c 6f |,y%) .Plo| 00000560 74 28 64 61 74 61 28 29 2c 78 25 2c 79 25 29 0a |t(data(),x%,y%).| 00000570 0a 20 b7 4d 61 74 52 65 61 64 28 64 61 74 61 28 |. .MatRead(data(| 00000580 29 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |)) | 00000590 20 20 20 20 20 20 20 20 20 20 20 0a 20 b7 4d 61 | . .Ma| 000005a0 78 4d 69 6e 28 64 61 74 61 28 29 2c 52 45 54 55 |xMin(data(),RETU| 000005b0 52 4e 20 6d 69 6e 2c 20 52 45 54 55 52 4e 20 6d |RN min, RETURN m| 000005c0 61 78 29 20 20 20 20 0a 20 2d 2d 2d 2d 2d 2d 2d |ax) . -------| 000005d0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000610 2d 2d 2d 2d 2d 2d 20 20 20 8f 20 43 48 41 52 54 |------ . CHART| 00000620 53 20 20 28 70 61 67 65 73 20 37 39 2d 38 33 29 |S (pages 79-83)| 00000630 0a 20 20 20 2d 2d 2d 2d 2d 2d 20 20 20 20 20 20 |. ------ | 00000640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000670 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0a 20 | . | 00000680 b7 50 69 65 28 64 61 74 61 28 29 29 20 20 20 20 |.Pie(data()) | 00000690 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 000006c0 20 20 20 20 20 20 20 20 20 20 20 20 37 39 0a 20 | 79. | 000006d0 b7 48 69 73 74 6f 67 72 61 6d 28 64 61 74 61 28 |.Histogram(data(| 000006e0 29 2c 67 61 70 29 20 20 20 20 20 20 20 20 20 20 |),gap) | 000006f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000710 20 20 20 20 20 20 20 20 20 20 20 20 38 31 0a 20 | 81. | 00000720 b7 42 61 72 43 68 61 72 74 28 64 61 74 61 28 29 |.BarChart(data()| 00000730 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |) | 00000740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000760 20 20 20 20 20 20 20 20 20 20 20 20 38 31 0a 20 | 81. | 00000770 0a 20 20 20 20 b7 42 61 72 53 63 61 6c 65 73 28 |. .BarScales(| 00000780 44 69 76 25 2c 53 75 62 25 29 0a 20 20 20 20 20 |Div%,Sub%). | 00000790 bb 42 61 72 53 63 61 6c 65 73 4c 61 72 67 65 0a |.BarScalesLarge.| 000007a0 20 20 20 20 20 bb 42 61 72 53 63 61 6c 65 73 53 | .BarScalesS| 000007b0 6d 61 6c 6c 20 20 20 20 20 20 20 20 20 20 20 20 |mall | 000007c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 000007e0 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d | ---------| 000007f0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000830 2d 2d 2d 2d 20 20 20 8f 20 4d 49 53 43 2e 0a 20 |---- . MISC.. | 00000840 20 2d 2d 2d 2d 2d 2d 20 20 20 20 20 20 20 20 20 | ------ | 00000850 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000860 20 20 0a 20 b7 52 65 73 6f 6c 75 74 69 6f 6e 28 | . .Resolution(| 00000870 6d 61 78 25 2c 6d 69 6e 25 29 20 20 20 20 20 20 |max%,min%) | 00000880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 000008a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 38 | 8| 000008b0 38 0a 20 20 bb 4d 61 78 4e 6f 6f 66 50 6f 69 6e |8. .MaxNoofPoin| 000008c0 74 73 20 20 20 20 20 20 20 20 20 20 20 20 0a 20 |ts . | 000008d0 20 bb 4d 69 6e 4e 6f 6f 66 50 6f 69 6e 74 73 0a | .MinNoofPoints.| 000008e0 20 20 20 bb 44 6f 74 73 50 65 72 49 6e 63 68 0a | .DotsPerInch.| 000008f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000900 20 20 20 20 20 0a 20 b7 53 63 72 65 65 6e 53 69 | . .ScreenSi| 00000910 7a 65 28 66 61 63 74 6f 72 29 0a 20 20 bb 53 63 |ze(factor). .Sc| 00000920 72 65 65 6e 53 69 7a 65 0a 20 20 20 20 20 20 20 |reenSize. | 00000930 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000940 20 20 20 0a 20 b7 41 63 63 75 72 61 63 79 28 64 | . .Accuracy(d| 00000950 6f 74 73 25 29 20 20 20 20 20 20 |ots%) | 0000095b