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.
use polylog::Li1;
let x = 2.0;
println!("Li1({}) = {}", x, x.li1());
Returns the first order polylogarithm of a complex number of
type Complex<f64>.
use num::complex::Complex;
use polylog::Li1;
let z = Complex::new(1.0, 1.0);
println!("Li1({}) = {}", z, z.li1());