
(FPCore (a b c) :precision binary64 (/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))
double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = (-b + sqrt(((b * b) - ((3.0d0 * a) * c)))) / (3.0d0 * a)
end function
public static double code(double a, double b, double c) {
return (-b + Math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a)
function code(a, b, c) return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(3.0 * a) * c)))) / Float64(3.0 * a)) end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a); end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(3.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b c) :precision binary64 (/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))
double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = (-b + sqrt(((b * b) - ((3.0d0 * a) * c)))) / (3.0d0 * a)
end function
public static double code(double a, double b, double c) {
return (-b + Math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a)
function code(a, b, c) return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(3.0 * a) * c)))) / Float64(3.0 * a)) end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a); end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(3.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\end{array}
(FPCore (a b c)
:precision binary64
(if (<= b -3.05e+119)
(* b (/ -0.6666666666666666 a))
(if (<= b 6.5e-108)
(/ (- (sqrt (fma c (* a -3.0) (pow b 2.0))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -3.05e+119) {
tmp = b * (-0.6666666666666666 / a);
} else if (b <= 6.5e-108) {
tmp = (sqrt(fma(c, (a * -3.0), pow(b, 2.0))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
function code(a, b, c) tmp = 0.0 if (b <= -3.05e+119) tmp = Float64(b * Float64(-0.6666666666666666 / a)); elseif (b <= 6.5e-108) tmp = Float64(Float64(sqrt(fma(c, Float64(a * -3.0), (b ^ 2.0))) - b) / Float64(a * 3.0)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
code[a_, b_, c_] := If[LessEqual[b, -3.05e+119], N[(b * N[(-0.6666666666666666 / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-108], N[(N[(N[Sqrt[N[(c * N[(a * -3.0), $MachinePrecision] + N[Power[b, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 3.0), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.05 \cdot 10^{+119}:\\
\;\;\;\;b \cdot \frac{-0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-108}:\\
\;\;\;\;\frac{\sqrt{\mathsf{fma}\left(c, a \cdot -3, {b}^{2}\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -3.05e119Initial program 38.0%
Taylor expanded in b around 0 38.0%
cancel-sign-sub-inv38.0%
metadata-eval38.0%
associate-*r*38.0%
*-commutative38.0%
*-commutative38.0%
+-commutative38.0%
fma-define38.1%
Simplified38.1%
Taylor expanded in b around -inf 90.3%
*-commutative90.3%
associate-*l/90.1%
associate-/l*90.3%
Simplified90.3%
if -3.05e119 < b < 6.5000000000000002e-108Initial program 78.9%
Taylor expanded in b around 0 78.8%
cancel-sign-sub-inv78.8%
metadata-eval78.8%
associate-*r*78.9%
*-commutative78.9%
*-commutative78.9%
+-commutative78.9%
fma-define78.9%
Simplified78.9%
if 6.5000000000000002e-108 < b Initial program 16.8%
Taylor expanded in b around inf 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification85.3%
(FPCore (a b c)
:precision binary64
(if (<= b -2.8e+119)
(* b (/ -0.6666666666666666 a))
(if (<= b 6.2e-108)
(/ (- (sqrt (- (* b b) (* c (* a 3.0)))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -2.8e+119) {
tmp = b * (-0.6666666666666666 / a);
} else if (b <= 6.2e-108) {
tmp = (sqrt(((b * b) - (c * (a * 3.0)))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.8d+119)) then
tmp = b * ((-0.6666666666666666d0) / a)
else if (b <= 6.2d-108) then
tmp = (sqrt(((b * b) - (c * (a * 3.0d0)))) - b) / (a * 3.0d0)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= -2.8e+119) {
tmp = b * (-0.6666666666666666 / a);
} else if (b <= 6.2e-108) {
tmp = (Math.sqrt(((b * b) - (c * (a * 3.0)))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -2.8e+119: tmp = b * (-0.6666666666666666 / a) elif b <= 6.2e-108: tmp = (math.sqrt(((b * b) - (c * (a * 3.0)))) - b) / (a * 3.0) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -2.8e+119) tmp = Float64(b * Float64(-0.6666666666666666 / a)); elseif (b <= 6.2e-108) tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(a * 3.0)))) - b) / Float64(a * 3.0)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -2.8e+119) tmp = b * (-0.6666666666666666 / a); elseif (b <= 6.2e-108) tmp = (sqrt(((b * b) - (c * (a * 3.0)))) - b) / (a * 3.0); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -2.8e+119], N[(b * N[(-0.6666666666666666 / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e-108], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(a * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 3.0), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+119}:\\
\;\;\;\;b \cdot \frac{-0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-108}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -2.80000000000000013e119Initial program 38.0%
Taylor expanded in b around 0 38.0%
cancel-sign-sub-inv38.0%
metadata-eval38.0%
associate-*r*38.0%
*-commutative38.0%
*-commutative38.0%
+-commutative38.0%
fma-define38.1%
Simplified38.1%
Taylor expanded in b around -inf 90.3%
*-commutative90.3%
associate-*l/90.1%
associate-/l*90.3%
Simplified90.3%
if -2.80000000000000013e119 < b < 6.20000000000000028e-108Initial program 78.9%
if 6.20000000000000028e-108 < b Initial program 16.8%
Taylor expanded in b around inf 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification85.3%
(FPCore (a b c)
:precision binary64
(if (<= b -1.35e-155)
(/ b (* a -1.5))
(if (<= b 5.5e-108)
(* 0.3333333333333333 (/ (+ b (sqrt (* a (* c -3.0)))) a))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -1.35e-155) {
tmp = b / (a * -1.5);
} else if (b <= 5.5e-108) {
tmp = 0.3333333333333333 * ((b + sqrt((a * (c * -3.0)))) / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.35d-155)) then
tmp = b / (a * (-1.5d0))
else if (b <= 5.5d-108) then
tmp = 0.3333333333333333d0 * ((b + sqrt((a * (c * (-3.0d0))))) / a)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= -1.35e-155) {
tmp = b / (a * -1.5);
} else if (b <= 5.5e-108) {
tmp = 0.3333333333333333 * ((b + Math.sqrt((a * (c * -3.0)))) / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -1.35e-155: tmp = b / (a * -1.5) elif b <= 5.5e-108: tmp = 0.3333333333333333 * ((b + math.sqrt((a * (c * -3.0)))) / a) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -1.35e-155) tmp = Float64(b / Float64(a * -1.5)); elseif (b <= 5.5e-108) tmp = Float64(0.3333333333333333 * Float64(Float64(b + sqrt(Float64(a * Float64(c * -3.0)))) / a)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -1.35e-155) tmp = b / (a * -1.5); elseif (b <= 5.5e-108) tmp = 0.3333333333333333 * ((b + sqrt((a * (c * -3.0)))) / a); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -1.35e-155], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-108], N[(0.3333333333333333 * N[(N[(b + N[Sqrt[N[(a * N[(c * -3.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.35 \cdot 10^{-155}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-108}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{b + \sqrt{a \cdot \left(c \cdot -3\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -1.34999999999999991e-155Initial program 69.3%
Taylor expanded in b around 0 69.3%
cancel-sign-sub-inv69.3%
metadata-eval69.3%
associate-*r*69.3%
*-commutative69.3%
*-commutative69.3%
+-commutative69.3%
fma-define69.4%
Simplified69.4%
Taylor expanded in b around -inf 77.8%
*-commutative77.8%
associate-*l/77.8%
associate-/l*77.8%
Simplified77.8%
clear-num77.7%
un-div-inv77.9%
div-inv77.9%
metadata-eval77.9%
Applied egg-rr77.9%
if -1.34999999999999991e-155 < b < 5.50000000000000031e-108Initial program 65.8%
Taylor expanded in b around 0 65.6%
cancel-sign-sub-inv65.6%
metadata-eval65.6%
associate-*r*65.8%
*-commutative65.8%
*-commutative65.8%
+-commutative65.8%
fma-define65.8%
Simplified65.8%
Taylor expanded in c around inf 65.6%
*-commutative65.6%
rem-square-sqrt0.0%
unpow20.0%
associate-*r*0.0%
*-commutative0.0%
unpow20.0%
rem-square-sqrt65.6%
*-commutative65.6%
Simplified65.6%
div-inv65.4%
add-sqr-sqrt24.2%
sqrt-unprod64.9%
sqr-neg64.9%
sqrt-unprod41.6%
add-sqr-sqrt65.0%
*-commutative65.0%
Applied egg-rr65.0%
associate-*r/65.2%
*-commutative65.2%
*-commutative65.2%
times-frac65.1%
metadata-eval65.1%
Simplified65.1%
if 5.50000000000000031e-108 < b Initial program 16.8%
Taylor expanded in b around inf 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification80.1%
(FPCore (a b c)
:precision binary64
(if (<= b -1.42e-99)
(/ b (* a -1.5))
(if (<= b 1.2e-109)
(/ (- (sqrt (* a (* c -3.0))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -1.42e-99) {
tmp = b / (a * -1.5);
} else if (b <= 1.2e-109) {
tmp = (sqrt((a * (c * -3.0))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.42d-99)) then
tmp = b / (a * (-1.5d0))
else if (b <= 1.2d-109) then
tmp = (sqrt((a * (c * (-3.0d0)))) - b) / (a * 3.0d0)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= -1.42e-99) {
tmp = b / (a * -1.5);
} else if (b <= 1.2e-109) {
tmp = (Math.sqrt((a * (c * -3.0))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -1.42e-99: tmp = b / (a * -1.5) elif b <= 1.2e-109: tmp = (math.sqrt((a * (c * -3.0))) - b) / (a * 3.0) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -1.42e-99) tmp = Float64(b / Float64(a * -1.5)); elseif (b <= 1.2e-109) tmp = Float64(Float64(sqrt(Float64(a * Float64(c * -3.0))) - b) / Float64(a * 3.0)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -1.42e-99) tmp = b / (a * -1.5); elseif (b <= 1.2e-109) tmp = (sqrt((a * (c * -3.0))) - b) / (a * 3.0); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -1.42e-99], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-109], N[(N[(N[Sqrt[N[(a * N[(c * -3.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 3.0), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.42 \cdot 10^{-99}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-109}:\\
\;\;\;\;\frac{\sqrt{a \cdot \left(c \cdot -3\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -1.42e-99Initial program 68.8%
Taylor expanded in b around 0 68.8%
cancel-sign-sub-inv68.8%
metadata-eval68.8%
associate-*r*68.8%
*-commutative68.8%
*-commutative68.8%
+-commutative68.8%
fma-define68.9%
Simplified68.9%
Taylor expanded in b around -inf 81.3%
*-commutative81.3%
associate-*l/81.3%
associate-/l*81.4%
Simplified81.4%
clear-num81.2%
un-div-inv81.4%
div-inv81.5%
metadata-eval81.5%
Applied egg-rr81.5%
if -1.42e-99 < b < 1.19999999999999994e-109Initial program 66.9%
prod-diff66.2%
distribute-rgt-neg-in66.2%
*-commutative66.2%
distribute-rgt-neg-in66.2%
metadata-eval66.2%
*-commutative66.2%
fma-undefine66.2%
distribute-lft-neg-in66.2%
distribute-rgt-neg-in66.2%
*-commutative66.2%
distribute-rgt-neg-in66.2%
metadata-eval66.2%
*-commutative66.2%
associate-*l*66.1%
Applied egg-rr66.1%
Taylor expanded in b around 0 62.4%
distribute-rgt-out63.0%
metadata-eval63.0%
associate-*r*63.0%
mul-1-neg63.0%
unsub-neg63.0%
Simplified63.0%
if 1.19999999999999994e-109 < b Initial program 16.8%
Taylor expanded in b around inf 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification80.4%
(FPCore (a b c)
:precision binary64
(if (<= b -4.4e-100)
(/ b (* a -1.5))
(if (<= b 1.25e-109)
(/ (- (sqrt (* c (* a -3.0))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -4.4e-100) {
tmp = b / (a * -1.5);
} else if (b <= 1.25e-109) {
tmp = (sqrt((c * (a * -3.0))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-4.4d-100)) then
tmp = b / (a * (-1.5d0))
else if (b <= 1.25d-109) then
tmp = (sqrt((c * (a * (-3.0d0)))) - b) / (a * 3.0d0)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= -4.4e-100) {
tmp = b / (a * -1.5);
} else if (b <= 1.25e-109) {
tmp = (Math.sqrt((c * (a * -3.0))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -4.4e-100: tmp = b / (a * -1.5) elif b <= 1.25e-109: tmp = (math.sqrt((c * (a * -3.0))) - b) / (a * 3.0) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -4.4e-100) tmp = Float64(b / Float64(a * -1.5)); elseif (b <= 1.25e-109) tmp = Float64(Float64(sqrt(Float64(c * Float64(a * -3.0))) - b) / Float64(a * 3.0)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -4.4e-100) tmp = b / (a * -1.5); elseif (b <= 1.25e-109) tmp = (sqrt((c * (a * -3.0))) - b) / (a * 3.0); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -4.4e-100], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-109], N[(N[(N[Sqrt[N[(c * N[(a * -3.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 3.0), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{-100}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-109}:\\
\;\;\;\;\frac{\sqrt{c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -4.39999999999999978e-100Initial program 68.8%
Taylor expanded in b around 0 68.8%
cancel-sign-sub-inv68.8%
metadata-eval68.8%
associate-*r*68.8%
*-commutative68.8%
*-commutative68.8%
+-commutative68.8%
fma-define68.9%
Simplified68.9%
Taylor expanded in b around -inf 81.3%
*-commutative81.3%
associate-*l/81.3%
associate-/l*81.4%
Simplified81.4%
clear-num81.2%
un-div-inv81.4%
div-inv81.5%
metadata-eval81.5%
Applied egg-rr81.5%
if -4.39999999999999978e-100 < b < 1.25000000000000005e-109Initial program 66.9%
Taylor expanded in b around 0 63.0%
associate-*r*63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
if 1.25000000000000005e-109 < b Initial program 16.8%
Taylor expanded in b around inf 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification80.4%
(FPCore (a b c)
:precision binary64
(if (<= b -1.25e-155)
(/ b (* a -1.5))
(if (<= b 6.8e-108)
(* (sqrt (* a (* c -3.0))) (/ 0.3333333333333333 a))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -1.25e-155) {
tmp = b / (a * -1.5);
} else if (b <= 6.8e-108) {
tmp = sqrt((a * (c * -3.0))) * (0.3333333333333333 / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.25d-155)) then
tmp = b / (a * (-1.5d0))
else if (b <= 6.8d-108) then
tmp = sqrt((a * (c * (-3.0d0)))) * (0.3333333333333333d0 / a)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= -1.25e-155) {
tmp = b / (a * -1.5);
} else if (b <= 6.8e-108) {
tmp = Math.sqrt((a * (c * -3.0))) * (0.3333333333333333 / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -1.25e-155: tmp = b / (a * -1.5) elif b <= 6.8e-108: tmp = math.sqrt((a * (c * -3.0))) * (0.3333333333333333 / a) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -1.25e-155) tmp = Float64(b / Float64(a * -1.5)); elseif (b <= 6.8e-108) tmp = Float64(sqrt(Float64(a * Float64(c * -3.0))) * Float64(0.3333333333333333 / a)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -1.25e-155) tmp = b / (a * -1.5); elseif (b <= 6.8e-108) tmp = sqrt((a * (c * -3.0))) * (0.3333333333333333 / a); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -1.25e-155], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-108], N[(N[Sqrt[N[(a * N[(c * -3.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(0.3333333333333333 / a), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{-155}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-108}:\\
\;\;\;\;\sqrt{a \cdot \left(c \cdot -3\right)} \cdot \frac{0.3333333333333333}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -1.25e-155Initial program 69.3%
Taylor expanded in b around 0 69.3%
cancel-sign-sub-inv69.3%
metadata-eval69.3%
associate-*r*69.3%
*-commutative69.3%
*-commutative69.3%
+-commutative69.3%
fma-define69.4%
Simplified69.4%
Taylor expanded in b around -inf 77.8%
*-commutative77.8%
associate-*l/77.8%
associate-/l*77.8%
Simplified77.8%
clear-num77.7%
un-div-inv77.9%
div-inv77.9%
metadata-eval77.9%
Applied egg-rr77.9%
if -1.25e-155 < b < 6.80000000000000004e-108Initial program 65.8%
prod-diff65.1%
distribute-rgt-neg-in65.1%
*-commutative65.1%
distribute-rgt-neg-in65.1%
metadata-eval65.1%
*-commutative65.1%
fma-undefine65.1%
distribute-lft-neg-in65.1%
distribute-rgt-neg-in65.1%
*-commutative65.1%
distribute-rgt-neg-in65.1%
metadata-eval65.1%
*-commutative65.1%
associate-*l*65.0%
Applied egg-rr65.0%
Taylor expanded in b around 0 64.2%
associate-*r*64.1%
associate-*r/64.3%
metadata-eval64.3%
distribute-rgt-out65.0%
metadata-eval65.0%
associate-*r*65.0%
Simplified65.0%
if 6.80000000000000004e-108 < b Initial program 16.8%
Taylor expanded in b around inf 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification80.1%
(FPCore (a b c)
:precision binary64
(if (<= b -3.7e-110)
(/ b (* a -1.5))
(if (<= b 9.5e-133)
(sqrt (* c (/ -0.3333333333333333 a)))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -3.7e-110) {
tmp = b / (a * -1.5);
} else if (b <= 9.5e-133) {
tmp = sqrt((c * (-0.3333333333333333 / a)));
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.7d-110)) then
tmp = b / (a * (-1.5d0))
else if (b <= 9.5d-133) then
tmp = sqrt((c * ((-0.3333333333333333d0) / a)))
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= -3.7e-110) {
tmp = b / (a * -1.5);
} else if (b <= 9.5e-133) {
tmp = Math.sqrt((c * (-0.3333333333333333 / a)));
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -3.7e-110: tmp = b / (a * -1.5) elif b <= 9.5e-133: tmp = math.sqrt((c * (-0.3333333333333333 / a))) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -3.7e-110) tmp = Float64(b / Float64(a * -1.5)); elseif (b <= 9.5e-133) tmp = sqrt(Float64(c * Float64(-0.3333333333333333 / a))); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -3.7e-110) tmp = b / (a * -1.5); elseif (b <= 9.5e-133) tmp = sqrt((c * (-0.3333333333333333 / a))); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -3.7e-110], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-133], N[Sqrt[N[(c * N[(-0.3333333333333333 / a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.7 \cdot 10^{-110}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-133}:\\
\;\;\;\;\sqrt{c \cdot \frac{-0.3333333333333333}{a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -3.70000000000000016e-110Initial program 68.8%
Taylor expanded in b around 0 68.8%
cancel-sign-sub-inv68.8%
metadata-eval68.8%
associate-*r*68.8%
*-commutative68.8%
*-commutative68.8%
+-commutative68.8%
fma-define68.9%
Simplified68.9%
Taylor expanded in b around -inf 81.3%
*-commutative81.3%
associate-*l/81.3%
associate-/l*81.4%
Simplified81.4%
clear-num81.2%
un-div-inv81.4%
div-inv81.5%
metadata-eval81.5%
Applied egg-rr81.5%
if -3.70000000000000016e-110 < b < 9.4999999999999992e-133Initial program 66.8%
prod-diff66.0%
distribute-rgt-neg-in66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
metadata-eval66.0%
*-commutative66.0%
fma-undefine66.0%
distribute-lft-neg-in66.0%
distribute-rgt-neg-in66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
metadata-eval66.0%
*-commutative66.0%
associate-*l*65.9%
Applied egg-rr65.9%
Taylor expanded in a around inf 38.0%
*-commutative38.0%
distribute-rgt-out38.0%
metadata-eval38.0%
Simplified38.0%
add-sqr-sqrt37.9%
sqrt-unprod38.0%
swap-sqr38.0%
add-sqr-sqrt38.2%
associate-/l*38.1%
metadata-eval38.1%
Applied egg-rr38.1%
associate-*l*38.1%
associate-*l/38.2%
metadata-eval38.2%
Simplified38.2%
if 9.4999999999999992e-133 < b Initial program 19.5%
Taylor expanded in b around inf 87.2%
*-commutative87.2%
Simplified87.2%
Final simplification74.1%
(FPCore (a b c) :precision binary64 (if (<= b 2.4e-308) (* b (/ -0.6666666666666666 a)) (* c (/ -0.5 b))))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = b * (-0.6666666666666666 / a);
} else {
tmp = c * (-0.5 / b);
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= 2.4d-308) then
tmp = b * ((-0.6666666666666666d0) / a)
else
tmp = c * ((-0.5d0) / b)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = b * (-0.6666666666666666 / a);
} else {
tmp = c * (-0.5 / b);
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 2.4e-308: tmp = b * (-0.6666666666666666 / a) else: tmp = c * (-0.5 / b) return tmp
function code(a, b, c) tmp = 0.0 if (b <= 2.4e-308) tmp = Float64(b * Float64(-0.6666666666666666 / a)); else tmp = Float64(c * Float64(-0.5 / b)); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= 2.4e-308) tmp = b * (-0.6666666666666666 / a); else tmp = c * (-0.5 / b); end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 2.4e-308], N[(b * N[(-0.6666666666666666 / a), $MachinePrecision]), $MachinePrecision], N[(c * N[(-0.5 / b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{-308}:\\
\;\;\;\;b \cdot \frac{-0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;c \cdot \frac{-0.5}{b}\\
\end{array}
\end{array}
if b < 2.40000000000000008e-308Initial program 67.6%
Taylor expanded in b around 0 67.6%
cancel-sign-sub-inv67.6%
metadata-eval67.6%
associate-*r*67.6%
*-commutative67.6%
*-commutative67.6%
+-commutative67.6%
fma-define67.6%
Simplified67.6%
Taylor expanded in b around -inf 63.7%
*-commutative63.7%
associate-*l/63.7%
associate-/l*63.7%
Simplified63.7%
if 2.40000000000000008e-308 < b Initial program 29.0%
Taylor expanded in c around 0 66.0%
associate-*r/66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in c around 0 72.3%
associate-*r/72.3%
associate-*l/72.1%
*-commutative72.1%
Simplified72.1%
Final simplification68.3%
(FPCore (a b c) :precision binary64 (if (<= b 2.4e-308) (* b (/ -0.6666666666666666 a)) (* (/ c b) -0.5)))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = b * (-0.6666666666666666 / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= 2.4d-308) then
tmp = b * ((-0.6666666666666666d0) / a)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = b * (-0.6666666666666666 / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 2.4e-308: tmp = b * (-0.6666666666666666 / a) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= 2.4e-308) tmp = Float64(b * Float64(-0.6666666666666666 / a)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= 2.4e-308) tmp = b * (-0.6666666666666666 / a); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 2.4e-308], N[(b * N[(-0.6666666666666666 / a), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{-308}:\\
\;\;\;\;b \cdot \frac{-0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < 2.40000000000000008e-308Initial program 67.6%
Taylor expanded in b around 0 67.6%
cancel-sign-sub-inv67.6%
metadata-eval67.6%
associate-*r*67.6%
*-commutative67.6%
*-commutative67.6%
+-commutative67.6%
fma-define67.6%
Simplified67.6%
Taylor expanded in b around -inf 63.7%
*-commutative63.7%
associate-*l/63.7%
associate-/l*63.7%
Simplified63.7%
if 2.40000000000000008e-308 < b Initial program 29.0%
Taylor expanded in b around inf 72.3%
*-commutative72.3%
Simplified72.3%
Final simplification68.3%
(FPCore (a b c) :precision binary64 (if (<= b 2.4e-308) (/ -0.6666666666666666 (/ a b)) (* (/ c b) -0.5)))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = -0.6666666666666666 / (a / b);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= 2.4d-308) then
tmp = (-0.6666666666666666d0) / (a / b)
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = -0.6666666666666666 / (a / b);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 2.4e-308: tmp = -0.6666666666666666 / (a / b) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= 2.4e-308) tmp = Float64(-0.6666666666666666 / Float64(a / b)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= 2.4e-308) tmp = -0.6666666666666666 / (a / b); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 2.4e-308], N[(-0.6666666666666666 / N[(a / b), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{-308}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < 2.40000000000000008e-308Initial program 67.6%
Taylor expanded in b around 0 67.6%
cancel-sign-sub-inv67.6%
metadata-eval67.6%
associate-*r*67.6%
*-commutative67.6%
*-commutative67.6%
+-commutative67.6%
fma-define67.6%
Simplified67.6%
Taylor expanded in b around -inf 63.7%
*-commutative63.7%
associate-*l/63.7%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in b around 0 63.7%
associate-*r/63.7%
associate-*l/63.7%
metadata-eval63.7%
associate-/r*63.7%
*-commutative63.7%
associate-/r/63.8%
associate-*l/63.7%
*-commutative63.7%
associate-/r*63.8%
metadata-eval63.8%
Simplified63.8%
if 2.40000000000000008e-308 < b Initial program 29.0%
Taylor expanded in b around inf 72.3%
*-commutative72.3%
Simplified72.3%
Final simplification68.4%
(FPCore (a b c) :precision binary64 (if (<= b 2.4e-308) (/ b (* a -1.5)) (* (/ c b) -0.5)))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = b / (a * -1.5);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= 2.4d-308) then
tmp = b / (a * (-1.5d0))
else
tmp = (c / b) * (-0.5d0)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double tmp;
if (b <= 2.4e-308) {
tmp = b / (a * -1.5);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 2.4e-308: tmp = b / (a * -1.5) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= 2.4e-308) tmp = Float64(b / Float64(a * -1.5)); else tmp = Float64(Float64(c / b) * -0.5); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= 2.4e-308) tmp = b / (a * -1.5); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 2.4e-308], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.4 \cdot 10^{-308}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < 2.40000000000000008e-308Initial program 67.6%
Taylor expanded in b around 0 67.6%
cancel-sign-sub-inv67.6%
metadata-eval67.6%
associate-*r*67.6%
*-commutative67.6%
*-commutative67.6%
+-commutative67.6%
fma-define67.6%
Simplified67.6%
Taylor expanded in b around -inf 63.7%
*-commutative63.7%
associate-*l/63.7%
associate-/l*63.7%
Simplified63.7%
clear-num63.6%
un-div-inv63.8%
div-inv63.8%
metadata-eval63.8%
Applied egg-rr63.8%
if 2.40000000000000008e-308 < b Initial program 29.0%
Taylor expanded in b around inf 72.3%
*-commutative72.3%
Simplified72.3%
Final simplification68.4%
(FPCore (a b c) :precision binary64 (* 1.3333333333333333 (/ b a)))
double code(double a, double b, double c) {
return 1.3333333333333333 * (b / a);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.3333333333333333d0 * (b / a)
end function
public static double code(double a, double b, double c) {
return 1.3333333333333333 * (b / a);
}
def code(a, b, c): return 1.3333333333333333 * (b / a)
function code(a, b, c) return Float64(1.3333333333333333 * Float64(b / a)) end
function tmp = code(a, b, c) tmp = 1.3333333333333333 * (b / a); end
code[a_, b_, c_] := N[(1.3333333333333333 * N[(b / a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1.3333333333333333 \cdot \frac{b}{a}
\end{array}
Initial program 46.8%
Simplified46.7%
*-un-lft-identity46.7%
*-un-lft-identity46.7%
prod-diff46.7%
Applied egg-rr23.3%
associate-+l+23.3%
fma-undefine23.3%
*-rgt-identity23.3%
Simplified23.3%
Taylor expanded in b around inf 2.4%
Final simplification2.4%
(FPCore (a b c) :precision binary64 (* b (/ -0.6666666666666666 a)))
double code(double a, double b, double c) {
return b * (-0.6666666666666666 / a);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = b * ((-0.6666666666666666d0) / a)
end function
public static double code(double a, double b, double c) {
return b * (-0.6666666666666666 / a);
}
def code(a, b, c): return b * (-0.6666666666666666 / a)
function code(a, b, c) return Float64(b * Float64(-0.6666666666666666 / a)) end
function tmp = code(a, b, c) tmp = b * (-0.6666666666666666 / a); end
code[a_, b_, c_] := N[(b * N[(-0.6666666666666666 / a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \frac{-0.6666666666666666}{a}
\end{array}
Initial program 46.8%
Taylor expanded in b around 0 46.8%
cancel-sign-sub-inv46.8%
metadata-eval46.8%
associate-*r*46.8%
*-commutative46.8%
*-commutative46.8%
+-commutative46.8%
fma-define46.8%
Simplified46.8%
Taylor expanded in b around -inf 30.8%
*-commutative30.8%
associate-*l/30.8%
associate-/l*30.9%
Simplified30.9%
Final simplification30.9%
herbie shell --seed 2024076
(FPCore (a b c)
:name "Cubic critical"
:precision binary64
(/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))