home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d916 / mathplot.lha / MathPlot / Macros / test2.rexx < prev    next >
OS/2 REXX Batch file  |  1993-10-04  |  464b  |  24 lines

  1. /* Test of setfunction/setintervall */
  2. address "MPlot_ARexx"
  3. options results
  4.  
  5. setfunc "0 x^8"
  6. setfunc "1 x^5"
  7. setfunc "2 x^2" 
  8.  
  9. setintervall "xmin -1 xmax 1 ymin -1 ymax 1 xaxis 4 yaxis 4"
  10.  
  11. plot 0 normal derive1 derive2
  12. plot 1 normal derive1 derive2
  13. plot 2 normal derive1 derive2
  14.  
  15. showaxis
  16.  
  17. getprecision
  18. say "The precision was "result
  19.  
  20. setprecision 2
  21.  
  22. /* Result will be 5 (WARNING), because 6 (argument) is out of range */
  23. setprecision 6
  24. say "Should be 5: " result