| MATLAB Function Reference | ![]() |
Inverse tangent and inverse hyperbolic tangent
Syntax
Y = atan(X) Y = atanh(X)
Description
The atan and atanh functions operate element-wise on arrays. The functions' domains and ranges include complex values. All angles are in radians.
Y = atan(X)
returns the inverse tangent (arctangent) for each element of X.
For real elements of X, atan(X) is in the range
.
Y = atanh(X)
returns the inverse hyperbolic tangent for each element of X.
Examples
Graph the inverse tangent function over the domain
and the inverse hyperbolic tangent function over the domain 
x = -20:0.01:20; plot(x,atan(x)) x = -0.99:0.01:0.99; plot(x,atanh(x))
![]()
Algorithm
See Also
| assignin | atan2 | ![]() |