|
This function returns the result of a trigonometric tangent function. |
||||||
Syntax: |
|||||||
{INT_VAR|FLO_VAR}= tan({NUM_EXPR}) | |||||||
I/O parameters:
|
|||||||
Return value: |
|||||||
|
|||||||
Example: |
|||||||
Declaration of Variables | |||||||
10 ask(DOCU_FLOAT_1,"Please enter a value!") 20 DOCU_FLOAT_2 = tan(DOCU_FLOAT_1) 30 put(DOCU_FLOAT_2) |
|||||||
Result: (For DOCU_FLOAT_1 = 45) | |||||||
![]() |
|||||||
![]() |
In order to prevent errors, the float/double type must be used if results can be expected to be either very large or very small (<2^-31 or > 2^31). | ||||||
![]() |
Functions and commands: Mathematics |