Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::math::function Namespace Reference

Functions

template<typename T>
T bessel_y (unsigned int n, T x)
template<typename T>
T bessel_i (unsigned int n, T x)
template<typename T>
T bessel_k (unsigned int n, T x)
template<typename T>
T bessel_j (unsigned int n, T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename T>
T bessel_j0 (T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename T>
T bessel_j1 (T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename T>
T bessel_i0 (T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename T>
T bessel_i1 (T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename T>
T bessel_k0 (T x)
template<typename T>
T bessel_k1 (T x)
template<typename T>
T bessel_y0 (T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename T>
T bessel_y1 (T x, unsigned int max_terms=50, T tolerance=T(1e-12))
template<typename IntegerType>
IntegerType gcd (IntegerType a, IntegerType b)
template<typename Vector>
Vector::value_type findlcm (const Vector &v)
template<typename Scalar>
Scalar binomial (const Scalar &n, const Scalar &k)
template<typename Real>
Real cbrt (const Real &x)
template<typename Scalar>
Scalar factorial (const Scalar &n)
template<typename Scalar>
Scalar factoriali (const Scalar &n)
template<typename Scalar>
Scalar logt (const Scalar &temp, const Scalar &x)
template<typename Scalar>
Scalar expt (const Scalar &temp, const Scalar &x)

Function Documentation

◆ bessel_i()

template<typename T>
T sw::math::function::bessel_i ( unsigned int n,
T x )

◆ bessel_i0()

template<typename T>
T sw::math::function::bessel_i0 ( T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ bessel_i1()

template<typename T>
T sw::math::function::bessel_i1 ( T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ bessel_j()

template<typename T>
T sw::math::function::bessel_j ( unsigned int n,
T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ bessel_j0()

template<typename T>
T sw::math::function::bessel_j0 ( T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ bessel_j1()

template<typename T>
T sw::math::function::bessel_j1 ( T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ bessel_k()

template<typename T>
T sw::math::function::bessel_k ( unsigned int n,
T x )

◆ bessel_k0()

template<typename T>
T sw::math::function::bessel_k0 ( T x)

◆ bessel_k1()

template<typename T>
T sw::math::function::bessel_k1 ( T x)

◆ bessel_y()

template<typename T>
T sw::math::function::bessel_y ( unsigned int n,
T x )

◆ bessel_y0()

template<typename T>
T sw::math::function::bessel_y0 ( T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ bessel_y1()

template<typename T>
T sw::math::function::bessel_y1 ( T x,
unsigned int max_terms = 50,
T tolerance = T(1e-12) )

◆ binomial()

template<typename Scalar>
Scalar sw::math::function::binomial ( const Scalar & n,
const Scalar & k )

◆ cbrt()

template<typename Real>
Real sw::math::function::cbrt ( const Real & x)

◆ expt()

template<typename Scalar>
Scalar sw::math::function::expt ( const Scalar & temp,
const Scalar & x )

◆ factorial()

template<typename Scalar>
Scalar sw::math::function::factorial ( const Scalar & n)

◆ factoriali()

template<typename Scalar>
Scalar sw::math::function::factoriali ( const Scalar & n)

◆ findlcm()

template<typename Vector>
Vector::value_type sw::math::function::findlcm ( const Vector & v)

◆ gcd()

template<typename IntegerType>
IntegerType sw::math::function::gcd ( IntegerType a,
IntegerType b )

◆ logt()

template<typename Scalar>
Scalar sw::math::function::logt ( const Scalar & temp,
const Scalar & x )