[−][src]Trait polylog::Li2
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]
fn li2(&self) -> f64
[src]
Returns the real dilogarithm of a real number of type f64
.
This function has been translated from the ROOT package. Original implementation by K.S. Kölbig into CERNLIB DILOG function C332, translated to C++ by R.Brun.
Implemented as a truncated series expansion in terms of Chebyshev polynomials, see [Yudell L. Luke: Mathematical functions and their approximations, Academic Press Inc., New York 1975, p.67].
Example:
use polylog::Li2; let z = 1.0; println!("Li2({}) = {}", z, z.li2());
impl Li2<Complex<f64>> for Complex<f64>
[src]
fn li2(&self) -> Complex<f64>
[src]
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()); }