Trigonometric Operators :: Kloudfuse Docs
Trigonometric Operators
FuseQL supports the following trigonometric functions:
acos
Calculates the arccosine of a numerical value.
Syntax
| acos(<number>) as <alias>
Example
The following example returns A with a value of 1.0472, in radians.
| acos(0.5) as A
asin
Calculates the arcsine of a numerical value.
Syntax
| asin(<number>) as <alias>
Example
The following example returns A with a value of 0.5236, in radians.
| asin(<number>) as <alias>
atan
Calculates the arctangent of a numerical value.
Syntax
| atan(<number>) as <alias>
Example
The above example returns T with a value of 0.7854, in radians.
| atan(1) as T
cos
Calculates the cosine of a numerical value.
Syntax
| cos(<number>) as <alias>
Example
The following example returns C with a value of 2.71828.
| cos(0) as C
cosh
Calculates the hyperbolic cosine of a numerical value.
Syntax
| cosh(<number>) as <alias>
Example
The following example returns H with a value of 1.
| cosh(0) as H
sin
Calculates the sine of a numerical value.
Syntax
| sin(<number>) as <alias>
Example
The following example returns S with a value of 0.
| sin(0) as S
sinh
Calculates the hyperbolic sine of a numerical value.
Syntax
| sinh(<number>) as <alias>
Example
The following example returns H with a value of 0.
| sinh(0) as H
tan
Calculates the tangent of a numerical value.
Syntax
| tan(<number>) as <alias>
Example
The following example returns T with a value of 0.
| tan(0) as T
tanh
Calculates the hyperbolic tangent of a numerical value.
Syntax
| tanh(<number>) as <alias>
Example
The following example returns H with a value of 0.
| tanh(0) as H