\frac{1 - 5 \cdot \left(v \cdot v\right)}{\left(\left(\pi \cdot t\right) \cdot \sqrt{2 \cdot \left(1 - 3 \cdot \left(v \cdot v\right)\right)}\right) \cdot \left(1 - v \cdot v\right)}
\frac{\mathsf{fma}\left(v, v \cdot -5, 1\right) \cdot \frac{\sqrt{\frac{1}{1 - \left(v \cdot v\right) \cdot 3}}}{\pi \cdot \left(\sqrt{2} \cdot \mathsf{fma}\left(v, -v, 1\right)\right)}}{t}
(FPCore (v t) :precision binary64 (/ (- 1.0 (* 5.0 (* v v))) (* (* (* PI t) (sqrt (* 2.0 (- 1.0 (* 3.0 (* v v)))))) (- 1.0 (* v v)))))
(FPCore (v t)
:precision binary64
(/
(*
(fma v (* v -5.0) 1.0)
(/
(sqrt (/ 1.0 (- 1.0 (* (* v v) 3.0))))
(* PI (* (sqrt 2.0) (fma v (- v) 1.0)))))
t))double code(double v, double t) {
return (1.0 - (5.0 * (v * v))) / (((((double) M_PI) * t) * sqrt(2.0 * (1.0 - (3.0 * (v * v))))) * (1.0 - (v * v)));
}
double code(double v, double t) {
return (fma(v, (v * -5.0), 1.0) * (sqrt(1.0 / (1.0 - ((v * v) * 3.0))) / (((double) M_PI) * (sqrt(2.0) * fma(v, -v, 1.0))))) / t;
}



Bits error versus v



Bits error versus t
Initial program 0.5
Taylor expanded in t around 0 0.4
Simplified0.4
Applied associate-/r*_binary640.3
Simplified0.3
Applied div-inv_binary640.3
Applied associate-*l*_binary640.3
Simplified0.3
Applied associate-*l/_binary640.1
Final simplification0.1
herbie shell --seed 2022082
(FPCore (v t)
:name "Falkner and Boettcher, Equation (20:1,3)"
:precision binary64
(/ (- 1.0 (* 5.0 (* v v))) (* (* (* PI t) (sqrt (* 2.0 (- 1.0 (* 3.0 (* v v)))))) (- 1.0 (* v v)))))