All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Namespaces | Functions | Variables
math.h File Reference

Detailed Description

Some extensions to the standard cmath library.

This file includes the standard math library (cmath).

#include <cmath>


 The namespace of LEMON.


bool isNaN (double v)
 Check whether the parameter is NaN or not. More...
double round (double r)
 Round a value to its closest integer.


const long double E = 2.7182818284590452353602874713526625L
 The Euler constant.
const long double LOG2E = 1.4426950408889634073599246810018921L
const long double LOG10E = 0.4342944819032518276511289189166051L
const long double LN2 = 0.6931471805599453094172321214581766L
const long double LN10 = 2.3025850929940456840179914546843642L
const long double PI = 3.1415926535897932384626433832795029L
const long double PI_2 = 1.5707963267948966192313216916397514L
const long double PI_4 = 0.7853981633974483096156608458198757L
const long double SQRT2 = 1.4142135623730950488016887242096981L
const long double SQRT1_2 = 0.7071067811865475244008443621048490L