Original Author Paul Laughton, 2011
Page 60
De Re BASIC!
COSH(<nexp>)
Returns the trigonometric hyperbolic cosine of angle <nexp>. The units of the angle are radians.
ASIN(<nexp>)
Returns the arc sine of the angle <nexp>, in the range of -pi/2 through pi/2. The units of the angle are
radians. If the value of <nexp> is less than -1 or greater than 1, the function generates a runtime error.
ACOS(<nexp>)
Returns the arc cosine of the angle <nexp>, in the range of 0.0 through pi.The units of the angle are
radians. If the value of <nexp> is less than -1 or greater than 1, the function generates a runtime error.
ATAN(<nexp>)
Returns the arc tangent of the angle <nexp>, in the range of -pi/2 through pi/2. The units of the angle
are radians.
ATAN2(<nexp_y>, <nexp_x>)
Returns the angle theta from the conversion of rectangular coordinates (
x
,
y
) to polar coordinates
(r,theta). (Please note the order of the parameters in this function.)
TODEGREES(<nexp>)
Converts <nexp> angle measured in radians to an approximately equivalent angle measured in degrees.
TORADIANS(<nexp>)
Converts <nexp> angle measured in degrees to an approximately equivalent angle measured in radians.
VAL(<sexp>)
Returns the numerical value of the string expression <sexp> interpreted as a signed decimal number. If
the string is empty ("") or does not represent a number, the function generates a runtime error.
A sign ("+" or "-"), a decimal point ("." only), and an exponent (power of 10) are optional.
An exponent is "e" or "E" followed by a number. The number may have a sign but no decimal point.
The string may have leading and/or trailing spaces, but no spaces between any other characters.
IS_NUMBER(<sexp>)
Tests a string expression <sexp> in the same way as VAL() and returns a logical value:
TRUE (non-zero) if VAL() would successfully convert the string to a number
FALSE (0) if VAL() would generate a run-time error.
For example, VAL("name") generates a run-time error, but IS_NUMBER("name") returns FALSE.
If VAL() would report a syntax error, IS_NUMBER() reports a syntax error.
For example, IS_NUMBER(), IS_NUMBER(num), and IS_NUMBER(5) are syntax errors.