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