Chapter 6 RAPID!
Functions
WCDMA Options Version 6.20
201
SIN, COS, TAN, ATAN
SQRT
SGN
Syntax
SIN(numExp)
COS(numExp)
TAN(numExp)
ATAN(numExp)
Parameters
numExp is a valid numeric expression.
Description
SIN(numExp)
Calculates the sine of
numExp and delivers back a double
floating-point number.
numExp is interpreted as the radiant expression of the
angle (SIN(3.14...) = 0).
COS(numExp)
Calculates the cosine of
numExp and delivers back a
double floating-point number.
numExp is interpreted as the radiant expression of the
angle (COS(3.14...) = –1).
TAN(numExp)
Calculates the tangent of
numExp and delivers back a
double floating-point number.
numExp is interpreted as the radiant expression of the
angle (TAN(3.14...) = 0).
ATAN(numExp)
Calculates the arcus tangent of
numExp and delivers
back a double floating-point number.
numExp is interpreted as the radiant expression of the
angle (ATAN(3.14...) = 1.262627).
Examples
Please see examples nested in the description above.
Syntax
SQRT(numExp)
Parameters
numExp is a valid numeric expression.
Description
Returns the square root of
numExp as a double floating-
point number.
Examples
i = SQRT(25)
Assigns ‘5’ to variable i.
Syntax
SGN(numExp)
Parameters
numExp is a valid numeric expression.
Description
Returns the sign of
numExp.
If
numExp is equal to or greater than ‘0’, SGN will return
‘+1’.
If
numExp is less than ‘0’, SGN will return ‘-1’.