Main Content


Inverse hyperbolic secant



Y = asech(X) returns the inverse hyperbolic secant of the elements of X. The function accepts both real and complex inputs. All angles are in radians.


collapse all

Find the inverse hyperbolic secant of the elements of vector X. The asech function acts on X element-wise.

X = [2 -3 1+2i];
Y = asech(X)
Y = 1×3 complex

   0.0000 + 1.0472i   0.0000 + 1.9106i   0.3966 - 1.3845i

Plot the inverse hyperbolic secant function over the interval 0.01x1.

x = 0.01:0.001:1;
grid on

Input Arguments

collapse all

Hyperbolic secant of angle, specified as a scalar, vector, matrix, multidimensional array, table, or timetable. The asech operation is element-wise when X is nonscalar.

Data Types: single | double | table | timetable
Complex Number Support: Yes

More About

collapse all

Inverse Hyperbolic Secant

For real values x in the domain 0<x1, the inverse hyperbolic secant satisfies


For complex numbers z=x+iy as well as real values in the regions <z0 and 1z<, the call asech(z) returns complex results.

Extended Capabilities

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

Version History

Introduced before R2006a

expand all

See Also

| | |