asinh - Inverse hyperbolic sine - MATLAB (original) (raw)

Main Content

Syntax

Description

`Y` = asinh([X](#mw%5Ff2186df8-da5f-4556-9cdc-0f2a86d6620a)) returns the inverse hyperbolic sine 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 sine of the elements of vector X. The asinh function acts on X element-wise.

X = [2 -3 1+2i]; Y = asinh(X)

Y = 1×3 complex

1.4436 + 0.0000i -1.8184 + 0.0000i 1.4694 + 1.0634i

Plot the inverse hyperbolic sine function over the interval -5≤x≤5.

x = -5:.01:5; plot(x,asinh(x)) grid on xlabel('x') ylabel('asinh(x)')

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

Input Arguments

collapse all

Hyperbolic sine of angle, specified as a scalar, vector, matrix, multidimensional array, table, or timetable. The asinh operation is element-wise whenX is nonscalar.

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

More About

collapse all

For real values x in the domain of all real numbers, the inverse hyperbolic sine satisfies

For complex numbers z=x+iy, the call asinh(z) returns complex results.

Extended Capabilities

expand all

Theasinh function fully supports tall arrays. For more information, see Tall Arrays.

The asinh function fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).

Version History

Introduced before R2006a

expand all

The asinh function can calculate on all variables within a table or timetable without indexing to access those variables. All variables must have data types that support the calculation. For more information, see Direct Calculations on Tables and Timetables.