CRE Programmer's Guide
Math Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
7-19
Sin
Sin
The Sin functions return the sine of an angle.
angle
is the angle, expressed in radians, whose sine is returned.
Return Value
The Sin functions return the sin of angle. The return value is in the range:
-1.0 less than or equal to sin(
angle) less than or equal to 1.0
Sinh
The Sinh functions return a hyperbolic sine.
number
is the number whose hyperbolic sine is returned.
Return Value
The sinh functions return the hyperbolic sine of number. The return value is:
exp( number ) - exp( -number )
2
Considerations
An arithmetic fault occurs if there is an overflow in any intermediate calculation.
REAL(32) PROC RTL_Sin_Real32_( angle );
REAL(32) angle; ! in TNS only
REAL(64) PROC RTL_Sin_Real64_( angle );
REAL(64) angle; ! in TNS only
REAL(32) PROC { CRE_Sinh_Real32_ } ( number );
{ RTL_Sinh_Real32_ }
REAL(32) number; ! in TNS only
REAL(64) PROC { CRE_Sinh_Real64_ } ( number );
{ RTL_Sinh_Real64_ }
REAL(64) number; ! in TNS only