SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
slip::constants< _Tp > Struct Template Reference

A structure for numeric constants. More...

#include <macros.hpp>

Static Public Member Functions

static _Tp pi () throw ()
 Constant $ \pi $. More...
 
static _Tp pi_2 () throw ()
 Constant $ \pi / 2 $. More...
 
static _Tp pi_3 () throw ()
 Constant $ \pi / 3 $. More...
 
static _Tp pi_4 () throw ()
 Constant $ \pi / 4 $. More...
 
static _Tp _1_pi () throw ()
 Constant $ 1 / \pi $. More...
 
static _Tp _2_sqrtpi () throw ()
 Constant $ 2 / \sqrt(\pi) $. More...
 
static _Tp one () throw ()
 Constant $ 1) $. More...
 
static _Tp two () throw ()
 Constant $ 2) $. More...
 
static _Tp half () throw ()
 Constant $ 1/2) $. More...
 
static _Tp sqrt2 () throw ()
 Constant $ \sqrt(2) $. More...
 
static _Tp sqrt3 () throw ()
 Constant $ \sqrt(3) $. More...
 
static _Tp sqrtpi_2 () throw ()
 Constant $ \sqrt(\pi/2) $. More...
 
static _Tp sqrt1_2 () throw ()
 Constant $ 1 / sqrt(2) $. More...
 
static _Tp lnpi () throw ()
 Constant $ \log(\pi) $. More...
 
static _Tp gamma_e () throw ()
 Constant Euler's constant $ \gamma_E $. More...
 
static _Tp euler () throw ()
 Constant Euler-Mascheroni $ e $. More...
 

Detailed Description

template<typename _Tp>
struct slip::constants< _Tp >

A structure for numeric constants.

Author
Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>: conceptor
Date
2006/07/29
Since
1.0.0
Version
0.0.1
Examples:

Definition at line 399 of file macros.hpp.

Member Function Documentation

template<typename _Tp >
static _Tp slip::constants< _Tp >::_1_pi ( )
throw (
)
inlinestatic

Constant $ 1 / \pi $.

Definition at line 414 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::_2_sqrtpi ( )
throw (
)
inlinestatic

Constant $ 2 / \sqrt(\pi) $.

Definition at line 417 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::euler ( )
throw (
)
inlinestatic

Constant Euler-Mascheroni $ e $.

Definition at line 447 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::gamma_e ( )
throw (
)
inlinestatic

Constant Euler's constant $ \gamma_E $.

Definition at line 444 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::half ( )
throw (
)
inlinestatic

Constant $ 1/2) $.

Definition at line 426 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::lnpi ( )
throw (
)
inlinestatic

Constant $ \log(\pi) $.

Definition at line 441 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::one ( )
throw (
)
inlinestatic

Constant $ 1) $.

Definition at line 420 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::pi ( )
throw (
)
inlinestatic

Constant $ \pi $.

Definition at line 402 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::pi_2 ( )
throw (
)
inlinestatic

Constant $ \pi / 2 $.

Definition at line 405 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::pi_3 ( )
throw (
)
inlinestatic

Constant $ \pi / 3 $.

Definition at line 408 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::pi_4 ( )
throw (
)
inlinestatic

Constant $ \pi / 4 $.

Definition at line 411 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::sqrt1_2 ( )
throw (
)
inlinestatic

Constant $ 1 / sqrt(2) $.

Definition at line 438 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::sqrt2 ( )
throw (
)
inlinestatic

Constant $ \sqrt(2) $.

Definition at line 429 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::sqrt3 ( )
throw (
)
inlinestatic

Constant $ \sqrt(3) $.

Definition at line 432 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::sqrtpi_2 ( )
throw (
)
inlinestatic

Constant $ \sqrt(\pi/2) $.

Definition at line 435 of file macros.hpp.

template<typename _Tp >
static _Tp slip::constants< _Tp >::two ( )
throw (
)
inlinestatic

Constant $ 2) $.

Definition at line 423 of file macros.hpp.


The documentation for this struct was generated from the following file: