This function overloads cmath's atan function.
Parameters
- x
- valarray containing elements of a type for which the unary function atan is defined.
Return value
A valarray object with the arc tangent values of the elements of x.Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
Output:
foo: 0 0.25 0.5 0.75 1 bar: 0 0.244979 0.463648 0.643501 0.785398 |
See also
| atan (cmath) | Compute arc tangent (function) |
| atan2 | Compute atan2 of valarray elements (function template) |
| tan | Compute tangent of valarray elements (function template) |
