C++ Programming/Code/Standard C Library/Functions/acos
< C++ Programming < Code < Standard C Library < Functionsacos
Syntax |
#include <cmath>
double acos( double arg );
|
The acos() function returns the arc cosine of arg, which will be in the range [0, pi]. arg should be between -1 and 1. If arg is outside this range, acos() returns NAN and raises a floating-point exception.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.