Math.Cosh(Value)
.Cosh() method returns the hyperbolic cosine of a number.
Applies To
Description
Math.Cosh() method returns the hyperbolic cosine of a number expressed using the constant e.
Properties and Methods
None
Available
The .Cosh(Value) method is available in:
- 15.03.016
- All newer builds
Type
Decimal
Syntax
Math.Cosh(Value);
Parameters
Parameter |
Required |
Description |
---|---|---|
Value |
Yes |
Any data that can be evaluated as a number. If the value cannot be evaluated as a number, then DEACOM will throw a scripting error. |
Example
//--Calculates the hyperbolic cosine values.
Event.Form.MessageBox('Math.Cosh(0): ' + Math.Cosh(0) +
'\nMath.Cosh(1): ' + Math.Cosh(1) +
'\nMath.Cosh(-1): ' + Math.Cosh(-1) +
'\nMath.Cosh(2): ' + Math.Cosh(2));
/* Expected System Prompt Display:
Math.Cosh(0): 1
Math.Cosh(1): 1.54308063481524
Math.Cosh(-1): 1.54308063481524
Math.Cosh(2): 3.76219569108363
*/