Namespaces
Variants
Views
Actions

std::acos

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 06:11, 20 April 2012 by P12 (Talk | contribs)

Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
float       acos( float arg );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
double      acos( double arg );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
long double acos( long double arg );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
double      acos( Integral arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Computes arc cosine of arg

Parameters

arg - floating point value

Return value

Arc cosine of arg in radians in the range of [0; π] radians.

Domain error occurs if arg is outside the range [-1.0; 1.0]. NAN is returned in that case.

See also

Template:cpp/numeric/math/dcl list asinTemplate:cpp/numeric/math/dcl list atanTemplate:cpp/numeric/math/dcl list atan2Template:cpp/numeric/math/dcl list cosTemplate:cpp/numeric/complex/dcl list acosTemplate:cpp/numeric/valarray/dcl list acos