Math functions
[QuantLib macros]


Detailed Description

Some compilers still define math functions in the global namespace. For the code to be portable these macros had to be used instead of the actual functions. However, Boost provides the means of bypassing this limitation; therefore, all these macros are now deprecated in favor of the actual functions in namespace std.


Defines

#define QL_SQRT   std::sqrt
 square root
#define QL_FABS   std::fabs
 absolute value
#define QL_EXP   std::exp
 exponential
#define QL_LOG   std::log
 logarithm
#define QL_SIN   std::sin
 sine
#define QL_COS   std::cos
 cosine
#define QL_POW   std::pow
 power
#define QL_MODF   std::modf
 floating-point module
#define QL_SINH   std::sinh
 hyperbolic sine
#define QL_COSH   std::cosh
 hyperbolic cosine
#define QL_FLOOR   std::floor
 floor


Define Documentation

#define QL_SQRT   std::sqrt
 

square root

Deprecated:
use std::sqrt instead

#define QL_FABS   std::fabs
 

absolute value

Deprecated:
use std::fabs instead

#define QL_EXP   std::exp
 

exponential

Deprecated:
use std::exp instead

#define QL_LOG   std::log
 

logarithm

Deprecated:
use std::log instead

#define QL_SIN   std::sin
 

sine

Deprecated:
use std::sin instead

#define QL_COS   std::cos
 

cosine

Deprecated:
use std::cos instead

#define QL_POW   std::pow
 

power

Deprecated:
use std::pow instead

#define QL_MODF   std::modf
 

floating-point module

Deprecated:
use std::modf instead

#define QL_SINH   std::sinh
 

hyperbolic sine

Deprecated:
use std::sinh instead

#define QL_COSH   std::cosh
 

hyperbolic cosine

Deprecated:
use std::cosh instead

#define QL_FLOOR   std::floor
 

floor

Deprecated:
use std::floor instead


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen