Trait polylog::Li0

source ·
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.

Required Methods§

source

fn li0(&self) -> T

Implementations on Foreign Types§

source§

impl Li0<Complex<f64>> for Complex<f64>

source§

fn li0(&self) -> Complex<f64>

Returns the 0th order polylogarithm of a complex number of type Complex<f64>.

Example:
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());
}
source§

impl Li0<f64> for f64

source§

fn li0(&self) -> f64

Returns the real 0th order polylogarithm of a real number of type f64.

Example:
use polylog::Li0;

let x = 2.0;
println!("Li0({}) = {}", x, x.li0());

Implementors§