Trait polylog::Li3

source ·
pub trait Li3<T> {
    // Required method
    fn li3(&self) -> T;
}
Expand description

Provides the 3rd order polylogarithm (trilogarithm) function li3() of a number of type T.

Required Methods§

source

fn li3(&self) -> T

Implementations on Foreign Types§

source§

impl Li3<f64> for f64

source§

fn li3(&self) -> f64

Returns the real trilogarithm of a real number of type f64.

Example:
use polylog::Li3;

let x = 1.0;
println!("Li3({}) = {}", x, x.li3());
source§

impl Li3<Complex<f64>> for Complex<f64>

source§

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

Returns the trilogarithm of a complex number of type Complex<f64>.

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

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

Implementors§