39extern const double pi;
40extern const double nan;
46 return std::expm1( x );
49template <
typename T >
53 return std::isnan( f );
134size_t first_index(
long period,
long phase0,
long step,
long phase );
const double nan
Definition numerics.cpp:36
double expm1(double x)
Definition numerics.h:44
bool is_nan(T f)
Definition numerics.h:51
const double sqrt_log_two
Definition numerics.cpp:37
const double e
Definition numerics.cpp:32
const double pi
Definition numerics.cpp:33
double dround(double)
Round to nearest int, rounding midpoints upwards.
Definition numerics.cpp:47
long mod_inverse(long a, long m)
Returns inverse of integer a modulo m.
Definition numerics.cpp:79
bool is_integer(double)
Returns true if n is integer up to rounding error.
Definition numerics.cpp:62
long ld_round(double)
Round to nearest int, rounding midpoints upwards.
Definition numerics.cpp:41
double dtruncate(double)
Return integer part of argument.
Definition numerics.cpp:53
size_t first_index(long period, long phase0, long step, long phase)
Return first matching index for entry in container with double periodicity.
Definition numerics.cpp:142