
(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 8 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
(let* ((t_0 (* (* c c) (* (* a a) -1.125))))
(fma
-0.5625
(/ (* (pow c 3.0) (* a a)) (pow b 5.0))
(fma
-0.16666666666666666
(/ (+ (* t_0 t_0) (* 5.0625 (pow (* c a) 4.0))) (* a (pow b 7.0)))
(fma -0.5 (/ c b) (/ (* -0.375 (* a (* c c))) (pow b 3.0)))))))
double code(double a, double b, double c) {
double t_0 = (c * c) * ((a * a) * -1.125);
return fma(-0.5625, ((pow(c, 3.0) * (a * a)) / pow(b, 5.0)), fma(-0.16666666666666666, (((t_0 * t_0) + (5.0625 * pow((c * a), 4.0))) / (a * pow(b, 7.0))), fma(-0.5, (c / b), ((-0.375 * (a * (c * c))) / pow(b, 3.0)))));
}
function code(a, b, c) t_0 = Float64(Float64(c * c) * Float64(Float64(a * a) * -1.125)) return fma(-0.5625, Float64(Float64((c ^ 3.0) * Float64(a * a)) / (b ^ 5.0)), fma(-0.16666666666666666, Float64(Float64(Float64(t_0 * t_0) + Float64(5.0625 * (Float64(c * a) ^ 4.0))) / Float64(a * (b ^ 7.0))), fma(-0.5, Float64(c / b), Float64(Float64(-0.375 * Float64(a * Float64(c * c))) / (b ^ 3.0))))) end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[(c * c), $MachinePrecision] * N[(N[(a * a), $MachinePrecision] * -1.125), $MachinePrecision]), $MachinePrecision]}, N[(-0.5625 * N[(N[(N[Power[c, 3.0], $MachinePrecision] * N[(a * a), $MachinePrecision]), $MachinePrecision] / N[Power[b, 5.0], $MachinePrecision]), $MachinePrecision] + N[(-0.16666666666666666 * N[(N[(N[(t$95$0 * t$95$0), $MachinePrecision] + N[(5.0625 * N[Power[N[(c * a), $MachinePrecision], 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[Power[b, 7.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.5 * N[(c / b), $MachinePrecision] + N[(N[(-0.375 * N[(a * N[(c * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(c \cdot c\right) \cdot \left(\left(a \cdot a\right) \cdot -1.125\right)\\
\mathsf{fma}\left(-0.5625, \frac{{c}^{3} \cdot \left(a \cdot a\right)}{{b}^{5}}, \mathsf{fma}\left(-0.16666666666666666, \frac{t_0 \cdot t_0 + 5.0625 \cdot {\left(c \cdot a\right)}^{4}}{a \cdot {b}^{7}}, \mathsf{fma}\left(-0.5, \frac{c}{b}, \frac{-0.375 \cdot \left(a \cdot \left(c \cdot c\right)\right)}{{b}^{3}}\right)\right)\right)
\end{array}
\end{array}
Initial program 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 96.8%
fma-def96.8%
unpow296.8%
fma-def96.8%
Simplified96.8%
pow196.8%
pow-prod-down96.8%
Applied egg-rr96.8%
unpow196.8%
Simplified96.8%
unpow296.8%
associate-*l*96.8%
associate-*l*96.8%
Applied egg-rr96.8%
Final simplification96.8%
(FPCore (a b c) :precision binary64 (fma -0.5625 (* (* a a) (/ (pow c 3.0) (pow b 5.0))) (fma c (/ -0.5 b) (* a (* -0.375 (/ (* c c) (pow b 3.0)))))))
double code(double a, double b, double c) {
return fma(-0.5625, ((a * a) * (pow(c, 3.0) / pow(b, 5.0))), fma(c, (-0.5 / b), (a * (-0.375 * ((c * c) / pow(b, 3.0))))));
}
function code(a, b, c) return fma(-0.5625, Float64(Float64(a * a) * Float64((c ^ 3.0) / (b ^ 5.0))), fma(c, Float64(-0.5 / b), Float64(a * Float64(-0.375 * Float64(Float64(c * c) / (b ^ 3.0)))))) end
code[a_, b_, c_] := N[(-0.5625 * N[(N[(a * a), $MachinePrecision] * N[(N[Power[c, 3.0], $MachinePrecision] / N[Power[b, 5.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(-0.5 / b), $MachinePrecision] + N[(a * N[(-0.375 * N[(N[(c * c), $MachinePrecision] / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(-0.5625, \left(a \cdot a\right) \cdot \frac{{c}^{3}}{{b}^{5}}, \mathsf{fma}\left(c, \frac{-0.5}{b}, a \cdot \left(-0.375 \cdot \frac{c \cdot c}{{b}^{3}}\right)\right)\right)
\end{array}
Initial program 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 95.3%
fma-def95.3%
associate-/l*95.3%
unpow295.3%
fma-def95.3%
associate-/l*95.3%
unpow295.3%
associate-*r/95.2%
Simplified95.2%
Taylor expanded in c around 0 95.8%
fma-def95.8%
unpow295.8%
associate-*l/95.8%
*-commutative95.8%
associate-*r/95.8%
associate-*l/95.4%
*-commutative95.4%
fma-def95.4%
*-commutative95.4%
unpow295.4%
associate-*l/95.4%
*-commutative95.4%
associate-*l*95.4%
Simplified95.4%
Final simplification95.4%
(FPCore (a b c) :precision binary64 (fma -0.5625 (/ (pow c 3.0) (/ (pow b 5.0) (* a a))) (fma -0.375 (/ (* c c) (/ (pow b 3.0) a)) (/ (* c -0.5) b))))
double code(double a, double b, double c) {
return fma(-0.5625, (pow(c, 3.0) / (pow(b, 5.0) / (a * a))), fma(-0.375, ((c * c) / (pow(b, 3.0) / a)), ((c * -0.5) / b)));
}
function code(a, b, c) return fma(-0.5625, Float64((c ^ 3.0) / Float64((b ^ 5.0) / Float64(a * a))), fma(-0.375, Float64(Float64(c * c) / Float64((b ^ 3.0) / a)), Float64(Float64(c * -0.5) / b))) end
code[a_, b_, c_] := N[(-0.5625 * N[(N[Power[c, 3.0], $MachinePrecision] / N[(N[Power[b, 5.0], $MachinePrecision] / N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.375 * N[(N[(c * c), $MachinePrecision] / N[(N[Power[b, 3.0], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(N[(c * -0.5), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(-0.5625, \frac{{c}^{3}}{\frac{{b}^{5}}{a \cdot a}}, \mathsf{fma}\left(-0.375, \frac{c \cdot c}{\frac{{b}^{3}}{a}}, \frac{c \cdot -0.5}{b}\right)\right)
\end{array}
Initial program 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 95.8%
fma-def95.8%
associate-/l*95.8%
unpow295.8%
+-commutative95.8%
fma-def95.8%
associate-/l*95.8%
unpow295.8%
associate-*r/95.8%
Simplified95.8%
Final simplification95.8%
(FPCore (a b c) :precision binary64 (if (<= (/ (- (sqrt (- (* b b) (* c (* 3.0 a)))) b) (* 3.0 a)) -4e-23) (/ (- (sqrt (- (* b b) (* 3.0 (* c a)))) b) (* 3.0 a)) (/ (* c -0.5) b)))
double code(double a, double b, double c) {
double tmp;
if (((sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a)) <= -4e-23) {
tmp = (sqrt(((b * b) - (3.0 * (c * a)))) - b) / (3.0 * 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 (((sqrt(((b * b) - (c * (3.0d0 * a)))) - b) / (3.0d0 * a)) <= (-4d-23)) then
tmp = (sqrt(((b * b) - (3.0d0 * (c * a)))) - b) / (3.0d0 * 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 (((Math.sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a)) <= -4e-23) {
tmp = (Math.sqrt(((b * b) - (3.0 * (c * a)))) - b) / (3.0 * a);
} else {
tmp = (c * -0.5) / b;
}
return tmp;
}
def code(a, b, c): tmp = 0 if ((math.sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a)) <= -4e-23: tmp = (math.sqrt(((b * b) - (3.0 * (c * a)))) - b) / (3.0 * a) else: tmp = (c * -0.5) / b return tmp
function code(a, b, c) tmp = 0.0 if (Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(3.0 * a)))) - b) / Float64(3.0 * a)) <= -4e-23) tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(3.0 * Float64(c * a)))) - b) / Float64(3.0 * a)); else tmp = Float64(Float64(c * -0.5) / b); end return tmp end
function tmp_2 = code(a, b, c) tmp = 0.0; if (((sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a)) <= -4e-23) tmp = (sqrt(((b * b) - (3.0 * (c * a)))) - b) / (3.0 * a); else tmp = (c * -0.5) / b; end tmp_2 = tmp; end
code[a_, b_, c_] := If[LessEqual[N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision], -4e-23], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(3.0 * N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision], N[(N[(c * -0.5), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)} - b}{3 \cdot a} \leq -4 \cdot 10^{-23}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - 3 \cdot \left(c \cdot a\right)} - b}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c \cdot -0.5}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 3 a) c)))) (*.f64 3 a)) < -3.99999999999999984e-23Initial program 65.4%
neg-sub065.4%
associate-+l-65.4%
sub0-neg65.4%
neg-mul-165.4%
associate-*r/65.4%
metadata-eval65.4%
metadata-eval65.4%
times-frac65.4%
*-commutative65.4%
times-frac65.3%
associate-*l/65.4%
Simplified65.4%
if -3.99999999999999984e-23 < (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 3 a) c)))) (*.f64 3 a)) Initial program 3.9%
/-rgt-identity3.9%
metadata-eval3.9%
associate-/l*3.9%
associate-*r/3.9%
*-commutative3.9%
associate-*l/3.9%
associate-*r/3.9%
metadata-eval3.9%
metadata-eval3.9%
times-frac3.9%
neg-mul-13.9%
distribute-rgt-neg-in3.9%
times-frac3.9%
metadata-eval3.9%
neg-mul-13.9%
Simplified4.0%
Taylor expanded in b around inf 99.8%
associate-*r/99.8%
Simplified99.8%
Final simplification90.4%
(FPCore (a b c) :precision binary64 (fma -0.375 (/ (* c c) (/ (pow b 3.0) a)) (/ (* c -0.5) b)))
double code(double a, double b, double c) {
return fma(-0.375, ((c * c) / (pow(b, 3.0) / a)), ((c * -0.5) / b));
}
function code(a, b, c) return fma(-0.375, Float64(Float64(c * c) / Float64((b ^ 3.0) / a)), Float64(Float64(c * -0.5) / b)) end
code[a_, b_, c_] := N[(-0.375 * N[(N[(c * c), $MachinePrecision] / N[(N[Power[b, 3.0], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(N[(c * -0.5), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(-0.375, \frac{c \cdot c}{\frac{{b}^{3}}{a}}, \frac{c \cdot -0.5}{b}\right)
\end{array}
Initial program 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 93.8%
+-commutative93.8%
fma-def93.8%
associate-/l*93.8%
unpow293.8%
associate-*r/93.8%
Simplified93.8%
Final simplification93.8%
(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 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 88.0%
associate-*r/87.8%
Simplified87.8%
Taylor expanded in c around 0 88.4%
associate-*r/88.4%
associate-/l*88.1%
associate-/r/88.0%
Simplified88.0%
Final simplification88.0%
(FPCore (a b c) :precision binary64 (/ -0.5 (/ b c)))
double code(double a, double b, double c) {
return -0.5 / (b / c);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = (-0.5d0) / (b / c)
end function
public static double code(double a, double b, double c) {
return -0.5 / (b / c);
}
def code(a, b, c): return -0.5 / (b / c)
function code(a, b, c) return Float64(-0.5 / Float64(b / c)) end
function tmp = code(a, b, c) tmp = -0.5 / (b / c); end
code[a_, b_, c_] := N[(-0.5 / N[(b / c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-0.5}{\frac{b}{c}}
\end{array}
Initial program 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 88.0%
associate-*r/87.8%
Simplified87.8%
Taylor expanded in c around 0 88.4%
associate-*r/88.4%
associate-/l*88.1%
associate-/r/88.0%
Simplified88.0%
Taylor expanded in b around 0 88.4%
associate-*r/88.4%
associate-/l*88.1%
Simplified88.1%
Final simplification88.1%
(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(Float64(c * -0.5) / b) end
function tmp = code(a, b, c) tmp = (c * -0.5) / b; end
code[a_, b_, c_] := N[(N[(c * -0.5), $MachinePrecision] / b), $MachinePrecision]
\begin{array}{l}
\\
\frac{c \cdot -0.5}{b}
\end{array}
Initial program 20.7%
/-rgt-identity20.7%
metadata-eval20.7%
associate-/l*20.7%
associate-*r/20.7%
*-commutative20.7%
associate-*l/20.7%
associate-*r/20.7%
metadata-eval20.7%
metadata-eval20.7%
times-frac20.7%
neg-mul-120.7%
distribute-rgt-neg-in20.7%
times-frac20.7%
metadata-eval20.7%
neg-mul-120.7%
Simplified20.8%
Taylor expanded in b around inf 88.4%
associate-*r/88.4%
Simplified88.4%
Final simplification88.4%
herbie shell --seed 2023242
(FPCore (a b c)
:name "Cubic critical, wide range"
:precision binary64
:pre (and (and (and (< 4.930380657631324e-32 a) (< a 2.028240960365167e+31)) (and (< 4.930380657631324e-32 b) (< b 2.028240960365167e+31))) (and (< 4.930380657631324e-32 c) (< c 2.028240960365167e+31)))
(/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))