QuantLib 0.3.6
User manual
Introduction to QuantLib
QuantLib components
Reference manual
|
Math functions
Detailed Description
Some compilers still define math functions them in the global namespace. For the code to be portable these macros should be used instead of the actual functions.
|
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
|
|