Main Content

asech

Inverse hyperbolic secant

Description

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.

example

Examples

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;
plot(x,asech(x))
grid on
xlabel('x')
ylabel('asech(x)')

Figure contains an axes object. The axes object with xlabel x, ylabel asech(x) contains an object of type line.

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

Extended Capabilities

expand all

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

Version History

Introduced before R2006a

expand all

See Also

| | |