home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
misc
/
math
/
mathplot
/
macros
/
test8.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-12-14
|
688b
|
48 lines
/* Test of PLOT and EVALSTRING */
address "MPlot_ARexx"
options results
setintervall "xaxis 0 yaxis 0 xmin -pi xmax pi ymin -1 ymax 1"
plot 1 normal
plot 6 normal
say "There should be an error"
clear
plot 6 normal force
say "There is an error, but no requester"
clear
plot 0 normal derive1 derive2
evalstring "sin(5)"
say result rc rc2
evalstring "sin(x) x=4.5"
say result rc rc2
evalstring 'sqr(x) x=-1'
say result rc rc2
evalstring 'ln(-1)'
say result rc rc2
evalstring 'ln(a)'
say result rc rc2
x = 1.4
setnumprecision 15
/* This gives the solution of sin(x) = .3*cos(x) */
do i=1 to 9
evalstring "asin(.3*cos(x)) x=" x
say "x" x "->" "f(x)=" result
x = result
end