Documentation

acoth

Inverse hyperbolic cotangent

Syntax

Y = acoth(X)

Description

Y = acoth(X)returns the inverse hyperbolic cotangent for each element ofX.

Theacothfunction operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.

Examples

collapse all

Graph the inverse hyperbolic cotangent function over the domainsand.

x1 = -30:0.1:-1.1; x2 = 1.1:0.1:30; plot(x1,acoth(x1),x2,acoth(x2)) gridonxlabel('x') ylabel('y')

More About

collapse all

Inverse Hyperbolic Cotangent

For real values x in the domain < x < 1 and 1 < x < , the inverse hyperbolic cotangent satisfies

coth 1 ( x ) = tanh 1 ( 1 x ) = 1 2 log ( x + 1 x 1 ) .

For complex numbers z = x + i y as well as real values in the domain 1 z 1 , the callacoth(z)returns complex results.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a

Was this topic helpful?