This function overloads cmath's tan function.
Parameters
- x
- valarray containing elements of a type for which the unary function tan is defined. Each element's value represents an angle, expressed in radians.
Return value
A valarray object with the 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: 1.2 3.14 5 bar: 2.57215 -0.00159265 -3.38052 |
See also
| tan (cmath) | Compute tangent (function) |
| sin | Compute sine of valarray elements (function template) |
| cos | Compute cosine of valarray elements (function template) |
| atan | Compute arc tangent of valarray elements (function template) |
