clausen 1.0.1

Rust implementation of Clausen functions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub fn sl23(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 pi14 = pi8*pi6;
    let pi16 = pi8*pi8;
    let pi18 = pi10*pi8;
    let pi20 = pi10*pi10;
    let pi22 = pi12*pi10;
    let x2 = x*x;
    x*(155366.0*pi22/13447856940643125.0 + x2*(-174611.0*pi20/9187976791743750.0 + x2*(43867.0*pi18/4677515457615000.0 + x2*(-3617.0*pi16/1641233493900000.0 + x2*(pi14/3310050744000.0 + x2*(-691.0*pi12/25487390728800000.0 + x2*(pi10/582568930944000.0 + x2*(-1.0/12357522777600000.0*pi8 + x2*(pi6/336124619550720000.0 + x2*(-1.0/10948059036794880000.0*pi4 + x2*(pi2/306545653030256640000.0 + (-1.0/2248001455555215360000.0*pi + 1.0/51704033477769953280000.0*x)*x)))))))))))
}