Owner`s manual

118
6.3.1 Mathematical Functions
The math functions are part of a standard library in ANSI C, and it is recommended
to add the following comment at the beginning of your program:
/* #include <math.h> */
abs()
PURPOSE: Returns the absolute value of an integer.
FORMAT: int abs(n) int n;
angle()
PURPOSE: Specifies the unit of angular measurement.
FORMAT: void angle(n) unsigned int n;
PARAMETERS: n = 0: unit = Degrees. n = 1: unit = Radians. n = 3: unit = Grads
SEE: sin(), cos(), tan(), asin(), acos(), atan()
acos()
PURPOSE: Returns the angle value for which cosine (angle value) = parameter.
FORMAT: double acos(x) double x;
PARAMETERS: x must be within the [-1, +1] range
EXPLANATION:
1. The unit of the returned value is specified using the angle() function.
2. The returned value is in the [0 , 180°] or [0 , π Radians ] range.
SEE: angle(), cos()
acosh()
PURPOSE: Returns the value for which hyperbolic cosine (value) = parameter.
FORMAT: double acosh(x) double x;
PARAMETERS: x must be within the [1, 5x10
99
[ range
EXPLANATION:
1. The mathematical formula for reverse hyperbolic cosine is:
acosh(x) = ln ( x + ) where ln is the natural logarithm.
2. The returned value is in the [-230.2585092, +230.2585092] range.
SEE: cosh(), log()
asin()
PURPOSE: Returns the angle value for which sine (angle value) = parameter.
FORMAT: double asin(x) double x;
PARAMETERS: x must be within the [-1, +1] range
EXPLANATION:
1. The unit of the returned value is specified using the angle() function.
2. The returned value is in the [-90°, 90°] or [ -π/2, π/2 Radians ] range.
SEE: angle(), sin()
x
2
1