Average Error: 0.5 → 0.1
Time: 3.4s
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)}\]
\[\frac{\frac{1 - \left(v \cdot v\right) \cdot 5}{\sqrt{2 + v \cdot \left(v \cdot -6\right)} \cdot \left(\pi \cdot \left(1 - v \cdot v\right)\right)}}{t}\]
\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{\frac{1 - \left(v \cdot v\right) \cdot 5}{\sqrt{2 + v \cdot \left(v \cdot -6\right)} \cdot \left(\pi \cdot \left(1 - v \cdot v\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
 (/
  (/
   (- 1.0 (* (* v v) 5.0))
   (* (sqrt (+ 2.0 (* v (* v -6.0)))) (* PI (- 1.0 (* v v)))))
  t))
double code(double v, double t) {
	return (((double) (1.0 - ((double) (5.0 * ((double) (v * v)))))) / ((double) (((double) (((double) (((double) M_PI) * t)) * ((double) sqrt(((double) (2.0 * ((double) (1.0 - ((double) (3.0 * ((double) (v * v)))))))))))) * ((double) (1.0 - ((double) (v * v)))))));
}
double code(double v, double t) {
	return ((((double) (1.0 - ((double) (((double) (v * v)) * 5.0)))) / ((double) (((double) sqrt(((double) (2.0 + ((double) (v * ((double) (v * -6.0)))))))) * ((double) (((double) M_PI) * ((double) (1.0 - ((double) (v * v))))))))) / t);
}

Error

Bits error versus v

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\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.5

    \[\leadsto \color{blue}{\frac{1 - 5 \cdot \left(v \cdot v\right)}{\sqrt{2 + v \cdot \left(-6 \cdot v\right)} \cdot \left(t \cdot \left(\pi \cdot \left(1 - v \cdot v\right)\right)\right)}}\]
  3. Using strategy rm
  4. Applied associate-/r*_binary640.4

    \[\leadsto \color{blue}{\frac{\frac{1 - 5 \cdot \left(v \cdot v\right)}{\sqrt{2 + v \cdot \left(-6 \cdot v\right)}}}{t \cdot \left(\pi \cdot \left(1 - v \cdot v\right)\right)}}\]
  5. Simplified0.4

    \[\leadsto \frac{\color{blue}{\frac{1 - \left(v \cdot v\right) \cdot 5}{\sqrt{2 + v \cdot \left(v \cdot -6\right)}}}}{t \cdot \left(\pi \cdot \left(1 - v \cdot v\right)\right)}\]
  6. Using strategy rm
  7. Applied *-un-lft-identity_binary640.4

    \[\leadsto \frac{\frac{1 - \left(v \cdot v\right) \cdot 5}{\sqrt{\color{blue}{1 \cdot \left(2 + v \cdot \left(v \cdot -6\right)\right)}}}}{t \cdot \left(\pi \cdot \left(1 - v \cdot v\right)\right)}\]
  8. Applied sqrt-prod_binary640.4

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

    \[\leadsto \frac{\frac{\color{blue}{\sqrt{1 - \left(v \cdot v\right) \cdot 5} \cdot \sqrt{1 - \left(v \cdot v\right) \cdot 5}}}{\sqrt{1} \cdot \sqrt{2 + v \cdot \left(v \cdot -6\right)}}}{t \cdot \left(\pi \cdot \left(1 - v \cdot v\right)\right)}\]
  10. Applied times-frac_binary640.5

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

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

    \[\leadsto \color{blue}{\frac{\sqrt{1 - \left(v \cdot v\right) \cdot 5}}{t}} \cdot \frac{\frac{\sqrt{1 - \left(v \cdot v\right) \cdot 5}}{\sqrt{2 + v \cdot \left(v \cdot -6\right)}}}{\pi \cdot \left(1 - v \cdot v\right)}\]
  13. Using strategy rm
  14. Applied associate-*l/_binary640.1

    \[\leadsto \color{blue}{\frac{\sqrt{1 - \left(v \cdot v\right) \cdot 5} \cdot \frac{\frac{\sqrt{1 - \left(v \cdot v\right) \cdot 5}}{\sqrt{2 + v \cdot \left(v \cdot -6\right)}}}{\pi \cdot \left(1 - v \cdot v\right)}}{t}}\]
  15. Simplified0.1

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

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

Reproduce

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