This function overloads cmath's acos function.
Parameters
- x
- valarray containing elements of a type for which the unary function acos is defined.
Return value
A valarray object with the arc cosine 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: 1.5708 1.31812 1.0472 0.722734 0 |
See also
| acos (cmath) | Compute arc cosine (function) |
| cos | Compute cosine of valarray elements (function template) |
| asin | Compute arc sine of valarray elements (function template) |
