?

Average Accuracy: 100.0% → 100.0%
Time: 6.0s
Precision: binary64
Cost: 7360

?

\[\left(\frac{\sqrt{2}}{4} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]
\[\left(0.25 \cdot \sqrt{2 + -6 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]
(FPCore (v)
 :precision binary64
 (* (* (/ (sqrt 2.0) 4.0) (sqrt (- 1.0 (* 3.0 (* v v))))) (- 1.0 (* v v))))
(FPCore (v)
 :precision binary64
 (* (* 0.25 (sqrt (+ 2.0 (* -6.0 (* v v))))) (- 1.0 (* v v))))
double code(double v) {
	return ((sqrt(2.0) / 4.0) * sqrt((1.0 - (3.0 * (v * v))))) * (1.0 - (v * v));
}
double code(double v) {
	return (0.25 * sqrt((2.0 + (-6.0 * (v * v))))) * (1.0 - (v * v));
}
real(8) function code(v)
    real(8), intent (in) :: v
    code = ((sqrt(2.0d0) / 4.0d0) * sqrt((1.0d0 - (3.0d0 * (v * v))))) * (1.0d0 - (v * v))
end function
real(8) function code(v)
    real(8), intent (in) :: v
    code = (0.25d0 * sqrt((2.0d0 + ((-6.0d0) * (v * v))))) * (1.0d0 - (v * v))
end function
public static double code(double v) {
	return ((Math.sqrt(2.0) / 4.0) * Math.sqrt((1.0 - (3.0 * (v * v))))) * (1.0 - (v * v));
}
public static double code(double v) {
	return (0.25 * Math.sqrt((2.0 + (-6.0 * (v * v))))) * (1.0 - (v * v));
}
def code(v):
	return ((math.sqrt(2.0) / 4.0) * math.sqrt((1.0 - (3.0 * (v * v))))) * (1.0 - (v * v))
def code(v):
	return (0.25 * math.sqrt((2.0 + (-6.0 * (v * v))))) * (1.0 - (v * v))
function code(v)
	return Float64(Float64(Float64(sqrt(2.0) / 4.0) * sqrt(Float64(1.0 - Float64(3.0 * Float64(v * v))))) * Float64(1.0 - Float64(v * v)))
end
function code(v)
	return Float64(Float64(0.25 * sqrt(Float64(2.0 + Float64(-6.0 * Float64(v * v))))) * Float64(1.0 - Float64(v * v)))
end
function tmp = code(v)
	tmp = ((sqrt(2.0) / 4.0) * sqrt((1.0 - (3.0 * (v * v))))) * (1.0 - (v * v));
end
function tmp = code(v)
	tmp = (0.25 * sqrt((2.0 + (-6.0 * (v * v))))) * (1.0 - (v * v));
end
code[v_] := N[(N[(N[(N[Sqrt[2.0], $MachinePrecision] / 4.0), $MachinePrecision] * N[Sqrt[N[(1.0 - N[(3.0 * N[(v * v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(v * v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[v_] := N[(N[(0.25 * N[Sqrt[N[(2.0 + N[(-6.0 * N[(v * v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(v * v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(\frac{\sqrt{2}}{4} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right)
\left(0.25 \cdot \sqrt{2 + -6 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right)

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 100.0%

    \[\left(\frac{\sqrt{2}}{4} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]
  2. Applied egg-rr100.0%

    \[\leadsto \color{blue}{\frac{1}{\frac{4}{\sqrt{2 \cdot \left(1 + \left(-3 \cdot v\right) \cdot v\right)}}}} \cdot \left(1 - v \cdot v\right) \]
    Proof
  3. No proof available- proof too large to flatten.
  4. Simplified100.0%

    \[\leadsto \color{blue}{\left(0.25 \cdot \sqrt{2 + -6 \cdot \left(v \cdot v\right)}\right)} \cdot \left(1 - v \cdot v\right) \]
    Proof

    [Start]100.0

    \[ \frac{1}{\frac{4}{\sqrt{2 \cdot \left(1 + \left(-3 \cdot v\right) \cdot v\right)}}} \cdot \left(1 - v \cdot v\right) \]

    associate-/r/ [=>]100.0

    \[ \color{blue}{\left(\frac{1}{4} \cdot \sqrt{2 \cdot \left(1 + \left(-3 \cdot v\right) \cdot v\right)}\right)} \cdot \left(1 - v \cdot v\right) \]

    metadata-eval [=>]100.0

    \[ \left(\color{blue}{0.25} \cdot \sqrt{2 \cdot \left(1 + \left(-3 \cdot v\right) \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]

    distribute-lft-in [=>]100.0

    \[ \left(0.25 \cdot \sqrt{\color{blue}{2 \cdot 1 + 2 \cdot \left(\left(-3 \cdot v\right) \cdot v\right)}}\right) \cdot \left(1 - v \cdot v\right) \]

    metadata-eval [=>]100.0

    \[ \left(0.25 \cdot \sqrt{\color{blue}{2} + 2 \cdot \left(\left(-3 \cdot v\right) \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]

    associate-*l* [=>]100.0

    \[ \left(0.25 \cdot \sqrt{2 + 2 \cdot \color{blue}{\left(-3 \cdot \left(v \cdot v\right)\right)}}\right) \cdot \left(1 - v \cdot v\right) \]

    associate-*r* [=>]100.0

    \[ \left(0.25 \cdot \sqrt{2 + \color{blue}{\left(2 \cdot -3\right) \cdot \left(v \cdot v\right)}}\right) \cdot \left(1 - v \cdot v\right) \]

    metadata-eval [=>]100.0

    \[ \left(0.25 \cdot \sqrt{2 + \color{blue}{-6} \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]
  5. Final simplification100.0%

    \[\leadsto \left(0.25 \cdot \sqrt{2 + -6 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right) \]

Alternatives

Alternative 1
Accuracy99.6%
Cost6976
\[\sqrt{2} \cdot \left(0.25 + \left(v \cdot v\right) \cdot -0.625\right) \]
Alternative 2
Accuracy99.1%
Cost6848
\[\left(1 - v \cdot v\right) \cdot \sqrt{0.125} \]
Alternative 3
Accuracy99.0%
Cost6464
\[\sqrt{0.125} \]

Error

Reproduce?

herbie shell --seed 2023133 
(FPCore (v)
  :name "Falkner and Boettcher, Appendix B, 2"
  :precision binary64
  (* (* (/ (sqrt 2.0) 4.0) (sqrt (- 1.0 (* 3.0 (* v v))))) (- 1.0 (* v v))))