cppx-core
Functions
cppx::calc Namespace Reference

Functions and constants typically available on a scientific calculator, but somehow missing from the standard library. More...

Functions

 CPPX_USE_CPPX (intpow, squared, cubed)
 
 CPPX_USE_CPPX (is_even, is_odd, intdiv, intmod, intsquare, intcube, intmin, intmax)
 
 CPPX_USE_CPPX (e, log2e, log10e, ln2, ln10, pi, inv_sqrt_pi, sqrt2, inv_sqrt2, has_nan_, has_nan, nan_, nan, has_infinity_, has_infinity, infinity_, infinity)
 

Detailed Description

Functions and constants typically available on a scientific calculator, but somehow missing from the standard library.

Integer functions is_even, is_odd, intdiv, intmod, intsquare, intcube, intmin, intmax, and floating point intpow, squared and cubed functions. Floating point functions has_nan_, has_nan, has_infinity_, has_infinity. Floating point constants e, log2e, log10e, ln2, ln10, pi, inv_sqrt_pi, sqrt2, inv_sqrt2, nan_, nan, infinity_, infinity.

Function Documentation

◆ CPPX_USE_CPPX() [1/3]

cppx::calc::CPPX_USE_CPPX ( intpow  ,
squared  ,
cubed   
)

◆ CPPX_USE_CPPX() [2/3]

cppx::calc::CPPX_USE_CPPX ( is_even  ,
is_odd  ,
intdiv  ,
intmod  ,
intsquare  ,
intcube  ,
intmin  ,
intmax   
)

◆ CPPX_USE_CPPX() [3/3]

cppx::calc::CPPX_USE_CPPX ( e  ,
log2e  ,
log10e  ,
ln2  ,
ln10  ,
pi  ,
inv_sqrt_pi  ,
sqrt2  ,
inv_sqrt2  ,
has_nan_  ,
has_nan  ,
nan_  ,
nan  ,
has_infinity_  ,
has_infinity  ,
infinity_  ,
infinity   
)