510 Ordinary Differential Equations
Table A.2 Additional Mathematical FunctionsFunctions Computation in BASIC CommentsArccos x 2.0*atn(x) - atn(x/sqr(l.O - x*x)) Arccosine function-1<x< 1
Arcsin x atn(x/sqr(l.O - X*x)) Arcsine function-1<x<1
coshx (exp(x) +exp( - x))/ 2.0 Hyperbolic cosine
functioncotx 1.0/tan(x) Cotangent function
x must be in radianscscx 1.0/sin(x) Cosecant function
x must be in radianslogax log(x)/ log(a) Logarithm functionbase a where x > 0 ,
a > 0, and a i= l.
Common logarithmwhen a= 10.
secx 1.0/cos(x) Secant function
x must be in radianssinhx ( exp(x) - exp( - x)) /2.0 Hyperbolic sine
functiontanhx 1.0 - 2.0*exp( - x)/(exp(x)+exp( - x)) Hyperbolic tangent
functionUsing GRAPH
The program GRAPH will graph a function y = f(x) in a rectangular
region R of the xy-plane bounded by the lines x = Xmin, x = Xmax,
y = Y min, and y = Y max. The region R is sometimes called a "window"
because graphing y = f(x) in R is like looking at a portion of the xy-plane
through a rectangular picture window. You specify the function f(x) to be