NEST  2.6.0,not_revisioned_source_dir@0
Namespaces | Functions | Variables
numerics.h File Reference

Go to the source code of this file.

Namespaces

 numerics
 

Functions

double numerics::expm1 (double x)
 Supply expm1() function independent of system. More...
 
long ld_round (double)
 Round to nearest int, rounding midpoints upwards. More...
 
double dround (double)
 Round to nearest int, rounding midpoints upwards. More...
 
double dtruncate (double)
 Return integer part of argument. More...
 

Variables

const double numerics::e = M_E
 
const double numerics::pi = M_PI
 

Function Documentation

double dround ( double  )

Round to nearest int, rounding midpoints upwards.

Returns
Result as double
Note
[-1/2, 1/2) -> 0 and in general [ (2n-1)/2, (2n+1)/2 ) -> n
See also
ld_round

Referenced by nest::Time::set_resolution().

double dtruncate ( double  )

Return integer part of argument.

long ld_round ( double  )

Round to nearest int, rounding midpoints upwards.

Returns
Result as long
Note
[-1/2, 1/2) -> 0 and in general [ (2n-1)/2, (2n+1)/2 ) -> n
See also
dround

Referenced by nest::Time::delay_ms_to_steps().