\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}}}\right)\sin^{-1} \left(\frac{\sqrt{1 - {\left(\frac{Om}{Omc}\right)}^{2}}}{\sqrt{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}}}\right)(FPCore (t l Om Omc) :precision binary64 (asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))
(FPCore (t l Om Omc) :precision binary64 (asin (/ (sqrt (- 1.0 (pow (/ Om Omc) 2.0))) (sqrt (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))
double code(double t, double l, double Om, double Omc) {
return ((double) asin(((double) sqrt((((double) (1.0 - ((double) pow((Om / Omc), 2.0)))) / ((double) (1.0 + ((double) (2.0 * ((double) pow((t / l), 2.0)))))))))));
}
double code(double t, double l, double Om, double Omc) {
return ((double) asin((((double) sqrt(((double) (1.0 - ((double) pow((Om / Omc), 2.0)))))) / ((double) sqrt(((double) (1.0 + ((double) (2.0 * ((double) pow((t / l), 2.0)))))))))));
}



Bits error versus t



Bits error versus l



Bits error versus Om



Bits error versus Omc
Results
Initial program Error: 10.1 bits
rmApplied sqrt-divError: 10.2 bits
Final simplificationError: 10.2 bits
herbie shell --seed 2020205
(FPCore (t l Om Omc)
:name "Toniolo and Linder, Equation (2)"
:precision binary64
(asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))