
(FPCore (g a) :precision binary64 (cbrt (/ g (* 2.0 a))))
double code(double g, double a) {
return cbrt((g / (2.0 * a)));
}
public static double code(double g, double a) {
return Math.cbrt((g / (2.0 * a)));
}
function code(g, a) return cbrt(Float64(g / Float64(2.0 * a))) end
code[g_, a_] := N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]
\begin{array}{l}
\\
\sqrt[3]{\frac{g}{2 \cdot a}}
\end{array}
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (g a) :precision binary64 (cbrt (/ g (* 2.0 a))))
double code(double g, double a) {
return cbrt((g / (2.0 * a)));
}
public static double code(double g, double a) {
return Math.cbrt((g / (2.0 * a)));
}
function code(g, a) return cbrt(Float64(g / Float64(2.0 * a))) end
code[g_, a_] := N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]
\begin{array}{l}
\\
\sqrt[3]{\frac{g}{2 \cdot a}}
\end{array}
(FPCore (g a) :precision binary64 (/ (cbrt g) (* (cbrt a) (pow 2.0 0.3333333333333333))))
double code(double g, double a) {
return cbrt(g) / (cbrt(a) * pow(2.0, 0.3333333333333333));
}
public static double code(double g, double a) {
return Math.cbrt(g) / (Math.cbrt(a) * Math.pow(2.0, 0.3333333333333333));
}
function code(g, a) return Float64(cbrt(g) / Float64(cbrt(a) * (2.0 ^ 0.3333333333333333))) end
code[g_, a_] := N[(N[Power[g, 1/3], $MachinePrecision] / N[(N[Power[a, 1/3], $MachinePrecision] * N[Power[2.0, 0.3333333333333333], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sqrt[3]{g}}{\sqrt[3]{a} \cdot {2}^{0.3333333333333333}}
\end{array}
Initial program 76.1%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
cbrt-divN/A
lower-/.f64N/A
lower-cbrt.f64N/A
lower-cbrt.f64N/A
count-2-revN/A
lower-+.f6498.7
Applied rewrites98.7%
lift-+.f64N/A
lift-cbrt.f64N/A
count-2-revN/A
*-commutativeN/A
cbrt-unprodN/A
lower-*.f64N/A
lift-cbrt.f64N/A
lower-cbrt.f6498.2
Applied rewrites98.2%
lift-cbrt.f64N/A
pow1/3N/A
lower-pow.f6498.7
Applied rewrites98.7%
(FPCore (g a) :precision binary64 (/ (cbrt (* 0.5 g)) (cbrt a)))
double code(double g, double a) {
return cbrt((0.5 * g)) / cbrt(a);
}
public static double code(double g, double a) {
return Math.cbrt((0.5 * g)) / Math.cbrt(a);
}
function code(g, a) return Float64(cbrt(Float64(0.5 * g)) / cbrt(a)) end
code[g_, a_] := N[(N[Power[N[(0.5 * g), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[a, 1/3], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sqrt[3]{0.5 \cdot g}}{\sqrt[3]{a}}
\end{array}
Initial program 76.1%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-/r*N/A
cbrt-divN/A
lower-/.f64N/A
lower-cbrt.f64N/A
lower-/.f64N/A
lower-cbrt.f6498.7
Applied rewrites98.7%
Taylor expanded in g around 0
lower-*.f6498.7
Applied rewrites98.7%
(FPCore (g a) :precision binary64 (/ (cbrt g) (cbrt (+ a a))))
double code(double g, double a) {
return cbrt(g) / cbrt((a + a));
}
public static double code(double g, double a) {
return Math.cbrt(g) / Math.cbrt((a + a));
}
function code(g, a) return Float64(cbrt(g) / cbrt(Float64(a + a))) end
code[g_, a_] := N[(N[Power[g, 1/3], $MachinePrecision] / N[Power[N[(a + a), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sqrt[3]{g}}{\sqrt[3]{a + a}}
\end{array}
Initial program 76.1%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
cbrt-divN/A
lower-/.f64N/A
lower-cbrt.f64N/A
lower-cbrt.f64N/A
count-2-revN/A
lower-+.f6498.7
Applied rewrites98.7%
(FPCore (g a)
:precision binary64
(let* ((t_0 (cbrt (/ g (* 2.0 a)))) (t_1 (cbrt (/ g (+ a a)))))
(if (<= t_0 -4e-106)
t_1
(if (<= t_0 5e-108)
(exp (* (- (log (* 0.5 g)) (log a)) 0.3333333333333333))
(if (<= t_0 5e+101)
t_1
(exp (* (- (log g) (+ (log a) (log 2.0))) 0.3333333333333333)))))))
double code(double g, double a) {
double t_0 = cbrt((g / (2.0 * a)));
double t_1 = cbrt((g / (a + a)));
double tmp;
if (t_0 <= -4e-106) {
tmp = t_1;
} else if (t_0 <= 5e-108) {
tmp = exp(((log((0.5 * g)) - log(a)) * 0.3333333333333333));
} else if (t_0 <= 5e+101) {
tmp = t_1;
} else {
tmp = exp(((log(g) - (log(a) + log(2.0))) * 0.3333333333333333));
}
return tmp;
}
public static double code(double g, double a) {
double t_0 = Math.cbrt((g / (2.0 * a)));
double t_1 = Math.cbrt((g / (a + a)));
double tmp;
if (t_0 <= -4e-106) {
tmp = t_1;
} else if (t_0 <= 5e-108) {
tmp = Math.exp(((Math.log((0.5 * g)) - Math.log(a)) * 0.3333333333333333));
} else if (t_0 <= 5e+101) {
tmp = t_1;
} else {
tmp = Math.exp(((Math.log(g) - (Math.log(a) + Math.log(2.0))) * 0.3333333333333333));
}
return tmp;
}
function code(g, a) t_0 = cbrt(Float64(g / Float64(2.0 * a))) t_1 = cbrt(Float64(g / Float64(a + a))) tmp = 0.0 if (t_0 <= -4e-106) tmp = t_1; elseif (t_0 <= 5e-108) tmp = exp(Float64(Float64(log(Float64(0.5 * g)) - log(a)) * 0.3333333333333333)); elseif (t_0 <= 5e+101) tmp = t_1; else tmp = exp(Float64(Float64(log(g) - Float64(log(a) + log(2.0))) * 0.3333333333333333)); end return tmp end
code[g_, a_] := Block[{t$95$0 = N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$1 = N[Power[N[(g / N[(a + a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, If[LessEqual[t$95$0, -4e-106], t$95$1, If[LessEqual[t$95$0, 5e-108], N[Exp[N[(N[(N[Log[N[(0.5 * g), $MachinePrecision]], $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$0, 5e+101], t$95$1, N[Exp[N[(N[(N[Log[g], $MachinePrecision] - N[(N[Log[a], $MachinePrecision] + N[Log[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt[3]{\frac{g}{2 \cdot a}}\\
t_1 := \sqrt[3]{\frac{g}{a + a}}\\
\mathbf{if}\;t\_0 \leq -4 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-108}:\\
\;\;\;\;e^{\left(\log \left(0.5 \cdot g\right) - \log a\right) \cdot 0.3333333333333333}\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;e^{\left(\log g - \left(\log a + \log 2\right)\right) \cdot 0.3333333333333333}\\
\end{array}
\end{array}
if (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < -3.99999999999999976e-106 or 5e-108 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < 4.99999999999999989e101Initial program 91.5%
lift-*.f64N/A
count-2-revN/A
lower-+.f6491.5
Applied rewrites91.5%
if -3.99999999999999976e-106 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < 5e-108Initial program 5.6%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
pow1/3N/A
pow-to-expN/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lift-/.f64N/A
count-2-revN/A
lower-+.f644.5
Applied rewrites4.5%
Taylor expanded in g around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-log.f64N/A
lower-/.f64N/A
lower-log.f64N/A
lower-/.f6422.4
Applied rewrites22.4%
Taylor expanded in g around inf
diff-logN/A
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
log-recN/A
lower-neg.f64N/A
lift-log.f64N/A
lower-log.f64N/A
lower-/.f6422.0
Applied rewrites22.0%
Applied rewrites22.0%
if 4.99999999999999989e101 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) Initial program 91.5%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
pow1/3N/A
pow-to-expN/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lift-/.f64N/A
count-2-revN/A
lower-+.f6442.6
Applied rewrites42.6%
lift-log.f64N/A
lift-+.f64N/A
lift-/.f64N/A
log-divN/A
lower--.f64N/A
lower-log.f64N/A
lower-log.f64N/A
lift-+.f6421.0
Applied rewrites21.0%
lift-+.f64N/A
lift-log.f64N/A
count-2-revN/A
sum-logN/A
+-commutativeN/A
lower-+.f64N/A
lower-log.f64N/A
lower-log.f6421.0
Applied rewrites21.0%
(FPCore (g a)
:precision binary64
(let* ((t_0 (cbrt (/ g (* 2.0 a)))) (t_1 (cbrt (/ g (+ a a)))))
(if (<= t_0 -4e-106)
t_1
(if (<= t_0 5e-108)
(exp (* (- (log (* 0.5 g)) (log a)) 0.3333333333333333))
(if (<= t_0 5e+101)
t_1
(exp (* (- (log g) (log (+ a a))) 0.3333333333333333)))))))
double code(double g, double a) {
double t_0 = cbrt((g / (2.0 * a)));
double t_1 = cbrt((g / (a + a)));
double tmp;
if (t_0 <= -4e-106) {
tmp = t_1;
} else if (t_0 <= 5e-108) {
tmp = exp(((log((0.5 * g)) - log(a)) * 0.3333333333333333));
} else if (t_0 <= 5e+101) {
tmp = t_1;
} else {
tmp = exp(((log(g) - log((a + a))) * 0.3333333333333333));
}
return tmp;
}
public static double code(double g, double a) {
double t_0 = Math.cbrt((g / (2.0 * a)));
double t_1 = Math.cbrt((g / (a + a)));
double tmp;
if (t_0 <= -4e-106) {
tmp = t_1;
} else if (t_0 <= 5e-108) {
tmp = Math.exp(((Math.log((0.5 * g)) - Math.log(a)) * 0.3333333333333333));
} else if (t_0 <= 5e+101) {
tmp = t_1;
} else {
tmp = Math.exp(((Math.log(g) - Math.log((a + a))) * 0.3333333333333333));
}
return tmp;
}
function code(g, a) t_0 = cbrt(Float64(g / Float64(2.0 * a))) t_1 = cbrt(Float64(g / Float64(a + a))) tmp = 0.0 if (t_0 <= -4e-106) tmp = t_1; elseif (t_0 <= 5e-108) tmp = exp(Float64(Float64(log(Float64(0.5 * g)) - log(a)) * 0.3333333333333333)); elseif (t_0 <= 5e+101) tmp = t_1; else tmp = exp(Float64(Float64(log(g) - log(Float64(a + a))) * 0.3333333333333333)); end return tmp end
code[g_, a_] := Block[{t$95$0 = N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$1 = N[Power[N[(g / N[(a + a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, If[LessEqual[t$95$0, -4e-106], t$95$1, If[LessEqual[t$95$0, 5e-108], N[Exp[N[(N[(N[Log[N[(0.5 * g), $MachinePrecision]], $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$0, 5e+101], t$95$1, N[Exp[N[(N[(N[Log[g], $MachinePrecision] - N[Log[N[(a + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt[3]{\frac{g}{2 \cdot a}}\\
t_1 := \sqrt[3]{\frac{g}{a + a}}\\
\mathbf{if}\;t\_0 \leq -4 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-108}:\\
\;\;\;\;e^{\left(\log \left(0.5 \cdot g\right) - \log a\right) \cdot 0.3333333333333333}\\
\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;e^{\left(\log g - \log \left(a + a\right)\right) \cdot 0.3333333333333333}\\
\end{array}
\end{array}
if (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < -3.99999999999999976e-106 or 5e-108 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < 4.99999999999999989e101Initial program 91.5%
lift-*.f64N/A
count-2-revN/A
lower-+.f6491.5
Applied rewrites91.5%
if -3.99999999999999976e-106 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < 5e-108Initial program 5.6%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
pow1/3N/A
pow-to-expN/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lift-/.f64N/A
count-2-revN/A
lower-+.f644.5
Applied rewrites4.5%
Taylor expanded in g around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-log.f64N/A
lower-/.f64N/A
lower-log.f64N/A
lower-/.f6422.4
Applied rewrites22.4%
Taylor expanded in g around inf
diff-logN/A
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
log-recN/A
lower-neg.f64N/A
lift-log.f64N/A
lower-log.f64N/A
lower-/.f6422.0
Applied rewrites22.0%
Applied rewrites22.0%
if 4.99999999999999989e101 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) Initial program 91.5%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
pow1/3N/A
pow-to-expN/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lift-/.f64N/A
count-2-revN/A
lower-+.f6442.6
Applied rewrites42.6%
lift-log.f64N/A
lift-+.f64N/A
lift-/.f64N/A
log-divN/A
lower--.f64N/A
lower-log.f64N/A
lower-log.f64N/A
lift-+.f6421.0
Applied rewrites21.0%
(FPCore (g a)
:precision binary64
(let* ((t_0 (exp (* (- (log g) (log (+ a a))) 0.3333333333333333)))
(t_1 (cbrt (/ g (* 2.0 a))))
(t_2 (cbrt (/ g (+ a a)))))
(if (<= t_1 -4e-106)
t_2
(if (<= t_1 5e-108) t_0 (if (<= t_1 5e+101) t_2 t_0)))))
double code(double g, double a) {
double t_0 = exp(((log(g) - log((a + a))) * 0.3333333333333333));
double t_1 = cbrt((g / (2.0 * a)));
double t_2 = cbrt((g / (a + a)));
double tmp;
if (t_1 <= -4e-106) {
tmp = t_2;
} else if (t_1 <= 5e-108) {
tmp = t_0;
} else if (t_1 <= 5e+101) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double g, double a) {
double t_0 = Math.exp(((Math.log(g) - Math.log((a + a))) * 0.3333333333333333));
double t_1 = Math.cbrt((g / (2.0 * a)));
double t_2 = Math.cbrt((g / (a + a)));
double tmp;
if (t_1 <= -4e-106) {
tmp = t_2;
} else if (t_1 <= 5e-108) {
tmp = t_0;
} else if (t_1 <= 5e+101) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
function code(g, a) t_0 = exp(Float64(Float64(log(g) - log(Float64(a + a))) * 0.3333333333333333)) t_1 = cbrt(Float64(g / Float64(2.0 * a))) t_2 = cbrt(Float64(g / Float64(a + a))) tmp = 0.0 if (t_1 <= -4e-106) tmp = t_2; elseif (t_1 <= 5e-108) tmp = t_0; elseif (t_1 <= 5e+101) tmp = t_2; else tmp = t_0; end return tmp end
code[g_, a_] := Block[{t$95$0 = N[Exp[N[(N[(N[Log[g], $MachinePrecision] - N[Log[N[(a + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Power[N[(g / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$2 = N[Power[N[(g / N[(a + a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, If[LessEqual[t$95$1, -4e-106], t$95$2, If[LessEqual[t$95$1, 5e-108], t$95$0, If[LessEqual[t$95$1, 5e+101], t$95$2, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{\left(\log g - \log \left(a + a\right)\right) \cdot 0.3333333333333333}\\
t_1 := \sqrt[3]{\frac{g}{2 \cdot a}}\\
t_2 := \sqrt[3]{\frac{g}{a + a}}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{-106}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-108}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+101}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < -3.99999999999999976e-106 or 5e-108 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < 4.99999999999999989e101Initial program 91.5%
lift-*.f64N/A
count-2-revN/A
lower-+.f6491.5
Applied rewrites91.5%
if -3.99999999999999976e-106 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) < 5e-108 or 4.99999999999999989e101 < (cbrt.f64 (/.f64 g (*.f64 #s(literal 2 binary64) a))) Initial program 5.7%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
pow1/3N/A
pow-to-expN/A
lower-exp.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lift-/.f64N/A
count-2-revN/A
lower-+.f644.9
Applied rewrites4.9%
lift-log.f64N/A
lift-+.f64N/A
lift-/.f64N/A
log-divN/A
lower--.f64N/A
lower-log.f64N/A
lower-log.f64N/A
lift-+.f6430.1
Applied rewrites30.1%
(FPCore (g a) :precision binary64 (cbrt (/ g (+ a a))))
double code(double g, double a) {
return cbrt((g / (a + a)));
}
public static double code(double g, double a) {
return Math.cbrt((g / (a + a)));
}
function code(g, a) return cbrt(Float64(g / Float64(a + a))) end
code[g_, a_] := N[Power[N[(g / N[(a + a), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]
\begin{array}{l}
\\
\sqrt[3]{\frac{g}{a + a}}
\end{array}
Initial program 76.1%
lift-*.f64N/A
count-2-revN/A
lower-+.f6476.1
Applied rewrites76.1%
(FPCore (g a) :precision binary64 (cbrt (/ g 2.0)))
double code(double g, double a) {
return cbrt((g / 2.0));
}
public static double code(double g, double a) {
return Math.cbrt((g / 2.0));
}
function code(g, a) return cbrt(Float64(g / 2.0)) end
code[g_, a_] := N[Power[N[(g / 2.0), $MachinePrecision], 1/3], $MachinePrecision]
\begin{array}{l}
\\
\sqrt[3]{\frac{g}{2}}
\end{array}
Initial program 76.1%
lift-cbrt.f64N/A
lift-*.f64N/A
lift-/.f64N/A
cbrt-divN/A
lower-/.f64N/A
lower-cbrt.f64N/A
lower-cbrt.f64N/A
count-2-revN/A
lower-+.f6498.7
Applied rewrites98.7%
lift-+.f64N/A
lift-cbrt.f64N/A
count-2-revN/A
*-commutativeN/A
cbrt-unprodN/A
lower-*.f64N/A
lift-cbrt.f64N/A
lower-cbrt.f6498.2
Applied rewrites98.2%
lift-cbrt.f64N/A
pow1/3N/A
lower-pow.f6498.7
Applied rewrites98.7%
lift-/.f64N/A
lift-cbrt.f64N/A
lift-*.f64N/A
lift-cbrt.f64N/A
lift-pow.f64N/A
pow1/3N/A
cbrt-unprodN/A
*-commutativeN/A
count-2-revN/A
cbrt-undivN/A
rem-exp-logN/A
diff-logN/A
lower-cbrt.f64N/A
diff-logN/A
rem-exp-logN/A
flip-+N/A
+-inversesN/A
metadata-evalN/A
metadata-evalN/A
metadata-evalN/A
+-inversesN/A
metadata-evalN/A
flip-+N/A
metadata-evalN/A
lower-/.f644.8
Applied rewrites4.8%
herbie shell --seed 2025120
(FPCore (g a)
:name "2-ancestry mixing, zero discriminant"
:precision binary64
(cbrt (/ g (* 2.0 a))))