Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
Header Files
 <cmath>
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Standard Library
<cmath>

Defines the macros traditionally defined in the Standard C library header <math.h>.

#if <TRADITIONAL C HEADERS>
   #include <math.h>
namespace std {
   using ::abs; 
   using ::acos; 
   using ::acosf; 
   using ::acosl; 
   using ::asin;
   using ::asinf;
   using ::asinl;
   using ::atan; 
   using ::atan2; 
   using ::atan2f; 
   using ::atan2l; 
   using ::atanf; 
   using ::atanl; 
   using ::ceil;
   using ::ceilf;
   using ::ceill;
   using ::cos; 
   using ::cosf; 
   using ::cosh; 
   using ::coshf; 
   using ::coshl; 
   using ::cosl; 
   using ::exp;
   using ::expf;
   using ::expl;
   using ::fabs; 
   using ::fabsf; 
   using ::fabsl; 
   using ::floor; 
   using ::floorf; 
   using ::floorl; 
   using ::fmod;
   using ::fmodf;
   using ::fmodl;
   using ::frexp; 
   using ::frexpf; 
   using ::frexpl; 
   using ::ldexp; 
   using ::ldexpf; 
   using ::ldexpl; 
   using ::log;
   using ::log10; 
   using ::log10f; 
   using ::log10l; 
   using ::logf;
   using ::logl;
   using ::modf; 
   using ::modff; 
   using ::modfl; 
   using ::pow;
   using ::powf;
   using ::powl;
   using ::sin; 
   using ::sinf; 
   using ::sinh; 
   using ::sinhf; 
   using ::sinhl; 
   using ::sinl; 
   using ::sqrt;
   using ::sqrtf;
   using ::sqrtl;
   using ::tan; 
   using ::tanf; 
   using ::tanh;
   using ::tanhf;
   using ::tanhl;
   using ::tanl; 
}
#endif

Including this header also ensures that the names declared with external linkage in the Standard C library header are declared in the std namespace. In this implementation, the names may or may not also be declared in the global namespace, depending on the specific translation environment.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker