UD70
Issue code: 70nu2
7-20 Reference
SIN
Syntax
result = SIN (expression)
This mathematical function returns the sine of an angle expressed in radians.
See
COS
instruction and
TAN
instruction.
Example
#1.21 = SIN(3.1416)
SGN
Syntax
result% = SGN (expression%)
result = SGN (expression)
This mathematical function returns a value indicating the negative or
positive sign of the input expression. When the input value is positive or
zero, the function returns the value of 11. When the input value is negative, it
returns the value of ––11.
Example
PRINT SGN (45), SGN (-16), SGN(0)
This prints values: 1, –1, 1
SQR
Syntax
result = SQR (expression)
This mathematical function returns the square-root of an expression.
Example
PRINT SQR (25), SQR (16)
This prints values: 5 and 4
TAN
Syntax
result = TAN (expression)
This mathematical function returns the tangent of an angle expressed in
radians.
See
COS
instruction and
SIN
instruction.
Example
result = TAN (3.1416)
TIME
Syntax
result% = TIME
The TIME instruction returns the number of elapsed milliseconds since AC
power was applied or the UD70 was last reset.
Example
t% = TIME