clausen 1.0.1

Rust implementation of Clausen functions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn sl12(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 pi12 = pi6*pi6;
    let x2 = x*x;
    691.0*pi12/638512875.0 + x2*(-1.0/187110.0*pi10 + x2*(pi8/226800.0 + x2*(-1.0/680400.0*pi6 + x2*(pi4/3628800.0 + x2*(-1.0/21772800.0*pi2 + (pi/79833600.0 - 1.0/958003200.0*x)*x)))))
}