home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / PLOT / PLOT3D_A.ZIP / PLOT3D.DOC < prev    next >
Encoding:
Text File  |  1991-06-17  |  3.6 KB  |  117 lines

  1.                                     Plot3d
  2.                                by Adrian Mariano
  3.                                 and Karl Crary
  4.  
  5.                        Copyright 1991 by Adrian Mariano
  6.  
  7. You may use and distribute this program as much as you like so long as you do 
  8. not charge for this service.  I am not liable for failure of this program to 
  9. perform in any way.  
  10.  
  11. Please send any comments, patches, or improvements to me at:
  12.  
  13.                     adrian@milton.u.washington.edu
  14.  
  15. Plot3d is a program for plotting 3 dimensional surfaces specified via one of 
  16. the three standard coordinate systems.
  17.  
  18. It uses a command driven interface with the following commands:
  19.  
  20. type <type><dependent var>
  21.      
  22.      Selects coordinate system for plotting.  The three available coordinate 
  23.      systems are: cartesian, a right handed orthoginal coordinate system with 
  24.      x, y and z as the variables; cylindrical, polar coordinate system with r 
  25.      the orthogonal distance from the z axis, theta the angle around the z 
  26.      axis, and z the distance along the z axis; and spherical, where rho is 
  27.      the distance from the origin, theta is the angle around the z axis, and 
  28.      phi is the angle between the z axis and the point.
  29.  
  30.      The <type> above should be one of cart, cylinder, or sphere.
  31.  
  32.      The dependent variable is the one which depends on the other two.  It 
  33.      should be specified immediately after the type (without spaces). 
  34.  
  35.      The default is cartz, which allows you to plot surfaces of the form 
  36.      z=f(x,y).  
  37.  
  38.      To plot phi=f(rho, theta) in spherical coordinates, use the command 
  39.      'type spherephi'
  40.  
  41. plot <function>
  42.  
  43.      Plots the function with the current settings.  The function should be 
  44.      specified WITHOUT an equals sign.  
  45.  
  46.      So x^2+y^2 is ok.  z=x^2+y^2 is not ok.
  47.  
  48.      Functions use the standard operations, +, -, /, *, and ^ (for exponents).
  49.  
  50.      e give 2.71828..., and pi produces the value pi.
  51.  
  52.      The '*' for multiplication may be omitted.
  53.  
  54.      The following functions are supported:
  55.        [arc]sin, [arc]cos, [arc]tan, [arc]sinh, [arc]cosh, [arc]tanh
  56.        ln, log, abs
  57.  
  58. replot
  59.  
  60.      plots the same function again with the current settings (which may be 
  61.      different from when the function was last plotted).
  62.  
  63. show
  64.  
  65.      displays current plotting parameters
  66.  
  67. xmin, xmax, ymin, ymax, zmin, zmax <number>
  68.  
  69.      set the region to display on screen.  
  70.  
  71. <var>start, <var>end, <var>steps
  72.      
  73.      The program maintains separate values for the ranges over when the 
  74.      independent variables should vary, and the number of steps to take over 
  75.      this range for each coordinate system.  You can set these values for the 
  76.      current coordinate system only by using these commands, where <var> is 
  77.      the variable you want to affect.
  78.  
  79. aspect <number>
  80.  
  81.      Set aspect ratio of your monitor
  82.  
  83. distance <number>
  84.      
  85.      Set perspective distance from image.  Use 0 for no perspective.  Distance 
  86.      is measured in multiples of the image depth (direction in the dimension 
  87.      perpendicular to your monitor). 
  88.  
  89. spin, tip <number>
  90.  
  91.      Set view angle in degrees.  Spin rotates the image around the z axis, tip 
  92.      rotates the image around the y axis. 
  93.  
  94.  
  95.  
  96. LIMITATIONS
  97.  
  98.     Selecting more than about 55 x 55 resolution results in weird behavior for 
  99.     reasons I don't understand.
  100.  
  101. EXAMPLES
  102.     
  103. Here is an example session that produces a few interesting graphs:
  104.     
  105.     plot sin(x)
  106.     plot sin(y)
  107.     plot sin(x)*sin(y)
  108.     type cylinderr
  109.     plot 2.5
  110.     plot sin(2z)
  111.     plot sin(3z)+.5
  112.     type sphererho
  113.     plot 2.5sin(3theta)
  114.     thetasteps 50
  115.     phisteps 50
  116.     replot
  117.