\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(\sqrt{\frac{1 + \frac{Om}{Omc}}{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}} \cdot \left(1 - \frac{Om}{Omc}\right)}\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 (/ Om Omc)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0))))
(- 1.0 (/ Om Omc))))))double code(double t, double l, double Om, double Omc) {
return asin(sqrt((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * pow((t / l), 2.0)))));
}
double code(double t, double l, double Om, double Omc) {
return asin(sqrt(((1.0 + (Om / Omc)) / (1.0 + (2.0 * pow((t / l), 2.0)))) * (1.0 - (Om / Omc))));
}



Bits error versus t



Bits error versus l



Bits error versus Om



Bits error versus Omc
Results
Initial program 10.5
rmApplied unpow2_binary64_14310.5
Applied *-un-lft-identity_binary64_7810.5
Applied difference-of-squares_binary64_4710.6
Applied associate-/l*_binary64_2310.6
rmApplied associate-/r/_binary64_2410.6
Final simplification10.6
herbie shell --seed 2020346
(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)))))))