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 0th order polylogarithm of a complex number of
type Complex<f64>.
extern crate num;
use num::complex::Complex;
use polylog::Li0;
fn main() {
let z = Complex::new(1.0, 1.0);
println!("Li0({}) = {}", z, z.li0());
}
Returns the real 0th order polylogarithm of a real number of
type f64.
use polylog::Li0;
let x = 2.0;
println!("Li0({}) = {}", x, x.li0());