clausen 1.0.1

Rust implementation of Clausen functions.
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn sl11(x: f64) -> f64 {
    let pi = core::f64::consts::PI;
    let pi2 = pi*pi;
    let pi4 = pi2*pi2;
    let pi6 = pi4*pi2;
    let pi8 = pi4*pi4;
    let pi10 = pi6*pi4;
    let x2 = x*x;
    x*(pi10/93555.0 + x2*(-1.0/56700.0*pi8 + x2*(pi6/113400.0 + x2*(-1.0/453600.0*pi4 + x2*(pi2/2177280.0 + (-1.0/7257600.0*pi + 1.0/79833600.0*x)*x)))))
}