Epson MX-70 User Manual - Page 78

Why All This Math?

Page 78 highlights

Chapter 8 Not too shabby for rank amateurs. Here's what happens: Line 10 clears the screen. Line 20 selects the "low memory" HIRES page. This part of memory is used for high-resolution graphics, while text is stored on a different 'page' of memory. 48K disk users have two different chunks of memory that can be used for HIRES graphics. If we wanted, we could store 2 different pictures at the same time. Refer to the Apple Programming Reference Manual for more information. Line 30 selects a color. Lines 40 and 70 set up a loop for plotting a figure. Line 50 calculates the radius as a function of the angle. We are using polar coordinates in case you hadn't guessed. If you don't really care, it doesn't really matter - the picture is still pretty. Line 60 converts from polar to rectangular coordinates and plots a single point. Whew! It's a good thing computers don't require a good math background. Why All This Math? Using Math equations to create graphics is easier than by doing it the hard way, point-by-point. They do, however, restrict us to graphs or plots of natural phenomena, and who among us will claim credit for creativity in that area'? Type: TEXT to return back to the TEXT page. Even though we can't see it, the picture remains stored in the HI-RES page of memory. We can play with line 50 to get different figures. Try: 50 R=3 * A and 72

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107

Chapter 8
Not too shabby for rank amateurs.
Here’s what happens:
Line 10 clears the screen.
Line 20 selects the “low memory” HIRES page. This part of memory is
used for high-resolution graphics, while text is stored on a different ‘page’
of memory.
48K disk users have two different chunks of memory that can be used for
HIRES graphics. If we wanted, we could store 2 different pictures at the
same time. Refer to the Apple Programming Reference Manual for more
information.
Line 30 selects a color.
Lines 40 and 70 set up a loop for plotting a figure.
Line 50 calculates the radius as a function of the angle. We are using polar
coordinates in case you hadn’t guessed. If you don’t really care, it doesn’t
really matter - the picture is still pretty.
Line 60 converts from polar to rectangular coordinates and plots a single
point. Whew! It’s a good thing computers don’t require a good math
background.
Why All This Math?
Using Math equations to create graphics is easier than by doing it the hard way,
point-by-point. They do, however, restrict us to graphs or plots of natural
phenomena, and who among us will claim credit for creativity in that area‘?
Type:
TEXT
to return back to the TEXT page. Even though we can’t see it, the picture
remains stored in the HI-RES page of memory.
We can play with line 50 to get different figures. Try:
50 R=3 * A
and
72