[−][src]Trait polylog::Li2
Provides the dilogarithm function li2()
of a number of type T
.
Required methods
Loading content...Implementations on Foreign Types
impl Li2<f64> for f64
[src]
pub fn li2(&self) -> f64
[src]
Returns the real dilogarithm of a real number of type f64
.
Implemented as an economized Pade approximation with a maximum error of 4.16e-18.
Example:
use polylog::Li2; let z = 1.0; println!("Li2({}) = {}", z, z.li2());
impl Li2<Complex<f64>> for Complex<f64>
[src]
pub 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()); }