Y = atanh(X) returns the
inverse hyperbolic tangent of the elements of X. The function accepts
both real and complex inputs. All angles are in radians.
X — Hyperbolic tangent of angle scalar | vector | matrix | multidimensional array
Hyperbolic tangent of angle, specified as a scalar, vector, matrix, or
multidimensional array. The atanh operation is element-wise when
X is nonscalar.
Data Types: single | double Complex Number Support: Yes
For real values in the domain , the inverse hyperbolic tangent satisfies
For complex numbers as well as real values in the regions and , the call atanh(z) returns complex results.
Extended Capabilities
Tall Arrays Calculate with arrays that have more rows than fit in memory.
This function fully supports tall arrays. For
more information, see Tall Arrays.
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Generates an error during simulation and returns NaN in
generated code when the input value x is real, but the output
should be complex. To get the complex result, make the input value complex by passing
in complex(x).
GPU Code Generation Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
GPU Arrays Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
Usage notes and limitations:
If the output of the function running on the GPU can be complex, then you must explicitly specify its input arguments as complex. For more information, see Work with Complex Numbers on a GPU (Parallel Computing Toolbox).