pub trait Li3<T> {
// Required method
fn li3(&self) -> T;
}
Expand description
Provides the 3rd order polylogarithm (trilogarithm) function
li3()
of a number of type T
.
Required Methods§
Implementations on Foreign Types§
source§impl Li3<f64> for f64
impl Li3<f64> for f64
source§fn li3(&self) -> f64
fn li3(&self) -> f64
Returns the real trilogarithm of a real number of type f64
.
Implemented as rational function approximations with a maximum error of less than 2.050e-17 [arXiv:2308.11619].
§Example:
use polylog::Li3;
assert!((1.0_f64.li3() - 1.2020569031595943_f64).abs() < std::f64::EPSILON);
source§impl Li3<Complex<f64>> for Complex<f64>
impl Li3<Complex<f64>> for Complex<f64>
source§fn li3(&self) -> Complex<f64>
fn li3(&self) -> Complex<f64>
Returns the trilogarithm of a complex number of type Complex<f64>
.
§Example:
use num::complex::Complex;
use polylog::Li3;
assert!((Complex::new(1.0_f64, 1.0_f64).li3() - Complex::new(0.8711588834109380_f64, 1.2670834418889240_f64)).norm() < 2.0_f64*std::f64::EPSILON);