ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
math.hpp File Reference
#include <gsl/gsl_math.h>
#include "function_scl.hpp"
#include "function_fdf.hpp"
#include "sys.hpp"
Include dependency graph for math.hpp:

Go to the source code of this file.

Namespaces

namespace  gsl
 The gsl package creates an interface to the GNU Scientific Library for C++.
 
namespace  gsl::math
 Mathematical constants.
 

Functions

template<typename T >
bool gsl::is_odd (T const &n)
 Check if odd: only really makes sense for integral types. More...
 
template<typename T >
bool gsl::is_even (T const &n)
 Check if even: only really makes sense for integral types. More...
 
template<typename T >
short gsl::sign (T const &x)
 Find the sign of x: returns +1 for a value of zero to be consistent with GNU Scientific Library. More...
 
int gsl::is_real (double const x)
 Variation on gsl_finite: returns 1 for a real number, 0 for infinite or NaN. More...
 

Variables

double const gsl::math::E = M_E
 e More...
 
double const gsl::math::LOG2E = M_LOG2E
 \(\log_2(\mathrm{e})\). More...
 
double const gsl::math::LOG10E = M_LOG10E
 \(\log_{10}(\mathrm{e})\). More...
 
double const gsl::math::SQRT2 = M_SQRT2
 \(\sqrt{2}\). More...
 
double const gsl::math::SQRT1_2 = M_SQRT1_2
 \(\sqrt{1/2}\). More...
 
double const gsl::math::SQRT3 = M_SQRT3
 \(\sqrt{3}\). More...
 
double const gsl::math::PI = M_PI
 \(\pi\). More...
 
double const gsl::math::PI_2 = M_PI_2
 \(\pi/2\). More...
 
double const gsl::math::PI_4 = M_PI_4
 \(\pi/4\). More...
 
double const gsl::math::SQRTPI = M_SQRTPI
 \(\sqrt{\pi}\). More...
 
double const gsl::math::TWO_SQRTPI = M_2_SQRTPI
 \(2\sqrt{\pi}\). More...
 
double const gsl::math::ONE_PI = M_1_PI
 \(1/\pi\). More...
 
double const gsl::math::TWO_PI = M_2_PI
 \(2/\pi\). More...
 
double const gsl::math::LN10 = M_LN10
 \(\log(10)\). More...
 
double const gsl::math::LN2 = M_LN2
 \(\log(2)\). More...
 
double const gsl::math::LNPI = M_LNPI
 \(\log(\pi)\). More...
 
double const gsl::math::EULER = M_EULER
 Euler's constant. More...