Trait polylog::Li4

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

Provides the 4-th order polylogarithm function li4() of a number of type T.

Required Methods§

source

fn li4(&self) -> T

Implementations on Foreign Types§

source§

impl Li4<f64> for f64

source§

fn li4(&self) -> f64

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

§Example:
use polylog::Li4;

assert!((1.0_f64.li4() - 1.0823232337111382_f64).abs() < std::f64::EPSILON);
source§

impl Li4<Complex<f64>> for Complex<f64>

source§

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

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

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

assert!((Complex::new(1.0_f64, 1.0_f64).li4() - Complex::new(0.9593189135784193_f64, 1.1380391966769828_f64)).norm() < 2.0_f64*std::f64::EPSILON);

Implementors§