Average Error: 0.4 → 0.1
Time: 53.8s
Precision: binary64
\[\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)} \]
\[\begin{array}{l} t_1 := \sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}\\ \frac{t_1 \cdot \frac{t_1}{\sqrt{2 - \left(v \cdot v\right) \cdot 6} \cdot \left(\pi - \left(v \cdot v\right) \cdot \pi\right)}}{t} \end{array} \]
\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)}
\begin{array}{l}
t_1 := \sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}\\
\frac{t_1 \cdot \frac{t_1}{\sqrt{2 - \left(v \cdot v\right) \cdot 6} \cdot \left(\pi - \left(v \cdot v\right) \cdot \pi\right)}}{t}
\end{array}
(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
 (let* ((t_1 (sqrt (fma v (* v -5.0) 1.0))))
   (/
    (* t_1 (/ t_1 (* (sqrt (- 2.0 (* (* v v) 6.0))) (- PI (* (* v v) PI)))))
    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) {
	double t_1 = sqrt(fma(v, (v * -5.0), 1.0));
	return (t_1 * (t_1 / (sqrt(2.0 - ((v * v) * 6.0)) * (((double) M_PI) - ((v * v) * ((double) M_PI)))))) / t;
}

Error

Bits error versus v

Bits error versus t

Derivation

  1. Initial program 0.4

    \[\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)} \]
  2. Simplified0.4

    \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(v, v \cdot -5, 1\right)}{\sqrt{\mathsf{fma}\left(v, -6 \cdot v, 2\right)} \cdot \left(\left(\pi \cdot t\right) \cdot \left(1 - v \cdot v\right)\right)}} \]
  3. Taylor expanded in t around 0 0.4

    \[\leadsto \frac{\mathsf{fma}\left(v, v \cdot -5, 1\right)}{\color{blue}{t \cdot \left(\pi \cdot \sqrt{2 - 6 \cdot {v}^{2}} - \left({v}^{2} \cdot \pi\right) \cdot \sqrt{2 - 6 \cdot {v}^{2}}\right)}} \]
  4. Applied add-sqr-sqrt_binary640.4

    \[\leadsto \frac{\color{blue}{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)} \cdot \sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}}{t \cdot \left(\pi \cdot \sqrt{2 - 6 \cdot {v}^{2}} - \left({v}^{2} \cdot \pi\right) \cdot \sqrt{2 - 6 \cdot {v}^{2}}\right)} \]
  5. Applied times-frac_binary640.3

    \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}{t} \cdot \frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}{\pi \cdot \sqrt{2 - 6 \cdot {v}^{2}} - \left({v}^{2} \cdot \pi\right) \cdot \sqrt{2 - 6 \cdot {v}^{2}}}} \]
  6. Simplified0.3

    \[\leadsto \frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}{t} \cdot \color{blue}{\frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}{\sqrt{2 - \left(v \cdot v\right) \cdot 6} \cdot \left(\pi - \pi \cdot \left(v \cdot v\right)\right)}} \]
  7. Applied associate-*l/_binary640.1

    \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)} \cdot \frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}{\sqrt{2 - \left(v \cdot v\right) \cdot 6} \cdot \left(\pi - \pi \cdot \left(v \cdot v\right)\right)}}{t}} \]
  8. Final simplification0.1

    \[\leadsto \frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)} \cdot \frac{\sqrt{\mathsf{fma}\left(v, v \cdot -5, 1\right)}}{\sqrt{2 - \left(v \cdot v\right) \cdot 6} \cdot \left(\pi - \left(v \cdot v\right) \cdot \pi\right)}}{t} \]

Reproduce

herbie shell --seed 2022076 
(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)))))