Trait polylog::Li1

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

Provides the 1st order polylogarithm function li1() of a number of type T.

Required Methods§

source

fn li1(&self) -> T

Implementations on Foreign Types§

source§

impl Li1<f64> for f64

source§

fn li1(&self) -> f64

Returns the real first order polylogarithm of a real number of type f64.

§Example:
use polylog::Li1;

assert!((2.0_f64.li1()).abs() < std::f64::EPSILON);
source§

impl Li1<Complex<f64>> for Complex<f64>

source§

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

Returns the first order polylogarithm of a complex number of type Complex<f64>.

§Example:
use num::complex::Complex;
use polylog::Li1;

assert!((Complex::new(1.0_f64, 1.0_f64).li1() - Complex::new(0.0_f64, 1.5707963267948966_f64)).norm() < std::f64::EPSILON);

Implementors§