
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma y i (fma (+ b -0.5) (log c) (+ (fma x (log y) a) (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, i, fma((b + -0.5), log(c), (fma(x, log(y), a) + (z + t))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, fma(Float64(b + -0.5), log(c), Float64(fma(x, log(y), a) + Float64(z + t)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision] + a), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, \mathsf{fma}\left(b + -0.5, \log c, \mathsf{fma}\left(x, \log y, a\right) + \left(z + t\right)\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ a (+ t (+ z (* x (log y))))) (* (log c) (- b 0.5))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5d0))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((a + (t + (z + (x * Math.log(y))))) + (Math.log(c) * (b - 0.5))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((a + (t + (z + (x * math.log(y))))) + (math.log(c) * (b - 0.5))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(log(c) * Float64(b - 0.5))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + \log c \cdot \left(b - 0.5\right)\right) + y \cdot i
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))) (t_2 (+ a (+ z t))))
(if (<= i -6.8e+25)
(+ (* y i) (+ (* b (log c)) t_2))
(if (<= i 1e-87)
(+ a (+ z (+ (* x (log y)) t_1)))
(+ (* y i) (+ t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double t_2 = a + (z + t);
double tmp;
if (i <= -6.8e+25) {
tmp = (y * i) + ((b * log(c)) + t_2);
} else if (i <= 1e-87) {
tmp = a + (z + ((x * log(y)) + t_1));
} else {
tmp = (y * i) + (t_1 + t_2);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = log(c) * (b - 0.5d0)
t_2 = a + (z + t)
if (i <= (-6.8d+25)) then
tmp = (y * i) + ((b * log(c)) + t_2)
else if (i <= 1d-87) then
tmp = a + (z + ((x * log(y)) + t_1))
else
tmp = (y * i) + (t_1 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = Math.log(c) * (b - 0.5);
double t_2 = a + (z + t);
double tmp;
if (i <= -6.8e+25) {
tmp = (y * i) + ((b * Math.log(c)) + t_2);
} else if (i <= 1e-87) {
tmp = a + (z + ((x * Math.log(y)) + t_1));
} else {
tmp = (y * i) + (t_1 + t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = math.log(c) * (b - 0.5) t_2 = a + (z + t) tmp = 0 if i <= -6.8e+25: tmp = (y * i) + ((b * math.log(c)) + t_2) elif i <= 1e-87: tmp = a + (z + ((x * math.log(y)) + t_1)) else: tmp = (y * i) + (t_1 + t_2) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) t_2 = Float64(a + Float64(z + t)) tmp = 0.0 if (i <= -6.8e+25) tmp = Float64(Float64(y * i) + Float64(Float64(b * log(c)) + t_2)); elseif (i <= 1e-87) tmp = Float64(a + Float64(z + Float64(Float64(x * log(y)) + t_1))); else tmp = Float64(Float64(y * i) + Float64(t_1 + t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = log(c) * (b - 0.5); t_2 = a + (z + t); tmp = 0.0; if (i <= -6.8e+25) tmp = (y * i) + ((b * log(c)) + t_2); elseif (i <= 1e-87) tmp = a + (z + ((x * log(y)) + t_1)); else tmp = (y * i) + (t_1 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6.8e+25], N[(N[(y * i), $MachinePrecision] + N[(N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1e-87], N[(a + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
t_2 := a + \left(z + t\right)\\
\mathbf{if}\;i \leq -6.8 \cdot 10^{+25}:\\
\;\;\;\;y \cdot i + \left(b \cdot \log c + t_2\right)\\
\mathbf{elif}\;i \leq 10^{-87}:\\
\;\;\;\;a + \left(z + \left(x \cdot \log y + t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t_1 + t_2\right)\\
\end{array}
\end{array}
if i < -6.79999999999999967e25Initial program 100.0%
Taylor expanded in b around inf 100.0%
*-commutative73.9%
Simplified100.0%
Taylor expanded in x around 0 96.8%
if -6.79999999999999967e25 < i < 1.00000000000000002e-87Initial program 99.8%
Taylor expanded in t around 0 78.3%
+-commutative78.3%
log-pow38.2%
associate-+r+38.2%
log-pow78.3%
fma-udef78.3%
Simplified78.3%
Taylor expanded in y around 0 73.8%
if 1.00000000000000002e-87 < i Initial program 99.9%
Taylor expanded in x around 0 95.0%
Final simplification85.4%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* b (log c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * Math.log(y))))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (t + (z + (x * math.log(y))))) + (b * math.log(c)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf 98.3%
*-commutative57.4%
Simplified98.3%
Final simplification98.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= z -5.5e+135)
(+ z (* y i))
(if (<= z -2.2e-60)
(+ (* y i) (+ a (* -0.5 (log c))))
(if (or (<= z -2.7e-141) (and (not (<= z -7.5e-182)) (<= z 6.9e-292)))
(+ (* (log c) (- b 0.5)) (* y i))
(+ a (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -5.5e+135) {
tmp = z + (y * i);
} else if (z <= -2.2e-60) {
tmp = (y * i) + (a + (-0.5 * log(c)));
} else if ((z <= -2.7e-141) || (!(z <= -7.5e-182) && (z <= 6.9e-292))) {
tmp = (log(c) * (b - 0.5)) + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-5.5d+135)) then
tmp = z + (y * i)
else if (z <= (-2.2d-60)) then
tmp = (y * i) + (a + ((-0.5d0) * log(c)))
else if ((z <= (-2.7d-141)) .or. (.not. (z <= (-7.5d-182))) .and. (z <= 6.9d-292)) then
tmp = (log(c) * (b - 0.5d0)) + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -5.5e+135) {
tmp = z + (y * i);
} else if (z <= -2.2e-60) {
tmp = (y * i) + (a + (-0.5 * Math.log(c)));
} else if ((z <= -2.7e-141) || (!(z <= -7.5e-182) && (z <= 6.9e-292))) {
tmp = (Math.log(c) * (b - 0.5)) + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -5.5e+135: tmp = z + (y * i) elif z <= -2.2e-60: tmp = (y * i) + (a + (-0.5 * math.log(c))) elif (z <= -2.7e-141) or (not (z <= -7.5e-182) and (z <= 6.9e-292)): tmp = (math.log(c) * (b - 0.5)) + (y * i) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -5.5e+135) tmp = Float64(z + Float64(y * i)); elseif (z <= -2.2e-60) tmp = Float64(Float64(y * i) + Float64(a + Float64(-0.5 * log(c)))); elseif ((z <= -2.7e-141) || (!(z <= -7.5e-182) && (z <= 6.9e-292))) tmp = Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -5.5e+135) tmp = z + (y * i); elseif (z <= -2.2e-60) tmp = (y * i) + (a + (-0.5 * log(c))); elseif ((z <= -2.7e-141) || (~((z <= -7.5e-182)) && (z <= 6.9e-292))) tmp = (log(c) * (b - 0.5)) + (y * i); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -5.5e+135], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.2e-60], N[(N[(y * i), $MachinePrecision] + N[(a + N[(-0.5 * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -2.7e-141], And[N[Not[LessEqual[z, -7.5e-182]], $MachinePrecision], LessEqual[z, 6.9e-292]]], N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+135}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-60}:\\
\;\;\;\;y \cdot i + \left(a + -0.5 \cdot \log c\right)\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-141} \lor \neg \left(z \leq -7.5 \cdot 10^{-182}\right) \land z \leq 6.9 \cdot 10^{-292}:\\
\;\;\;\;\log c \cdot \left(b - 0.5\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -5.4999999999999999e135Initial program 100.0%
Taylor expanded in t around 0 90.5%
+-commutative90.5%
log-pow45.2%
associate-+r+45.2%
log-pow90.5%
fma-udef90.5%
Simplified90.5%
Taylor expanded in z around inf 76.7%
Taylor expanded in z around inf 67.0%
if -5.4999999999999999e135 < z < -2.1999999999999999e-60Initial program 99.8%
Taylor expanded in a around inf 52.7%
Taylor expanded in b around 0 42.7%
*-commutative42.7%
Simplified42.7%
if -2.1999999999999999e-60 < z < -2.7000000000000003e-141 or -7.49999999999999935e-182 < z < 6.89999999999999969e-292Initial program 100.0%
Taylor expanded in a around inf 74.9%
Taylor expanded in a around 0 51.8%
if -2.7000000000000003e-141 < z < -7.49999999999999935e-182 or 6.89999999999999969e-292 < z Initial program 99.8%
Taylor expanded in a around inf 58.7%
sub-neg58.7%
metadata-eval58.7%
*-commutative58.7%
flip-+45.5%
associate-*r/45.5%
fma-neg45.5%
metadata-eval45.5%
metadata-eval45.5%
sub-neg45.5%
metadata-eval45.5%
Applied egg-rr45.5%
associate-/l*45.5%
Simplified45.5%
Taylor expanded in a around inf 44.9%
Final simplification49.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* (log c) (- b 0.5)) (* y i))) (t_2 (+ z (* y i))))
(if (<= a 8.5e-290)
t_2
(if (<= a 1.46e-182)
t_1
(if (<= a 9e-84)
t_2
(if (<= a 1.9e-26) t_1 (if (<= a 1.6e+84) t_2 (+ a (* y i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (log(c) * (b - 0.5)) + (y * i);
double t_2 = z + (y * i);
double tmp;
if (a <= 8.5e-290) {
tmp = t_2;
} else if (a <= 1.46e-182) {
tmp = t_1;
} else if (a <= 9e-84) {
tmp = t_2;
} else if (a <= 1.9e-26) {
tmp = t_1;
} else if (a <= 1.6e+84) {
tmp = t_2;
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (log(c) * (b - 0.5d0)) + (y * i)
t_2 = z + (y * i)
if (a <= 8.5d-290) then
tmp = t_2
else if (a <= 1.46d-182) then
tmp = t_1
else if (a <= 9d-84) then
tmp = t_2
else if (a <= 1.9d-26) then
tmp = t_1
else if (a <= 1.6d+84) then
tmp = t_2
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (Math.log(c) * (b - 0.5)) + (y * i);
double t_2 = z + (y * i);
double tmp;
if (a <= 8.5e-290) {
tmp = t_2;
} else if (a <= 1.46e-182) {
tmp = t_1;
} else if (a <= 9e-84) {
tmp = t_2;
} else if (a <= 1.9e-26) {
tmp = t_1;
} else if (a <= 1.6e+84) {
tmp = t_2;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (math.log(c) * (b - 0.5)) + (y * i) t_2 = z + (y * i) tmp = 0 if a <= 8.5e-290: tmp = t_2 elif a <= 1.46e-182: tmp = t_1 elif a <= 9e-84: tmp = t_2 elif a <= 1.9e-26: tmp = t_1 elif a <= 1.6e+84: tmp = t_2 else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(y * i)) t_2 = Float64(z + Float64(y * i)) tmp = 0.0 if (a <= 8.5e-290) tmp = t_2; elseif (a <= 1.46e-182) tmp = t_1; elseif (a <= 9e-84) tmp = t_2; elseif (a <= 1.9e-26) tmp = t_1; elseif (a <= 1.6e+84) tmp = t_2; else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (log(c) * (b - 0.5)) + (y * i); t_2 = z + (y * i); tmp = 0.0; if (a <= 8.5e-290) tmp = t_2; elseif (a <= 1.46e-182) tmp = t_1; elseif (a <= 9e-84) tmp = t_2; elseif (a <= 1.9e-26) tmp = t_1; elseif (a <= 1.6e+84) tmp = t_2; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 8.5e-290], t$95$2, If[LessEqual[a, 1.46e-182], t$95$1, If[LessEqual[a, 9e-84], t$95$2, If[LessEqual[a, 1.9e-26], t$95$1, If[LessEqual[a, 1.6e+84], t$95$2, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right) + y \cdot i\\
t_2 := z + y \cdot i\\
\mathbf{if}\;a \leq 8.5 \cdot 10^{-290}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{-182}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 8.50000000000000045e-290 or 1.46e-182 < a < 9.00000000000000031e-84 or 1.90000000000000007e-26 < a < 1.60000000000000005e84Initial program 99.8%
Taylor expanded in t around 0 79.2%
+-commutative79.2%
log-pow42.4%
associate-+r+42.4%
log-pow79.2%
fma-udef79.2%
Simplified79.2%
Taylor expanded in z around inf 54.5%
Taylor expanded in z around inf 39.6%
if 8.50000000000000045e-290 < a < 1.46e-182 or 9.00000000000000031e-84 < a < 1.90000000000000007e-26Initial program 99.9%
Taylor expanded in a around inf 64.6%
Taylor expanded in a around 0 64.6%
if 1.60000000000000005e84 < a Initial program 99.9%
Taylor expanded in a around inf 73.7%
sub-neg73.7%
metadata-eval73.7%
*-commutative73.7%
flip-+54.0%
associate-*r/54.0%
fma-neg54.0%
metadata-eval54.0%
metadata-eval54.0%
sub-neg54.0%
metadata-eval54.0%
Applied egg-rr54.0%
associate-/l*54.0%
Simplified54.0%
Taylor expanded in a around inf 62.9%
Final simplification47.6%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* (log c) (- b 0.5)) (+ a (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((log(c) * (b - 0.5)) + (a + (z + t)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + ((log(c) * (b - 0.5d0)) + (a + (z + t)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((Math.log(c) * (b - 0.5)) + (a + (z + t)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((math.log(c) * (b - 0.5)) + (a + (z + t)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(z + t)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (z + t))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(z + t\right)\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in x around 0 87.2%
Final simplification87.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 2.1e+84) (+ (* y i) (+ z (* (log c) (- b 0.5)))) (+ (* y i) (+ a (* b (log c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.1e+84) {
tmp = (y * i) + (z + (log(c) * (b - 0.5)));
} else {
tmp = (y * i) + (a + (b * log(c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 2.1d+84) then
tmp = (y * i) + (z + (log(c) * (b - 0.5d0)))
else
tmp = (y * i) + (a + (b * log(c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.1e+84) {
tmp = (y * i) + (z + (Math.log(c) * (b - 0.5)));
} else {
tmp = (y * i) + (a + (b * Math.log(c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 2.1e+84: tmp = (y * i) + (z + (math.log(c) * (b - 0.5))) else: tmp = (y * i) + (a + (b * math.log(c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 2.1e+84) tmp = Float64(Float64(y * i) + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 2.1e+84) tmp = (y * i) + (z + (log(c) * (b - 0.5))); else tmp = (y * i) + (a + (b * log(c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 2.1e+84], N[(N[(y * i), $MachinePrecision] + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.1 \cdot 10^{+84}:\\
\;\;\;\;y \cdot i + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + b \cdot \log c\right)\\
\end{array}
\end{array}
if a < 2.10000000000000019e84Initial program 99.8%
Taylor expanded in t around 0 80.2%
+-commutative80.2%
log-pow42.2%
associate-+r+42.2%
log-pow80.2%
fma-udef80.2%
Simplified80.2%
Taylor expanded in z around inf 58.1%
if 2.10000000000000019e84 < a Initial program 99.9%
Taylor expanded in a around inf 73.7%
Taylor expanded in b around inf 73.7%
*-commutative73.7%
Simplified73.7%
Final simplification61.2%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* b (log c)) (+ a (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((b * log(c)) + (a + (z + t)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + ((b * log(c)) + (a + (z + t)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((b * Math.log(c)) + (a + (z + t)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((b * math.log(c)) + (a + (z + t)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(b * log(c)) + Float64(a + Float64(z + t)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((b * log(c)) + (a + (z + t))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(b \cdot \log c + \left(a + \left(z + t\right)\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf 98.3%
*-commutative57.4%
Simplified98.3%
Taylor expanded in x around 0 85.7%
Final simplification85.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.4e+190) (+ z (* y i)) (+ (* y i) (+ a (* b (log c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.4e+190) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a + (b * log(c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-2.4d+190)) then
tmp = z + (y * i)
else
tmp = (y * i) + (a + (b * log(c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.4e+190) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a + (b * Math.log(c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.4e+190: tmp = z + (y * i) else: tmp = (y * i) + (a + (b * math.log(c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.4e+190) tmp = Float64(z + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -2.4e+190) tmp = z + (y * i); else tmp = (y * i) + (a + (b * log(c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.4e+190], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+190}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + b \cdot \log c\right)\\
\end{array}
\end{array}
if z < -2.3999999999999999e190Initial program 100.0%
Taylor expanded in t around 0 91.0%
+-commutative91.0%
log-pow47.4%
associate-+r+47.4%
log-pow91.0%
fma-udef91.0%
Simplified91.0%
Taylor expanded in z around inf 84.2%
Taylor expanded in z around inf 76.9%
if -2.3999999999999999e190 < z Initial program 99.8%
Taylor expanded in a around inf 60.9%
Taylor expanded in b around inf 59.2%
*-commutative59.2%
Simplified59.2%
Final simplification61.2%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* b (log c)))) (if (<= a 2.1e+84) (+ (* y i) (+ z t_1)) (+ (* y i) (+ a t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b * log(c);
double tmp;
if (a <= 2.1e+84) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = b * log(c)
if (a <= 2.1d+84) then
tmp = (y * i) + (z + t_1)
else
tmp = (y * i) + (a + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b * Math.log(c);
double tmp;
if (a <= 2.1e+84) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) tmp = 0 if a <= 2.1e+84: tmp = (y * i) + (z + t_1) else: tmp = (y * i) + (a + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) tmp = 0.0 if (a <= 2.1e+84) tmp = Float64(Float64(y * i) + Float64(z + t_1)); else tmp = Float64(Float64(y * i) + Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); tmp = 0.0; if (a <= 2.1e+84) tmp = (y * i) + (z + t_1); else tmp = (y * i) + (a + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.1e+84], N[(N[(y * i), $MachinePrecision] + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
\mathbf{if}\;a \leq 2.1 \cdot 10^{+84}:\\
\;\;\;\;y \cdot i + \left(z + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t_1\right)\\
\end{array}
\end{array}
if a < 2.10000000000000019e84Initial program 99.8%
Taylor expanded in t around 0 80.2%
+-commutative80.2%
log-pow42.2%
associate-+r+42.2%
log-pow80.2%
fma-udef80.2%
Simplified80.2%
Taylor expanded in z around inf 58.1%
Taylor expanded in b around inf 56.2%
*-commutative53.3%
Simplified56.2%
if 2.10000000000000019e84 < a Initial program 99.9%
Taylor expanded in a around inf 73.7%
Taylor expanded in b around inf 73.7%
*-commutative73.7%
Simplified73.7%
Final simplification59.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 2.1e+84) (+ z (* y i)) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.1e+84) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 2.1d+84) then
tmp = z + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.1e+84) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 2.1e+84: tmp = z + (y * i) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 2.1e+84) tmp = Float64(z + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 2.1e+84) tmp = z + (y * i); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 2.1e+84], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.1 \cdot 10^{+84}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 2.10000000000000019e84Initial program 99.8%
Taylor expanded in t around 0 80.2%
+-commutative80.2%
log-pow42.2%
associate-+r+42.2%
log-pow80.2%
fma-udef80.2%
Simplified80.2%
Taylor expanded in z around inf 58.1%
Taylor expanded in z around inf 41.7%
if 2.10000000000000019e84 < a Initial program 99.9%
Taylor expanded in a around inf 73.7%
sub-neg73.7%
metadata-eval73.7%
*-commutative73.7%
flip-+54.0%
associate-*r/54.0%
fma-neg54.0%
metadata-eval54.0%
metadata-eval54.0%
sub-neg54.0%
metadata-eval54.0%
Applied egg-rr54.0%
associate-/l*54.0%
Simplified54.0%
Taylor expanded in a around inf 62.9%
Final simplification46.0%
(FPCore (x y z t a b c i) :precision binary64 (+ a (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + (y * i);
}
def code(x, y, z, t, a, b, c, i): return a + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(a + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a + y \cdot i
\end{array}
Initial program 99.9%
Taylor expanded in a around inf 59.0%
sub-neg59.0%
metadata-eval59.0%
*-commutative59.0%
flip-+46.0%
associate-*r/45.7%
fma-neg45.7%
metadata-eval45.7%
metadata-eval45.7%
sub-neg45.7%
metadata-eval45.7%
Applied egg-rr45.7%
associate-/l*46.0%
Simplified46.0%
Taylor expanded in a around inf 43.8%
Final simplification43.8%
(FPCore (x y z t a b c i) :precision binary64 (* y i))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return y * i;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = y * i
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return y * i;
}
def code(x, y, z, t, a, b, c, i): return y * i
function code(x, y, z, t, a, b, c, i) return Float64(y * i) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = y * i; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i
\end{array}
Initial program 99.9%
Taylor expanded in t around 0 81.7%
+-commutative81.7%
log-pow45.1%
associate-+r+45.1%
log-pow81.7%
fma-udef81.7%
Simplified81.7%
Taylor expanded in y around inf 27.2%
*-commutative27.2%
Simplified27.2%
Final simplification27.2%
herbie shell --seed 2023310
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
:precision binary64
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))