CSODE User's Guide 509Table A.1 Intrinsic Basic FunctionsBasic
Function Mathematical Comments
Notation Notationabs(x) lxl Absolute value functionatn(x) Arctan x Arctangent functioncos(x) cosx Cosine function
x must be in radiansexp(x) ex Exponential functionint(x) [[x]] Greatest integer functionlog(x) lnx Natural logarithm function
x must be positivesin(x) sinx Sine function
x must be in radianssgn(x) sgn x Signum functionsqr(x) Vx Square root function
tan(x) tanx Tangent function
x must be in radiansREMAR KS: Constants such as 3 must be input in function definitions as
3 or 3.0 and may not be input as 3., since the function compiler expects at
least one digit following a decimal point.
A value for 7r, accurate to the number of significant digits required by the
computer you are using, can be obtained with the expression 4.0*atn(l.O).
Additional standard mathematical functions can b e written in BASIC by
making use of the built-in functions and algebraic operations. Some math-
ematical functions and BASIC expressions for their computation appear in
Table A.2.