Trait polylog::Li1

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

Required Methods§

source

fn li1(&self) -> T

Implementations on Foreign Types§

source§

impl Li1<f64> for f64

source§

fn li1(&self) -> f64

Returns the real first order polylogarithm of a real number of type f64.

Example:
use polylog::Li1;

let x = 2.0;
println!("Li1({}) = {}", x, x.li1());
source§

impl Li1<Complex<f64>> for Complex<f64>

source§

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

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

Example:
use num::complex::Complex;
use polylog::Li1;

let z = Complex::new(1.0, 1.0);
println!("Li1({}) = {}", z, z.li1());

Implementors§