[][src]Crate polylog

Polylog

The Polylog package provides Rust implementations of real and complex polylogarithms.

Example:

extern crate num;
extern crate polylog;
use num::complex::Complex;
use polylog::{Li2, Li3, Li4, Li5, Li6};

fn main() {
    let x = 1.0;
    let z = Complex::new(1.0, 1.0);
    println!("Li2({}) = {}", x, x.li2());
    println!("Li2({}) = {}", z, z.li2());
    println!("Li3({}) = {}", z, z.li3());
    println!("Li4({}) = {}", z, z.li4());
    println!("Li5({}) = {}", z, z.li5());
    println!("Li6({}) = {}", z, z.li6());
}

Traits

Li2

Provides the dilogarithm function li2() of a number of type T.

Li3

Provides the trilogarithm function li3() of a number of type T.

Li4

Provides the fourth order polylogarithm function li4() of a number of type T.

Li5

Provides the fifth order polylogarithm function li5() of a number of type T.

Li6

Provides the sixths order polylogarithm function li6() of a number of type T.