
(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 -2.9e+129)
(/ -0.6666666666666666 (/ a b))
(if (<= b 3.3e-104)
(/ (- (sqrt (- (* b b) (* (* a 3.0) c))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -2.9e+129) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 3.3e-104) {
tmp = (sqrt(((b * b) - ((a * 3.0) * c))) - 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.9d+129)) then
tmp = (-0.6666666666666666d0) / (a / b)
else if (b <= 3.3d-104) then
tmp = (sqrt(((b * b) - ((a * 3.0d0) * c))) - 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.9e+129) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 3.3e-104) {
tmp = (Math.sqrt(((b * b) - ((a * 3.0) * c))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -2.9e+129: tmp = -0.6666666666666666 / (a / b) elif b <= 3.3e-104: tmp = (math.sqrt(((b * b) - ((a * 3.0) * c))) - b) / (a * 3.0) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -2.9e+129) tmp = Float64(-0.6666666666666666 / Float64(a / b)); elseif (b <= 3.3e-104) tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(Float64(a * 3.0) * c))) - 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.9e+129) tmp = -0.6666666666666666 / (a / b); elseif (b <= 3.3e-104) tmp = (sqrt(((b * b) - ((a * 3.0) * c))) - b) / (a * 3.0); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -2.9e+129], N[(-0.6666666666666666 / N[(a / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.3e-104], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(a * 3.0), $MachinePrecision] * c), $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.9 \cdot 10^{+129}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{-104}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -2.90000000000000003e129Initial program 50.2%
sqr-neg50.2%
sqr-neg50.2%
associate-*l*50.2%
Simplified50.2%
Taylor expanded in b around -inf 93.1%
*-commutative93.1%
Simplified93.1%
*-commutative93.1%
clear-num93.1%
un-div-inv93.2%
Applied egg-rr93.2%
if -2.90000000000000003e129 < b < 3.30000000000000002e-104Initial program 83.5%
if 3.30000000000000002e-104 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification87.7%
(FPCore (a b c)
:precision binary64
(if (<= b -2.9e+128)
(/ -0.6666666666666666 (/ a b))
(if (<= b 4.4e-108)
(/ (- (sqrt (- (* b b) (* 3.0 (* a c)))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -2.9e+128) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 4.4e-108) {
tmp = (sqrt(((b * b) - (3.0 * (a * c)))) - 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.9d+128)) then
tmp = (-0.6666666666666666d0) / (a / b)
else if (b <= 4.4d-108) then
tmp = (sqrt(((b * b) - (3.0d0 * (a * c)))) - 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.9e+128) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 4.4e-108) {
tmp = (Math.sqrt(((b * b) - (3.0 * (a * c)))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -2.9e+128: tmp = -0.6666666666666666 / (a / b) elif b <= 4.4e-108: tmp = (math.sqrt(((b * b) - (3.0 * (a * c)))) - b) / (a * 3.0) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -2.9e+128) tmp = Float64(-0.6666666666666666 / Float64(a / b)); elseif (b <= 4.4e-108) tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(3.0 * Float64(a * c)))) - 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.9e+128) tmp = -0.6666666666666666 / (a / b); elseif (b <= 4.4e-108) tmp = (sqrt(((b * b) - (3.0 * (a * c)))) - b) / (a * 3.0); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -2.9e+128], N[(-0.6666666666666666 / N[(a / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-108], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(3.0 * N[(a * c), $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.9 \cdot 10^{+128}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-108}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -2.9e128Initial program 50.2%
sqr-neg50.2%
sqr-neg50.2%
associate-*l*50.2%
Simplified50.2%
Taylor expanded in b around -inf 93.1%
*-commutative93.1%
Simplified93.1%
*-commutative93.1%
clear-num93.1%
un-div-inv93.2%
Applied egg-rr93.2%
if -2.9e128 < b < 4.4000000000000002e-108Initial program 83.5%
sqr-neg83.5%
sqr-neg83.5%
associate-*l*83.4%
Simplified83.4%
if 4.4000000000000002e-108 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification87.7%
(FPCore (a b c)
:precision binary64
(if (<= b -7.2e-58)
(* b (- (* 0.6666666666666666 (/ -1.0 a)) (* -0.5 (/ c (pow b 2.0)))))
(if (<= b 1.95e-103)
(/ (- (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 <= -7.2e-58) {
tmp = b * ((0.6666666666666666 * (-1.0 / a)) - (-0.5 * (c / pow(b, 2.0))));
} else if (b <= 1.95e-103) {
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 <= (-7.2d-58)) then
tmp = b * ((0.6666666666666666d0 * ((-1.0d0) / a)) - ((-0.5d0) * (c / (b ** 2.0d0))))
else if (b <= 1.95d-103) 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 <= -7.2e-58) {
tmp = b * ((0.6666666666666666 * (-1.0 / a)) - (-0.5 * (c / Math.pow(b, 2.0))));
} else if (b <= 1.95e-103) {
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 <= -7.2e-58: tmp = b * ((0.6666666666666666 * (-1.0 / a)) - (-0.5 * (c / math.pow(b, 2.0)))) elif b <= 1.95e-103: 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 <= -7.2e-58) tmp = Float64(b * Float64(Float64(0.6666666666666666 * Float64(-1.0 / a)) - Float64(-0.5 * Float64(c / (b ^ 2.0))))); elseif (b <= 1.95e-103) 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 <= -7.2e-58) tmp = b * ((0.6666666666666666 * (-1.0 / a)) - (-0.5 * (c / (b ^ 2.0)))); elseif (b <= 1.95e-103) 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, -7.2e-58], N[(b * N[(N[(0.6666666666666666 * N[(-1.0 / a), $MachinePrecision]), $MachinePrecision] - N[(-0.5 * N[(c / N[Power[b, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-103], 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 -7.2 \cdot 10^{-58}:\\
\;\;\;\;b \cdot \left(0.6666666666666666 \cdot \frac{-1}{a} - -0.5 \cdot \frac{c}{{b}^{2}}\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-103}:\\
\;\;\;\;\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 < -7.20000000000000019e-58Initial program 71.6%
sqr-neg71.6%
sqr-neg71.6%
associate-*l*71.6%
Simplified71.6%
Taylor expanded in b around -inf 90.5%
if -7.20000000000000019e-58 < b < 1.9500000000000001e-103Initial program 76.4%
sqr-neg76.4%
sqr-neg76.4%
associate-*l*76.3%
Simplified76.3%
Taylor expanded in b around 0 72.4%
*-commutative72.4%
associate-*l*72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
if 1.9500000000000001e-103 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification85.6%
(FPCore (a b c)
:precision binary64
(if (<= b -9.2e-58)
(/ -0.6666666666666666 (/ a b))
(if (<= b 2.45e-105)
(/ (- (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 <= -9.2e-58) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 2.45e-105) {
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 <= (-9.2d-58)) then
tmp = (-0.6666666666666666d0) / (a / b)
else if (b <= 2.45d-105) 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 <= -9.2e-58) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 2.45e-105) {
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 <= -9.2e-58: tmp = -0.6666666666666666 / (a / b) elif b <= 2.45e-105: 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 <= -9.2e-58) tmp = Float64(-0.6666666666666666 / Float64(a / b)); elseif (b <= 2.45e-105) 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 <= -9.2e-58) tmp = -0.6666666666666666 / (a / b); elseif (b <= 2.45e-105) 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, -9.2e-58], N[(-0.6666666666666666 / N[(a / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.45e-105], 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 -9.2 \cdot 10^{-58}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{-105}:\\
\;\;\;\;\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 < -9.1999999999999995e-58Initial program 71.6%
sqr-neg71.6%
sqr-neg71.6%
associate-*l*71.6%
Simplified71.6%
Taylor expanded in b around -inf 90.2%
*-commutative90.2%
Simplified90.2%
*-commutative90.2%
clear-num90.1%
un-div-inv90.2%
Applied egg-rr90.2%
if -9.1999999999999995e-58 < b < 2.45e-105Initial program 76.4%
sqr-neg76.4%
sqr-neg76.4%
associate-*l*76.3%
Simplified76.3%
Taylor expanded in b around 0 72.4%
*-commutative72.4%
associate-*l*72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
if 2.45e-105 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification85.5%
(FPCore (a b c)
:precision binary64
(if (<= b -1e-57)
(/ -0.6666666666666666 (/ a b))
(if (<= b 3.9e-106)
(/ (- (sqrt (* -3.0 (* a c))) b) (* a 3.0))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -1e-57) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 3.9e-106) {
tmp = (sqrt((-3.0 * (a * c))) - 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 <= (-1d-57)) then
tmp = (-0.6666666666666666d0) / (a / b)
else if (b <= 3.9d-106) then
tmp = (sqrt(((-3.0d0) * (a * c))) - 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 <= -1e-57) {
tmp = -0.6666666666666666 / (a / b);
} else if (b <= 3.9e-106) {
tmp = (Math.sqrt((-3.0 * (a * c))) - b) / (a * 3.0);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -1e-57: tmp = -0.6666666666666666 / (a / b) elif b <= 3.9e-106: tmp = (math.sqrt((-3.0 * (a * c))) - b) / (a * 3.0) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -1e-57) tmp = Float64(-0.6666666666666666 / Float64(a / b)); elseif (b <= 3.9e-106) tmp = Float64(Float64(sqrt(Float64(-3.0 * Float64(a * c))) - 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 <= -1e-57) tmp = -0.6666666666666666 / (a / b); elseif (b <= 3.9e-106) tmp = (sqrt((-3.0 * (a * c))) - b) / (a * 3.0); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -1e-57], N[(-0.6666666666666666 / N[(a / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.9e-106], N[(N[(N[Sqrt[N[(-3.0 * N[(a * c), $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 \cdot 10^{-57}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-106}:\\
\;\;\;\;\frac{\sqrt{-3 \cdot \left(a \cdot c\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -9.99999999999999955e-58Initial program 71.6%
sqr-neg71.6%
sqr-neg71.6%
associate-*l*71.6%
Simplified71.6%
Taylor expanded in b around -inf 90.2%
*-commutative90.2%
Simplified90.2%
*-commutative90.2%
clear-num90.1%
un-div-inv90.2%
Applied egg-rr90.2%
if -9.99999999999999955e-58 < b < 3.9000000000000001e-106Initial program 76.4%
sqr-neg76.4%
sqr-neg76.4%
associate-*l*76.3%
Simplified76.3%
Taylor expanded in b around 0 72.4%
*-commutative72.4%
associate-*l*72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
+-commutative72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
associate-*l*72.4%
Applied egg-rr72.4%
if 3.9000000000000001e-106 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification85.5%
(FPCore (a b c)
:precision binary64
(if (<= b -2.1e-72)
(/ (* b -0.6666666666666666) a)
(if (<= b 5.5e-104)
(* (/ 0.3333333333333333 a) (+ b (sqrt (* -3.0 (* a c)))))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -2.1e-72) {
tmp = (b * -0.6666666666666666) / a;
} else if (b <= 5.5e-104) {
tmp = (0.3333333333333333 / a) * (b + sqrt((-3.0 * (a * c))));
} 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.1d-72)) then
tmp = (b * (-0.6666666666666666d0)) / a
else if (b <= 5.5d-104) then
tmp = (0.3333333333333333d0 / a) * (b + sqrt(((-3.0d0) * (a * c))))
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.1e-72) {
tmp = (b * -0.6666666666666666) / a;
} else if (b <= 5.5e-104) {
tmp = (0.3333333333333333 / a) * (b + Math.sqrt((-3.0 * (a * c))));
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -2.1e-72: tmp = (b * -0.6666666666666666) / a elif b <= 5.5e-104: tmp = (0.3333333333333333 / a) * (b + math.sqrt((-3.0 * (a * c)))) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -2.1e-72) tmp = Float64(Float64(b * -0.6666666666666666) / a); elseif (b <= 5.5e-104) tmp = Float64(Float64(0.3333333333333333 / a) * Float64(b + sqrt(Float64(-3.0 * Float64(a * c))))); 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.1e-72) tmp = (b * -0.6666666666666666) / a; elseif (b <= 5.5e-104) tmp = (0.3333333333333333 / a) * (b + sqrt((-3.0 * (a * c)))); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -2.1e-72], N[(N[(b * -0.6666666666666666), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 5.5e-104], N[(N[(0.3333333333333333 / a), $MachinePrecision] * N[(b + N[Sqrt[N[(-3.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{-72}:\\
\;\;\;\;\frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-104}:\\
\;\;\;\;\frac{0.3333333333333333}{a} \cdot \left(b + \sqrt{-3 \cdot \left(a \cdot c\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -2.1e-72Initial program 71.4%
sqr-neg71.4%
sqr-neg71.4%
associate-*l*71.4%
Simplified71.4%
Taylor expanded in b around -inf 88.3%
*-commutative88.3%
Simplified88.3%
associate-*l/88.3%
Applied egg-rr88.3%
if -2.1e-72 < b < 5.4999999999999998e-104Initial program 76.9%
sqr-neg76.9%
sqr-neg76.9%
associate-*l*76.8%
Simplified76.8%
Taylor expanded in b around 0 74.0%
*-commutative74.0%
associate-*l*74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
*-un-lft-identity74.1%
div-inv74.1%
add-sqr-sqrt46.8%
sqrt-unprod73.9%
sqr-neg73.9%
sqrt-unprod27.4%
add-sqr-sqrt73.3%
*-commutative73.3%
*-commutative73.3%
associate-*l*73.3%
*-commutative73.3%
metadata-eval73.3%
div-inv73.3%
clear-num73.3%
Applied egg-rr73.3%
*-lft-identity73.3%
*-commutative73.3%
Simplified73.3%
if 5.4999999999999998e-104 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification85.3%
(FPCore (a b c)
:precision binary64
(if (<= b -5e-70)
(/ (* b -0.6666666666666666) a)
(if (<= b 2.05e-103)
(* 0.3333333333333333 (/ (+ b (sqrt (* -3.0 (* a c)))) a))
(* (/ c b) -0.5))))
double code(double a, double b, double c) {
double tmp;
if (b <= -5e-70) {
tmp = (b * -0.6666666666666666) / a;
} else if (b <= 2.05e-103) {
tmp = 0.3333333333333333 * ((b + sqrt((-3.0 * (a * c)))) / 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 <= (-5d-70)) then
tmp = (b * (-0.6666666666666666d0)) / a
else if (b <= 2.05d-103) then
tmp = 0.3333333333333333d0 * ((b + sqrt(((-3.0d0) * (a * c)))) / 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 <= -5e-70) {
tmp = (b * -0.6666666666666666) / a;
} else if (b <= 2.05e-103) {
tmp = 0.3333333333333333 * ((b + Math.sqrt((-3.0 * (a * c)))) / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= -5e-70: tmp = (b * -0.6666666666666666) / a elif b <= 2.05e-103: tmp = 0.3333333333333333 * ((b + math.sqrt((-3.0 * (a * c)))) / a) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= -5e-70) tmp = Float64(Float64(b * -0.6666666666666666) / a); elseif (b <= 2.05e-103) tmp = Float64(0.3333333333333333 * Float64(Float64(b + sqrt(Float64(-3.0 * Float64(a * c)))) / 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 <= -5e-70) tmp = (b * -0.6666666666666666) / a; elseif (b <= 2.05e-103) tmp = 0.3333333333333333 * ((b + sqrt((-3.0 * (a * c)))) / a); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, -5e-70], N[(N[(b * -0.6666666666666666), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 2.05e-103], N[(0.3333333333333333 * N[(N[(b + N[Sqrt[N[(-3.0 * N[(a * c), $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 -5 \cdot 10^{-70}:\\
\;\;\;\;\frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-103}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{b + \sqrt{-3 \cdot \left(a \cdot c\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < -4.9999999999999998e-70Initial program 71.4%
sqr-neg71.4%
sqr-neg71.4%
associate-*l*71.4%
Simplified71.4%
Taylor expanded in b around -inf 88.3%
*-commutative88.3%
Simplified88.3%
associate-*l/88.3%
Applied egg-rr88.3%
if -4.9999999999999998e-70 < b < 2.04999999999999998e-103Initial program 76.9%
sqr-neg76.9%
sqr-neg76.9%
associate-*l*76.8%
Simplified76.8%
Taylor expanded in b around 0 74.0%
*-commutative74.0%
associate-*l*74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
*-un-lft-identity74.1%
times-frac73.9%
metadata-eval73.9%
add-sqr-sqrt46.7%
sqrt-unprod73.7%
sqr-neg73.7%
sqrt-unprod27.3%
add-sqr-sqrt73.1%
*-commutative73.1%
*-commutative73.1%
associate-*l*73.1%
Applied egg-rr73.1%
if 2.04999999999999998e-103 < b Initial program 17.2%
sqr-neg17.2%
sqr-neg17.2%
associate-*l*17.2%
Simplified17.2%
Taylor expanded in b around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification85.3%
(FPCore (a b c) :precision binary64 (if (<= b 7.9e-249) (/ (* b -0.6666666666666666) a) (* (/ c b) -0.5)))
double code(double a, double b, double c) {
double tmp;
if (b <= 7.9e-249) {
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 <= 7.9d-249) 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 <= 7.9e-249) {
tmp = (b * -0.6666666666666666) / a;
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 7.9e-249: tmp = (b * -0.6666666666666666) / a else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= 7.9e-249) tmp = Float64(Float64(b * -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 <= 7.9e-249) tmp = (b * -0.6666666666666666) / a; else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 7.9e-249], N[(N[(b * -0.6666666666666666), $MachinePrecision] / a), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.9 \cdot 10^{-249}:\\
\;\;\;\;\frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < 7.89999999999999962e-249Initial program 74.6%
sqr-neg74.6%
sqr-neg74.6%
associate-*l*74.6%
Simplified74.6%
Taylor expanded in b around -inf 62.7%
*-commutative62.7%
Simplified62.7%
associate-*l/62.7%
Applied egg-rr62.7%
if 7.89999999999999962e-249 < b Initial program 24.1%
sqr-neg24.1%
sqr-neg24.1%
associate-*l*24.1%
Simplified24.1%
Taylor expanded in b around inf 77.7%
*-commutative77.7%
Simplified77.7%
(FPCore (a b c) :precision binary64 (if (<= b 7.9e-249) (* -0.6666666666666666 (/ b a)) (* (/ c b) -0.5)))
double code(double a, double b, double c) {
double tmp;
if (b <= 7.9e-249) {
tmp = -0.6666666666666666 * (b / 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 <= 7.9d-249) then
tmp = (-0.6666666666666666d0) * (b / 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 <= 7.9e-249) {
tmp = -0.6666666666666666 * (b / a);
} else {
tmp = (c / b) * -0.5;
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 7.9e-249: tmp = -0.6666666666666666 * (b / a) else: tmp = (c / b) * -0.5 return tmp
function code(a, b, c) tmp = 0.0 if (b <= 7.9e-249) tmp = Float64(-0.6666666666666666 * Float64(b / 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 <= 7.9e-249) tmp = -0.6666666666666666 * (b / a); else tmp = (c / b) * -0.5; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 7.9e-249], N[(-0.6666666666666666 * N[(b / a), $MachinePrecision]), $MachinePrecision], N[(N[(c / b), $MachinePrecision] * -0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.9 \cdot 10^{-249}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\end{array}
if b < 7.89999999999999962e-249Initial program 74.6%
sqr-neg74.6%
sqr-neg74.6%
associate-*l*74.6%
Simplified74.6%
Taylor expanded in b around -inf 62.7%
*-commutative62.7%
Simplified62.7%
if 7.89999999999999962e-249 < b Initial program 24.1%
sqr-neg24.1%
sqr-neg24.1%
associate-*l*24.1%
Simplified24.1%
Taylor expanded in b around inf 77.7%
*-commutative77.7%
Simplified77.7%
Final simplification70.4%
(FPCore (a b c) :precision binary64 (if (<= b 7.9e-249) (* -0.6666666666666666 (/ b a)) (* c (/ -0.5 b))))
double code(double a, double b, double c) {
double tmp;
if (b <= 7.9e-249) {
tmp = -0.6666666666666666 * (b / 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 <= 7.9d-249) then
tmp = (-0.6666666666666666d0) * (b / 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 <= 7.9e-249) {
tmp = -0.6666666666666666 * (b / a);
} else {
tmp = c * (-0.5 / b);
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 7.9e-249: tmp = -0.6666666666666666 * (b / a) else: tmp = c * (-0.5 / b) return tmp
function code(a, b, c) tmp = 0.0 if (b <= 7.9e-249) tmp = Float64(-0.6666666666666666 * Float64(b / 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 <= 7.9e-249) tmp = -0.6666666666666666 * (b / a); else tmp = c * (-0.5 / b); end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 7.9e-249], N[(-0.6666666666666666 * N[(b / a), $MachinePrecision]), $MachinePrecision], N[(c * N[(-0.5 / b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.9 \cdot 10^{-249}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a}\\
\mathbf{else}:\\
\;\;\;\;c \cdot \frac{-0.5}{b}\\
\end{array}
\end{array}
if b < 7.89999999999999962e-249Initial program 74.6%
sqr-neg74.6%
sqr-neg74.6%
associate-*l*74.6%
Simplified74.6%
Taylor expanded in b around -inf 62.7%
*-commutative62.7%
Simplified62.7%
if 7.89999999999999962e-249 < b Initial program 24.1%
sqr-neg24.1%
sqr-neg24.1%
associate-*l*24.1%
Simplified24.1%
Taylor expanded in b around inf 77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in c around 0 77.7%
associate-*r/77.7%
*-commutative77.7%
associate-*r/77.5%
Simplified77.5%
Final simplification70.3%
(FPCore (a b c) :precision binary64 (if (<= b 7.9e-249) (* b (/ -0.6666666666666666 a)) (* c (/ -0.5 b))))
double code(double a, double b, double c) {
double tmp;
if (b <= 7.9e-249) {
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 <= 7.9d-249) 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 <= 7.9e-249) {
tmp = b * (-0.6666666666666666 / a);
} else {
tmp = c * (-0.5 / b);
}
return tmp;
}
def code(a, b, c): tmp = 0 if b <= 7.9e-249: tmp = b * (-0.6666666666666666 / a) else: tmp = c * (-0.5 / b) return tmp
function code(a, b, c) tmp = 0.0 if (b <= 7.9e-249) 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 <= 7.9e-249) tmp = b * (-0.6666666666666666 / a); else tmp = c * (-0.5 / b); end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[b, 7.9e-249], 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 7.9 \cdot 10^{-249}:\\
\;\;\;\;b \cdot \frac{-0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;c \cdot \frac{-0.5}{b}\\
\end{array}
\end{array}
if b < 7.89999999999999962e-249Initial program 74.6%
sqr-neg74.6%
sqr-neg74.6%
associate-*l*74.6%
Simplified74.6%
Taylor expanded in b around -inf 62.7%
*-commutative62.7%
Simplified62.7%
*-commutative62.7%
clear-num62.7%
un-div-inv62.7%
Applied egg-rr62.7%
associate-/r/62.7%
Simplified62.7%
if 7.89999999999999962e-249 < b Initial program 24.1%
sqr-neg24.1%
sqr-neg24.1%
associate-*l*24.1%
Simplified24.1%
Taylor expanded in b around inf 77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in c around 0 77.7%
associate-*r/77.7%
*-commutative77.7%
associate-*r/77.5%
Simplified77.5%
Final simplification70.3%
(FPCore (a b c) :precision binary64 (* c (/ -0.5 b)))
double code(double a, double b, double c) {
return c * (-0.5 / b);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = c * ((-0.5d0) / b)
end function
public static double code(double a, double b, double c) {
return c * (-0.5 / b);
}
def code(a, b, c): return c * (-0.5 / b)
function code(a, b, c) return Float64(c * Float64(-0.5 / b)) end
function tmp = code(a, b, c) tmp = c * (-0.5 / b); end
code[a_, b_, c_] := N[(c * N[(-0.5 / b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \frac{-0.5}{b}
\end{array}
Initial program 48.7%
sqr-neg48.7%
sqr-neg48.7%
associate-*l*48.7%
Simplified48.7%
Taylor expanded in b around inf 40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in c around 0 40.8%
associate-*r/40.8%
*-commutative40.8%
associate-*r/40.7%
Simplified40.7%
(FPCore (a b c) :precision binary64 0.0)
double code(double a, double b, double c) {
return 0.0;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 0.0d0
end function
public static double code(double a, double b, double c) {
return 0.0;
}
def code(a, b, c): return 0.0
function code(a, b, c) return 0.0 end
function tmp = code(a, b, c) tmp = 0.0; end
code[a_, b_, c_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 48.7%
sqr-neg48.7%
sqr-neg48.7%
associate-*l*48.7%
Simplified48.7%
Taylor expanded in b around -inf 32.0%
*-commutative32.0%
Simplified32.0%
*-commutative32.0%
clear-num32.0%
un-div-inv32.0%
Applied egg-rr32.0%
associate-/r/32.0%
Simplified32.0%
expm1-log1p-u18.0%
expm1-undefine16.5%
*-commutative16.5%
Applied egg-rr16.5%
sub-neg16.5%
metadata-eval16.5%
+-commutative16.5%
log1p-undefine16.5%
rem-exp-log30.5%
+-commutative30.5%
fma-define30.5%
Simplified30.5%
Taylor expanded in b around 0 13.5%
Final simplification13.5%
herbie shell --seed 2024145
(FPCore (a b c)
:name "Cubic critical"
:precision binary64
(/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))