?

Average Error: 15.2 → 0.9
Time: 5.9s
Precision: binary64
Cost: 13376

?

\[\sqrt[3]{\frac{g}{2 \cdot a}} \]
\[\frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\sqrt[3]{\frac{1}{g}}} \]
(FPCore (g a) :precision binary64 (cbrt (/ g (* 2.0 a))))
(FPCore (g a)
 :precision binary64
 (/ (/ 1.0 (cbrt (* a 2.0))) (cbrt (/ 1.0 g))))
double code(double g, double a) {
	return cbrt((g / (2.0 * a)));
}
double code(double g, double a) {
	return (1.0 / cbrt((a * 2.0))) / cbrt((1.0 / g));
}
public static double code(double g, double a) {
	return Math.cbrt((g / (2.0 * a)));
}
public static double code(double g, double a) {
	return (1.0 / Math.cbrt((a * 2.0))) / Math.cbrt((1.0 / g));
}
function code(g, a)
	return cbrt(Float64(g / Float64(2.0 * a)))
end
function code(g, a)
	return Float64(Float64(1.0 / cbrt(Float64(a * 2.0))) / cbrt(Float64(1.0 / g)))
end
code[g_, a_] := N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]
code[g_, a_] := N[(N[(1.0 / N[Power[N[(a * 2.0), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[N[(1.0 / g), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]
\sqrt[3]{\frac{g}{2 \cdot a}}
\frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\sqrt[3]{\frac{1}{g}}}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 15.2

    \[\sqrt[3]{\frac{g}{2 \cdot a}} \]
  2. Applied egg-rr0.9

    \[\leadsto \color{blue}{\sqrt[3]{g} \cdot \frac{1}{\sqrt[3]{2 \cdot a}}} \]
  3. Simplified0.8

    \[\leadsto \color{blue}{\frac{\sqrt[3]{g}}{\sqrt[3]{a \cdot 2}}} \]
    Proof

    [Start]0.9

    \[ \sqrt[3]{g} \cdot \frac{1}{\sqrt[3]{2 \cdot a}} \]

    associate-*r/ [=>]0.8

    \[ \color{blue}{\frac{\sqrt[3]{g} \cdot 1}{\sqrt[3]{2 \cdot a}}} \]

    *-rgt-identity [=>]0.8

    \[ \frac{\color{blue}{\sqrt[3]{g}}}{\sqrt[3]{2 \cdot a}} \]

    *-commutative [=>]0.8

    \[ \frac{\sqrt[3]{g}}{\sqrt[3]{\color{blue}{a \cdot 2}}} \]
  4. Applied egg-rr1.2

    \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{a}} \cdot \frac{\sqrt[3]{g}}{\sqrt[3]{2}}} \]
  5. Applied egg-rr0.9

    \[\leadsto \color{blue}{\frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\frac{1}{\sqrt[3]{g}}}} \]
  6. Applied egg-rr34.4

    \[\leadsto \frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\color{blue}{{\left(\frac{1}{g}\right)}^{0.3333333333333333}}} \]
  7. Simplified0.9

    \[\leadsto \frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\color{blue}{\sqrt[3]{\frac{1}{g}}}} \]
    Proof

    [Start]34.4

    \[ \frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{{\left(\frac{1}{g}\right)}^{0.3333333333333333}} \]

    unpow1/3 [=>]0.9

    \[ \frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\color{blue}{\sqrt[3]{\frac{1}{g}}}} \]
  8. Final simplification0.9

    \[\leadsto \frac{\frac{1}{\sqrt[3]{a \cdot 2}}}{\sqrt[3]{\frac{1}{g}}} \]

Alternatives

Alternative 1
Error15.3
Cost13120
\[\sqrt[3]{0.5} \cdot \sqrt[3]{\frac{g}{a}} \]
Alternative 2
Error0.8
Cost13120
\[\sqrt[3]{g} \cdot \sqrt[3]{\frac{0.5}{a}} \]
Alternative 3
Error0.8
Cost13120
\[\frac{\sqrt[3]{g}}{\sqrt[3]{a \cdot 2}} \]
Alternative 4
Error15.2
Cost6720
\[\sqrt[3]{g \cdot \frac{0.5}{a}} \]
Alternative 5
Error15.2
Cost6720
\[\sqrt[3]{\frac{g}{a \cdot 2}} \]

Error

Reproduce?

herbie shell --seed 2023027 
(FPCore (g a)
  :name "2-ancestry mixing, zero discriminant"
  :precision binary64
  (cbrt (/ g (* 2.0 a))))