Average Error: 1.0 → 0.0
Time: 3.7s
Precision: binary64
\[\frac{4}{\left(\left(3 \cdot \pi\right) \cdot \left(1 - v \cdot v\right)\right) \cdot \sqrt{2 - 6 \cdot \left(v \cdot v\right)}}\]
\[\frac{1.3333333333333333}{\pi \cdot \frac{\left(1 - v \cdot v\right) \cdot \sqrt{4 + {v}^{4} \cdot -36}}{\sqrt{2 + \left(v \cdot v\right) \cdot 6}}}\]
\frac{4}{\left(\left(3 \cdot \pi\right) \cdot \left(1 - v \cdot v\right)\right) \cdot \sqrt{2 - 6 \cdot \left(v \cdot v\right)}}
\frac{1.3333333333333333}{\pi \cdot \frac{\left(1 - v \cdot v\right) \cdot \sqrt{4 + {v}^{4} \cdot -36}}{\sqrt{2 + \left(v \cdot v\right) \cdot 6}}}
(FPCore (v)
 :precision binary64
 (/ 4.0 (* (* (* 3.0 PI) (- 1.0 (* v v))) (sqrt (- 2.0 (* 6.0 (* v v)))))))
(FPCore (v)
 :precision binary64
 (/
  1.3333333333333333
  (*
   PI
   (/
    (* (- 1.0 (* v v)) (sqrt (+ 4.0 (* (pow v 4.0) -36.0))))
    (sqrt (+ 2.0 (* (* v v) 6.0)))))))
double code(double v) {
	return 4.0 / (((3.0 * ((double) M_PI)) * (1.0 - (v * v))) * sqrt(2.0 - (6.0 * (v * v))));
}
double code(double v) {
	return 1.3333333333333333 / (((double) M_PI) * (((1.0 - (v * v)) * sqrt(4.0 + (pow(v, 4.0) * -36.0))) / sqrt(2.0 + ((v * v) * 6.0))));
}

Error

Bits error versus v

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 1.0

    \[\frac{4}{\left(\left(3 \cdot \pi\right) \cdot \left(1 - v \cdot v\right)\right) \cdot \sqrt{2 - 6 \cdot \left(v \cdot v\right)}}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\frac{1.3333333333333333}{\pi \cdot \left(\left(1 - v \cdot v\right) \cdot \sqrt{2 - \left(v \cdot v\right) \cdot 6}\right)}}\]
  3. Using strategy rm
  4. Applied flip--_binary64_14170.0

    \[\leadsto \frac{1.3333333333333333}{\pi \cdot \left(\left(1 - v \cdot v\right) \cdot \sqrt{\color{blue}{\frac{2 \cdot 2 - \left(\left(v \cdot v\right) \cdot 6\right) \cdot \left(\left(v \cdot v\right) \cdot 6\right)}{2 + \left(v \cdot v\right) \cdot 6}}}\right)}\]
  5. Applied sqrt-div_binary64_14590.0

    \[\leadsto \frac{1.3333333333333333}{\pi \cdot \left(\left(1 - v \cdot v\right) \cdot \color{blue}{\frac{\sqrt{2 \cdot 2 - \left(\left(v \cdot v\right) \cdot 6\right) \cdot \left(\left(v \cdot v\right) \cdot 6\right)}}{\sqrt{2 + \left(v \cdot v\right) \cdot 6}}}\right)}\]
  6. Applied associate-*r/_binary64_13840.0

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

    \[\leadsto \frac{1.3333333333333333}{\pi \cdot \frac{\color{blue}{\left(1 - v \cdot v\right) \cdot \sqrt{4 + {v}^{4} \cdot -36}}}{\sqrt{2 + \left(v \cdot v\right) \cdot 6}}}\]
  8. Final simplification0.0

    \[\leadsto \frac{1.3333333333333333}{\pi \cdot \frac{\left(1 - v \cdot v\right) \cdot \sqrt{4 + {v}^{4} \cdot -36}}{\sqrt{2 + \left(v \cdot v\right) \cdot 6}}}\]

Reproduce

herbie shell --seed 2020344 
(FPCore (v)
  :name "Falkner and Boettcher, Equation (22+)"
  :precision binary64
  (/ 4.0 (* (* (* 3.0 PI) (- 1.0 (* v v))) (sqrt (- 2.0 (* 6.0 (* v v)))))))