CRE Programmer's Guide
Math Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
7-4
Arccos
Arccos
The Arccos functions return the arccosine of their parameter.
cos
is a number in the range:
-1.0 less than or equal to
cos less than or equal to 1.0
An arithmetic fault occurs if
cos is not within this range.
ceil Returns the smallest integer that is not less than the value of its
parameter
cos Returns the cosine of an angle whose size is expressed in radians
cosh Returns a hyperbolic cosine
erf Returns the error function of x
erfc Returns the complementary error function of x
exp Returns the exponential function (base e) of its parameter
floor Returns the largest integer that is not greater than the value of its
parameter
fmod Returns the modulo remainder
frexp Breaks a floating-point number into a fraction and a power of 2
log Returns a natural (base e) logarithm
log10 Returns a common (base 10) logarithm
mod Returns the remainder of an integer division calculation
modf Separates a floating-point number into integral and fractional parts
sin Returns the sine of an angle whose size is expressed in radians
sinh Returns a hyperbolic sine
sqrt Returns the square root of a number
tan Returns the tangent of an angle whose size is expressed in radians
tanh Returns a hyperbolic tangent
REAL(32) PROC { CRE_Arccos_Real32_ } ( cos );
{ RTL_Arccos_Real32_ }
REAL(32) cos; ! in TNS only
REAL(64) PROC { CRE_Arccos_Real64_ } ( cos );
{ RTL_Arccos_Real64_ }
REAL(64) cos; ! in TNS only
Table 7-2. Native CRE Standard Math Functions (page 2 of 2)
Function Name Native CRE Library Function Name