This section describes functions for performing trigonometric and hyperbolic operations. In all of the functions, the arguments are expressions resolving to angles measured in radians, where x should be interpreted as a real number.
All angles are measured in radians.
All functions can be used in both the load script and in chart expressions.
Cosine of x. The result is a number between -1 and 1.
cos( x
)
Inverse cosine of x. The function is only defined if -1≤x≤1.
The result is a number between 0 and p.
acos( x
)
Sine of x.
The result is a number between -1 and 1.
sin( x
)
Inverse sine of x.
The function is only defined if -1≤x≤1.
The result is a number between - p/2
and p/2.
asin( x
)
Tangent of x.
The result is a real number.
tan( x
)
Inverse tangent of x.
The result is a number between - p/2
and p/2.
atan( x
)
Two-dimensional generalization of the inverse
tangent function. Returns the angle between the origin and the point represented
by the coordinates x and y. The result is a number between -
p and + p.
atan2( y,x
)
Hyperbolic cosine of x. The result is a
positive real number.
cosh( x
)
Hyperbolic sine of x.
The result is a real number.
sinh( x
)
Hyperbolic tangent of x.
The result is a real number.
tanh( x
)
Examples:
The following script code loads a sample table, and then loads a table containing the calculated trigonometric and hyperbolic operations on the values.
Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com