atan
Trigonometric arctangent function.
Syntax
atan(expr)
Argument
- expr
- A valid scalar, vector, or matrix expression.
Example
Templex Expression | Result |
---|---|
{atan(0)} |
0 |
{atan( {-1, 0, 1} )} |
-0.785398, 0, 0.785398 |
{atan( { {-1, 0},
|
{-0.785398, 0},
|
Comments
The resulting angles are measured in radians.
If expr is a scalar, the result is the angle that, when evaluated by the tangent function, yields expr.
If expr is a vector, the result is a vector containing the angles that, when evaluated by the tangent function, yield the elements of expr. The resultant vector has the same number of elements as expr.
If expr is a matrix, the result is a matrix containing the angles that, when evaluated by the tangent function, yield the elements of expr. The resultant matrix has the same dimensions as expr.