pub trait Li0<T> {
// Required method
fn li0(&self) -> T;
}
Expand description
Provides the 0-th order polylogarithm function li0()
of a
number of type T
.
Returns the real 0th order polylogarithm of a real number of
type f64
.
§Example:
use polylog::Li0;
assert!((2.0_f64.li0() + 2.0_f64).abs() < std::f64::EPSILON);
Returns the 0th order polylogarithm of a complex number of
type Complex<f64>
.
§Example:
use num::complex::Complex;
use polylog::Li0;
assert!((Complex::new(1.0_f64, 1.0_f64).li0() - Complex::new(-1.0_f64, 1.0_f64)).norm() < std::f64::EPSILON);