iDevOS CALC "COSH" Command

Get the hyperbolic cosine of an angle.

Description

CALC( y, a, "COSH" );      // y = cosh(a)     = hyperbolic cosine of a
CALC( y, a, b, "COSH" );   // y = cosh(a) * b = hyperbolic cosine of a then multiplied by b

This command returns y as the cosine of the angle a. If the multiplier value b is specified then the result is further multiplied by b.

The angle y by default is specified in Degrees. Angles used in trigonometric functions can be set globally to use Radians by the SYSTEM.angles property.

Trigonometric functions: "COS", "SIN", "TAN", "ACOS", "ASIN", "ATAN", "ATAN2", "COSH", "SINH", "TANH", "ACOSH", "ASINH", "ATANH".

Parameters

y
Calculation result.
Parameter type: entity name of numeric variable (S8, S32, FLT3 etc).
a and b
Input values
Parameter type: immediate number, or entity name of numeric variable (S8, S32, FLT3 etc).
"COSH"
CALC command operator.
Parameter type: immediate string.

Examples

Example 1

VAR(df, 0.0,  FLT4); // result
VAR(af, 45.0, FLT4); // angle
VAR(bf, 5,    FLT4); // multiplier

CALC(df, af, "COSH");     // df = 1.3246

CALC(df, af, bf, "COSH"); // df = 6.6230