home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / sm30a.zip / SYMBMATH.H49 < prev    next >
Text File  |  1993-11-07  |  2KB  |  48 lines

  1.         5.2.  Plotting y = f(x)
  2.     You can plot a function of y = f(x) on the xy-plane by a single 
  3. external function
  4.  
  5.         plot(f(x),x)
  6.                 plot(f(x),x,xmin,xmax)
  7.                 plot(f(x),x,xmin,xmax,ymin,ymax)
  8.  
  9. f(x) can be either a function  with bound variable x or an expression
  10. involving x.  For example, you could graph the parabola with the command
  11. plot(x^2,x).  
  12.      The xmin and xmax are range of x-axis, the ymin and ymax are range of
  13. y-axis. The default values are xmin=-5, xmax=5, ymin=-5, and ymax=5.
  14. The values of xmin, xmax, ymin, ymax are real numbers, such that  
  15. xmin < xmax  and  ymin < ymax.  Thses values tell SymbMath that the 
  16. visible screen corresponds to a portion of the xy-plane with  
  17. xmin <= x <= xmax  and  ymin <= y <= ymax. 
  18.      The operator plot() plots one point (x,f(x)) for each pixel on the
  19. x-axis, and connects successive points.  To omit the connections and just
  20. plot the points, use the command:
  21.             dotplot(f(x),x)
  22.      To plot only every 20th point, which is useful for rapidly
  23. graphing complicated functions, use
  24.             sketch(f(x),x)
  25.      If you want your circles and squares to look correct --
  26. that is, if you want one vertical unit to be really the same
  27. distance as one horizontal unit--you should select window
  28. parameters so that the horizontal axis is 1.4 times as long as
  29. the vertical axis.
  30.     Example 5.2:                
  31.     plot a function of x^3.
  32. IN:  plot(x^3,x)                
  33.  
  34.                 5.3    Plotting r = f(t) in polar coordinates
  35.      You can graph the portion of a polar curve  r = f(t) that lies in
  36. the window with a single external function:
  37.  
  38.                        polar(f(t),t)
  39.                        polar(r, t,tmin,tmax)
  40.                        polar(r, t,tmin,tmax,rmin,rmax)
  41.  
  42. f(t) can be a function with bound variable t or an expression involving t.
  43. For example, to graph the cardoid  r = 1+cos(t), execute the command
  44.                        polar(1+cos(t),t)
  45. The variable t covers the domain (0, 2π); you can change this default by
  46. specifying a range for t:
  47.                        polar(1+cos(t), t,0,pi)
  48.