home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / plot_389.lzh / Plot / Plot5.1.Doc < prev    next >
Text File  |  1990-10-23  |  10KB  |  187 lines

  1.    Plot5.1, a 3-D function plotting program © 1990 by Terry W. Gintz.
  2.  
  3.    Plot5.1 includes some enhancements and bug fixes to the previous version
  4. of Plot.  Provision is made for coordinate translation on both axis,
  5. parametric equations, and standardized notation of the pow function (x^y --
  6. which now works as specified.)
  7.  
  8. About the menus and new options:
  9.  
  10.    On the main menu:
  11.  
  12.    New Formula calls up a formula window containing two formula gadgets,
  13. four parameter substitution gadgets and a title gadget.  The main functions
  14. are executed one after another, allowing equations with two solutions to be
  15. plotted.  Their length is 62 characters each.  The four smaller string
  16. gadgets are labeled D, F, J and K.  Use these to enter mini-formulas (24 chars
  17. maximum.)  Thus, D might be entered as X+Y.  The main
  18. formula could be written SIN d.  The program would then compute and plot the
  19. equivalent formula sin(x+y), which could be used in the title gadget to
  20. label the plot.  Do not use forward referencing in the sustitution gadgets.
  21. The mini-functions are calculated in real time, so d will be calculated
  22. before k.  K could be written as sin d, where d might have the formula x+y.
  23. However if d were written as sin k, where k was X+Y, the plot would appear
  24. to work, but it would jag due to inaccurate data on the previous pass. For
  25. the same reason recursion does not work.  Use of square root is now
  26. supported anywhere in the main functions or mini-functions.  Use
  27. parenthesis to avoid ambiguitity.  Parenthesis may used with any trig
  28. operator.
  29.    Mini-formulas D and F can alteratively be used for coordinate-translation
  30. on both axis, provided they are not used in either of the main formulas.
  31. The value of D is applied to the x-coordinate before a point is plotted.
  32. The value of F is applied to the y-coordinate before a point is plotted.
  33.    Mini-formulas J and K can alternatively be used to plot parametric
  34. equations of the form x=sin(T) and y=cos(T), provided they are not used in
  35. either of the main formulas.  The Miny-Maxy range is used for 'T'.  You
  36. enter the x-parametric equation via J and the y-parametric equation via K.
  37. See the cycloid options below for a special application of parametric
  38. equations.
  39.  
  40.    Stop Plotting halts the drawing after New Plot or New
  41. Formula have initialized a new drawing cycle.
  42.  
  43.    Use erase screen to clear the background before drawing a new plot.
  44. The screen is not cleared automatically before each plot to allow one to
  45. compare similiar plots side-by-side.  The plot title is printed on the screen
  46. for subsequent plots one line up from the previous one, until the screen is
  47. erased.  The title will then be drawn at the bottom left of the screen.
  48.  
  49.    Use save function to save a configuration for future recall.  This saves
  50. all the slider options described below, all the substitution formulas and
  51. the main formulas plus the plot title, so that unusual plots can be easily
  52. shared between Plot users.
  53.  
  54.    Load function loads a previously saved function configuration.  After
  55. the file is loaded, the set-options window is displayed.  Click on Okay to
  56. set the new options.  Then the formula window is shown.  Click on Okay to
  57. set the new formula.  Use New Plot to show the new function.
  58.  
  59.    The 'Set Options' window called up by the second menu, contains 13 slider-
  60. type gadgets for setting up variables to handle most plotting requirements.
  61.  
  62. Roll, pitch and yaw are used to describe the rotations.  Roll turns the plot
  63. sideways; pitch tips the plot forward or backward; and yaw spins the plot on
  64. the viewing axis.
  65.  
  66.    Magx and Magy determine the overall magnification on the x and y
  67. dimensions.  Some formulas require more or less magnification to view well.
  68. Limits are .1 to 100X.
  69.  
  70.    X Steps and Y Steps determine the spacing between dots and rows on the
  71. screen.  Vary 1-600 for increasing resolution.  Generally a much smaller
  72. number of Y steps than X Steps is required for clarity.  Use 1 step to see
  73. the function in two rather than three dimensions.
  74.  
  75.    Minx, Miny, Maxx, Maxxy are the ranges for the loops that determine which
  76. numbers (angles) are scanned to produce the plot.  Provision is made for PI
  77. -PI, -2*PI and 2*PI on the sliders, so accurate plotting can be made on trig
  78. functions.  Limits are -20 to 20 radians.
  79.  
  80.    Minz and Maxz set the maximum z factor.  This is usually the value of the
  81. main formula before scaling occurs.  Therefore, it is possible to plot cones
  82. that look like textbook examples without the exponential curl at the edges.
  83. Limits can be set from -50 to 50.
  84.  
  85.    When plotting new formulas with 'New Plot' and 'New Formula' use the
  86. green cursor to locate the plot on the screen, clicking the left mouse
  87. button to start plotting.  The plot may be stopped at any time by also
  88. clicking the left mouse button.
  89.  
  90.   Use 'New Formula' to enter your own formula.  The program now interprets
  91. up to 10 levels of parenthesis.
  92.  
  93. The trig and exponential functions translated include sine (sin), arc sine
  94. (asn), cosine (cos), arc cosine(acs), tangent (tan), hyperbolic tangent (th),
  95. hyperbolic sine (sh), hyperbolic cosine (ch), log (log), natural log (ln),
  96. power (pow), arc tangent (atn), absolute value (abs), exponential (exp)
  97. and square root (sqr.)
  98.  
  99. The math functions are ²(square),³(cube),*(multiply),-(subtract),/(divide),
  100. and +(add).  The square and cube operators are keyboard-acessible via Alt-2
  101. and Alt-3, respectively.  Use '-' to enter a negative number where necessary.
  102.  
  103. The constants are PI and E (ln (1)), plus any floating-point number up to 9
  104. digits (including the decimal point).
  105.  
  106. The power function (x to the y power) is entered in standard notation:
  107. 'xpowy or x^y', with optional parenthesis necessary around complex exponents
  108. or variables.
  109.  
  110. Note:  Range limits exist for arguments to these functions: arc sine,
  111. hyperbolic sine, arc cosine, hyperbolic cosine, arc tangent, and hyperbolic
  112. tangent (+/-348.6 for the hyperbolic functions, +/-1.0 for the arc
  113. functions), the log functions (must be >0) and the power function (x must be
  114. integral and non-zero when y<0, and 0^0 is undefined).  Square root is
  115. undefined for x<0.  No computations or plotting are done when these limits
  116. are exceeded.
  117.  
  118.    Syntax for an acceptable formula is AS([XY])+bs([xy])...
  119. .up to 62 characters per formula.  Algebraic notation is supported to a
  120. limited degree.  E.G. you can enter a variable as 2x², instead of 2*x*x. Some
  121. trig notation, such as sin²x is now supported.
  122.  
  123.    A and B are optional constants.
  124.  
  125. S is an optional trig function (1 to three letters: 1 will work for sine,
  126. cosine and tangent, but use the above abreviations for the other functions.
  127. X and Y are the standard variables (or use d,f,j,k to denote a mini-function.)
  128. The '+' could be any of the math functions.
  129.  
  130.    Use parenthesis to separate complex expressions.  Use parenthesis to embed
  131. trig functions within other trig functions, etc.  Missing parenthesis or
  132. extraneous operators that do nothing may result in inaccurate or incomplete
  133. plots.  Runtime checks are made for division-by-zero and over-nested
  134. parenthesis.  Use algebraic notation for speed and to avoid ambiguity with
  135. math operators.  '*' and '\' are executed before '+' or '-' in simple
  136. expressions like x+y*sinx, but don't rely on this in more complicated
  137. expressions (use parenthesis when in doubt).
  138.  
  139.    Use Line Plot to produce a plot that connects the space between dots.
  140. Generally, you reverse the amount of x and y steps from a point-by-point
  141. plot.  The advantages of a line plot are a faster plot(though cruder with
  142. fewer steps), and more continuity (some plots do not become continuous
  143. even with the maximum number of steps on a point-by-point basis.)
  144.  
  145.    Use Two Pass to plot a cross pattern on the previous one to enhance
  146. viewability on some plots.
  147.  
  148.    Use Polar Plot to plot polar functions such as 1-cos(2y).
  149.  
  150.    Use Hypocycloid to equate the x and y coordinates with the cycloid
  151. formulas:
  152.    x = (J-K)cos(T)+Kcos(((J-K)/K)T)
  153.    y = (J-K)sin(T)-Ksin(((J-K)/K)T)
  154.    where J and K are entered via the J and K mini-formula gadgets.
  155.    T is derived from the Miny and Maxy range (the Y variable).
  156.    These are usually integral values,non-zero, where J>K.
  157.  
  158.    Use Epicycloid to equate the x and y coordinates with the cycloid
  159. formulas:
  160.    x = (J+K)cos(T)-Kcos(((J+K)/K)T)
  161.    y = (J+K)sin(T)-Ksin(((J+K)/K)T)
  162.    where J and K are entered via the J and K mini-formula gadgets.
  163.    T is derived from the Miny and Maxy range (the Y variable).
  164.    These are also usually integral values,non-zero, where J>K.
  165.  
  166.    Use Hidden Line #1 for plotting functions with only one solution, in one
  167. continuous plane.  This algorithm removes lines which fall between the
  168. minimum and maximum (visible) points of lines or points already printed.  It
  169. won't work for cone functions or hyperbolic functions of two connected
  170. planes.  Use Hidden Line #2 for these functions.  Hidden Line #2 works as
  171. Hidden Line #1 for the first (positive) solution to a function, then resets
  172. the upper limit to plot the negative solution.  No points are plotted on the
  173. second pass that exceed or equal the lower limits established on the first
  174. pass.  There are some functions which don't work with either hidden-line
  175. routine, or work only at a certain viewing angle.  Hidden-line removal is
  176. not available yet on polar plots, Two-Pass, or the cycloid plots.
  177.  
  178.    Any questions, comments or donations should be sent to:
  179.  
  180.    Terry W. Gintz
  181.    4237 Marcum Lane
  182.    Eugene, OR 97402
  183.  
  184.    A donation of $20 or more for Plot will get you the docs for all my
  185. current programs, plus any one of them for $5 off their suggested price,
  186. and update privileges for $10.
  187.