Monday 4 March 2013

Microsoft Dynamics AX 2012 R2 - cosh Function


Retrieves the hyperbolic cosine of a real number.

Argument values outside of the range –250 to 250 result in the following run-time error: "Argument for trigonometric function out of range."



Function

  • real cosh(real arg)

Parameters

  • Parameter: arg
  • Description: The hyperbolic number for which to calculate the cosine.

The value of the arg parameter must be in radians.


Return Value

  • The hyperbolic cosine of the specified number.

Example

  • X++
static void coshExample(Args _arg)
{
    real r;
    ;
    r = cosh(0.1);
    print "The hyperbolic cosine of 0.1 is " + num2Str(r, 2, 2, 1, 1);
    pause;
}

My above blog is based on Microsoft's Official information.

I hope this blog about 'Microsoft Dynamics AX 2012 R2 - cosh Function' was informative. Please feel free to leave your comments.