Trait polylog::Li2 [−][src]
pub trait Li2<T> {
fn li2(&self) -> T;
}Provides the dilogarithm function li2() of a number of type T.
Required Methods
fn li2(&self) -> T
Implementations on Foreign Types
impl Li2<f64> for f64[src]
impl Li2<f64> for f64Returns the dilogarithm of a real number of type f64.
This function has been translated from the ROOT package.
Example:
use polylog::Li2; let z = 1.0; println!("Li2({}) = {}", z, z.li2());
impl Li2<Complex<f64>> for Complex<f64>[src]
impl Li2<Complex<f64>> for Complex<f64>Returns the dilogarithm of a complex number of type
Complex<f64>.
This function has been translated from the SPheno package.
Example:
extern crate num; extern crate polylog; use num::complex::Complex; use polylog::Li2; fn main() { let z = Complex::new(1.0, 1.0); println!("Li2({}) = {}", z, z.li2()); }