
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * 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 * y) + (z * t)) + (a * b)) + (c * 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 * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i): return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((x * y) + (z * t)) + (a * b)) + (c * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * 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 * y) + (z * t)) + (a * b)) + (c * 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 * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i): return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((x * y) + (z * t)) + (a * b)) + (c * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma c i (fma x y (fma z t (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(c, i, fma(x, y, fma(z, t, (a * b))));
}
function code(x, y, z, t, a, b, c, i) return fma(c, i, fma(x, y, fma(z, t, Float64(a * b)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(c * i + N[(x * y + N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(c, i, \mathsf{fma}\left(x, y, \mathsf{fma}\left(z, t, a \cdot b\right)\right)\right)
\end{array}
Initial program 97.3%
+-commutative97.3%
fma-define98.4%
associate-+l+98.4%
fma-define99.2%
fma-define99.6%
Simplified99.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (+ (* c i) (* z t)))))
(if (<= (* c i) -2e-7)
t_1
(if (<= (* c i) 5e+19)
(+ (* a b) (+ (* x y) (* z t)))
(if (<= (* c i) 1e+62)
t_1
(* c (+ i (+ (* a (/ b c)) (* x (/ y c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + ((c * i) + (z * t));
double tmp;
if ((c * i) <= -2e-7) {
tmp = t_1;
} else if ((c * i) <= 5e+19) {
tmp = (a * b) + ((x * y) + (z * t));
} else if ((c * i) <= 1e+62) {
tmp = t_1;
} else {
tmp = c * (i + ((a * (b / c)) + (x * (y / 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) :: t_1
real(8) :: tmp
t_1 = (a * b) + ((c * i) + (z * t))
if ((c * i) <= (-2d-7)) then
tmp = t_1
else if ((c * i) <= 5d+19) then
tmp = (a * b) + ((x * y) + (z * t))
else if ((c * i) <= 1d+62) then
tmp = t_1
else
tmp = c * (i + ((a * (b / c)) + (x * (y / 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 t_1 = (a * b) + ((c * i) + (z * t));
double tmp;
if ((c * i) <= -2e-7) {
tmp = t_1;
} else if ((c * i) <= 5e+19) {
tmp = (a * b) + ((x * y) + (z * t));
} else if ((c * i) <= 1e+62) {
tmp = t_1;
} else {
tmp = c * (i + ((a * (b / c)) + (x * (y / c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + ((c * i) + (z * t)) tmp = 0 if (c * i) <= -2e-7: tmp = t_1 elif (c * i) <= 5e+19: tmp = (a * b) + ((x * y) + (z * t)) elif (c * i) <= 1e+62: tmp = t_1 else: tmp = c * (i + ((a * (b / c)) + (x * (y / c)))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(Float64(c * i) + Float64(z * t))) tmp = 0.0 if (Float64(c * i) <= -2e-7) tmp = t_1; elseif (Float64(c * i) <= 5e+19) tmp = Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))); elseif (Float64(c * i) <= 1e+62) tmp = t_1; else tmp = Float64(c * Float64(i + Float64(Float64(a * Float64(b / c)) + Float64(x * Float64(y / c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + ((c * i) + (z * t)); tmp = 0.0; if ((c * i) <= -2e-7) tmp = t_1; elseif ((c * i) <= 5e+19) tmp = (a * b) + ((x * y) + (z * t)); elseif ((c * i) <= 1e+62) tmp = t_1; else tmp = c * (i + ((a * (b / c)) + (x * (y / c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(c * i), $MachinePrecision], -2e-7], t$95$1, If[LessEqual[N[(c * i), $MachinePrecision], 5e+19], N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 1e+62], t$95$1, N[(c * N[(i + N[(N[(a * N[(b / c), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + \left(c \cdot i + z \cdot t\right)\\
\mathbf{if}\;c \cdot i \leq -2 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \cdot i \leq 5 \cdot 10^{+19}:\\
\;\;\;\;a \cdot b + \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;c \cdot i \leq 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i + \left(a \cdot \frac{b}{c} + x \cdot \frac{y}{c}\right)\right)\\
\end{array}
\end{array}
if (*.f64 c i) < -1.9999999999999999e-7 or 5e19 < (*.f64 c i) < 1.00000000000000004e62Initial program 95.8%
+-commutative95.8%
fma-define98.6%
associate-+l+98.6%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 91.7%
if -1.9999999999999999e-7 < (*.f64 c i) < 5e19Initial program 97.7%
+-commutative97.7%
fma-define97.7%
associate-+l+97.7%
fma-define98.5%
fma-define99.2%
Simplified99.2%
Taylor expanded in c around 0 96.5%
if 1.00000000000000004e62 < (*.f64 c i) Initial program 98.0%
associate-+l+98.0%
fma-define98.0%
Simplified98.0%
Taylor expanded in x around inf 92.6%
Taylor expanded in c around inf 96.3%
associate-/l*96.3%
associate-/l*96.3%
Simplified96.3%
Final simplification95.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* x y) -1e+189)
(+ (* x y) (* c i))
(if (<= (* x y) -4e-31)
(+ (* a b) (* z t))
(if (<= (* x y) -2e-220)
(+ (* c i) (* z t))
(if (<= (* x y) 3e+51) (+ (* a b) (* c i)) (+ (* x y) (* z t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x * y) <= -1e+189) {
tmp = (x * y) + (c * i);
} else if ((x * y) <= -4e-31) {
tmp = (a * b) + (z * t);
} else if ((x * y) <= -2e-220) {
tmp = (c * i) + (z * t);
} else if ((x * y) <= 3e+51) {
tmp = (a * b) + (c * i);
} else {
tmp = (x * y) + (z * t);
}
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 ((x * y) <= (-1d+189)) then
tmp = (x * y) + (c * i)
else if ((x * y) <= (-4d-31)) then
tmp = (a * b) + (z * t)
else if ((x * y) <= (-2d-220)) then
tmp = (c * i) + (z * t)
else if ((x * y) <= 3d+51) then
tmp = (a * b) + (c * i)
else
tmp = (x * y) + (z * t)
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 ((x * y) <= -1e+189) {
tmp = (x * y) + (c * i);
} else if ((x * y) <= -4e-31) {
tmp = (a * b) + (z * t);
} else if ((x * y) <= -2e-220) {
tmp = (c * i) + (z * t);
} else if ((x * y) <= 3e+51) {
tmp = (a * b) + (c * i);
} else {
tmp = (x * y) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x * y) <= -1e+189: tmp = (x * y) + (c * i) elif (x * y) <= -4e-31: tmp = (a * b) + (z * t) elif (x * y) <= -2e-220: tmp = (c * i) + (z * t) elif (x * y) <= 3e+51: tmp = (a * b) + (c * i) else: tmp = (x * y) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(x * y) <= -1e+189) tmp = Float64(Float64(x * y) + Float64(c * i)); elseif (Float64(x * y) <= -4e-31) tmp = Float64(Float64(a * b) + Float64(z * t)); elseif (Float64(x * y) <= -2e-220) tmp = Float64(Float64(c * i) + Float64(z * t)); elseif (Float64(x * y) <= 3e+51) tmp = Float64(Float64(a * b) + Float64(c * i)); else tmp = Float64(Float64(x * y) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x * y) <= -1e+189) tmp = (x * y) + (c * i); elseif ((x * y) <= -4e-31) tmp = (a * b) + (z * t); elseif ((x * y) <= -2e-220) tmp = (c * i) + (z * t); elseif ((x * y) <= 3e+51) tmp = (a * b) + (c * i); else tmp = (x * y) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(x * y), $MachinePrecision], -1e+189], N[(N[(x * y), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -4e-31], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -2e-220], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 3e+51], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{+189}:\\
\;\;\;\;x \cdot y + c \cdot i\\
\mathbf{elif}\;x \cdot y \leq -4 \cdot 10^{-31}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{elif}\;x \cdot y \leq -2 \cdot 10^{-220}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\mathbf{elif}\;x \cdot y \leq 3 \cdot 10^{+51}:\\
\;\;\;\;a \cdot b + c \cdot i\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -1e189Initial program 89.7%
associate-+l+89.7%
fma-define89.7%
Simplified89.7%
Taylor expanded in x around inf 89.7%
Taylor expanded in a around 0 80.7%
if -1e189 < (*.f64 x y) < -4e-31Initial program 100.0%
+-commutative100.0%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 85.3%
Taylor expanded in c around 0 69.4%
if -4e-31 < (*.f64 x y) < -1.99999999999999998e-220Initial program 100.0%
+-commutative100.0%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
Taylor expanded in a around 0 87.0%
if -1.99999999999999998e-220 < (*.f64 x y) < 3e51Initial program 99.1%
+-commutative99.1%
fma-define99.1%
associate-+l+99.1%
fma-define99.1%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 94.3%
Taylor expanded in c around inf 73.7%
if 3e51 < (*.f64 x y) Initial program 93.8%
+-commutative93.8%
fma-define97.9%
associate-+l+97.9%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in c around 0 90.3%
Taylor expanded in a around 0 84.3%
Final simplification77.3%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (* c i) (+ (* a b) (+ (* x y) (* z t)))))) (if (<= t_1 INFINITY) t_1 (+ (* a b) (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (c * i) + ((a * b) + ((x * y) + (z * t)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (a * b) + (x * y);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (c * i) + ((a * b) + ((x * y) + (z * t)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (a * b) + (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (c * i) + ((a * b) + ((x * y) + (z * t))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (a * b) + (x * y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(c * i) + Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(a * b) + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (c * i) + ((a * b) + ((x * y) + (z * t))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (a * b) + (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(c * i), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot i + \left(a \cdot b + \left(x \cdot y + z \cdot t\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) Initial program 0.0%
+-commutative0.0%
fma-define42.9%
associate-+l+42.9%
fma-define71.4%
fma-define85.7%
Simplified85.7%
Taylor expanded in c around 0 42.9%
Taylor expanded in t around 0 71.4%
Final simplification99.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (+ (* c i) (* z t)))))
(if (<= (* c i) -2e-7)
t_1
(if (<= (* c i) 5e+19)
(+ (* a b) (+ (* x y) (* z t)))
(if (<= (* c i) 1e+62) t_1 (+ (* x y) (+ (* a b) (* c i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + ((c * i) + (z * t));
double tmp;
if ((c * i) <= -2e-7) {
tmp = t_1;
} else if ((c * i) <= 5e+19) {
tmp = (a * b) + ((x * y) + (z * t));
} else if ((c * i) <= 1e+62) {
tmp = t_1;
} else {
tmp = (x * y) + ((a * b) + (c * 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) :: tmp
t_1 = (a * b) + ((c * i) + (z * t))
if ((c * i) <= (-2d-7)) then
tmp = t_1
else if ((c * i) <= 5d+19) then
tmp = (a * b) + ((x * y) + (z * t))
else if ((c * i) <= 1d+62) then
tmp = t_1
else
tmp = (x * y) + ((a * b) + (c * 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 = (a * b) + ((c * i) + (z * t));
double tmp;
if ((c * i) <= -2e-7) {
tmp = t_1;
} else if ((c * i) <= 5e+19) {
tmp = (a * b) + ((x * y) + (z * t));
} else if ((c * i) <= 1e+62) {
tmp = t_1;
} else {
tmp = (x * y) + ((a * b) + (c * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + ((c * i) + (z * t)) tmp = 0 if (c * i) <= -2e-7: tmp = t_1 elif (c * i) <= 5e+19: tmp = (a * b) + ((x * y) + (z * t)) elif (c * i) <= 1e+62: tmp = t_1 else: tmp = (x * y) + ((a * b) + (c * i)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(Float64(c * i) + Float64(z * t))) tmp = 0.0 if (Float64(c * i) <= -2e-7) tmp = t_1; elseif (Float64(c * i) <= 5e+19) tmp = Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))); elseif (Float64(c * i) <= 1e+62) tmp = t_1; else tmp = Float64(Float64(x * y) + Float64(Float64(a * b) + Float64(c * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + ((c * i) + (z * t)); tmp = 0.0; if ((c * i) <= -2e-7) tmp = t_1; elseif ((c * i) <= 5e+19) tmp = (a * b) + ((x * y) + (z * t)); elseif ((c * i) <= 1e+62) tmp = t_1; else tmp = (x * y) + ((a * b) + (c * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(c * i), $MachinePrecision], -2e-7], t$95$1, If[LessEqual[N[(c * i), $MachinePrecision], 5e+19], N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 1e+62], t$95$1, N[(N[(x * y), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + \left(c \cdot i + z \cdot t\right)\\
\mathbf{if}\;c \cdot i \leq -2 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \cdot i \leq 5 \cdot 10^{+19}:\\
\;\;\;\;a \cdot b + \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;c \cdot i \leq 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + \left(a \cdot b + c \cdot i\right)\\
\end{array}
\end{array}
if (*.f64 c i) < -1.9999999999999999e-7 or 5e19 < (*.f64 c i) < 1.00000000000000004e62Initial program 95.8%
+-commutative95.8%
fma-define98.6%
associate-+l+98.6%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 91.7%
if -1.9999999999999999e-7 < (*.f64 c i) < 5e19Initial program 97.7%
+-commutative97.7%
fma-define97.7%
associate-+l+97.7%
fma-define98.5%
fma-define99.2%
Simplified99.2%
Taylor expanded in c around 0 96.5%
if 1.00000000000000004e62 < (*.f64 c i) Initial program 98.0%
associate-+l+98.0%
fma-define98.0%
Simplified98.0%
Taylor expanded in x around inf 92.6%
Final simplification94.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (+ (* c i) (* z t)))))
(if (<= (* c i) -2e-7)
t_1
(if (<= (* c i) 5e+19)
(+ (* a b) (+ (* x y) (* z t)))
(if (<= (* c i) 9.5e+133) t_1 (* c (+ i (* x (/ y c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + ((c * i) + (z * t));
double tmp;
if ((c * i) <= -2e-7) {
tmp = t_1;
} else if ((c * i) <= 5e+19) {
tmp = (a * b) + ((x * y) + (z * t));
} else if ((c * i) <= 9.5e+133) {
tmp = t_1;
} else {
tmp = c * (i + (x * (y / 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) :: t_1
real(8) :: tmp
t_1 = (a * b) + ((c * i) + (z * t))
if ((c * i) <= (-2d-7)) then
tmp = t_1
else if ((c * i) <= 5d+19) then
tmp = (a * b) + ((x * y) + (z * t))
else if ((c * i) <= 9.5d+133) then
tmp = t_1
else
tmp = c * (i + (x * (y / 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 t_1 = (a * b) + ((c * i) + (z * t));
double tmp;
if ((c * i) <= -2e-7) {
tmp = t_1;
} else if ((c * i) <= 5e+19) {
tmp = (a * b) + ((x * y) + (z * t));
} else if ((c * i) <= 9.5e+133) {
tmp = t_1;
} else {
tmp = c * (i + (x * (y / c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + ((c * i) + (z * t)) tmp = 0 if (c * i) <= -2e-7: tmp = t_1 elif (c * i) <= 5e+19: tmp = (a * b) + ((x * y) + (z * t)) elif (c * i) <= 9.5e+133: tmp = t_1 else: tmp = c * (i + (x * (y / c))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(Float64(c * i) + Float64(z * t))) tmp = 0.0 if (Float64(c * i) <= -2e-7) tmp = t_1; elseif (Float64(c * i) <= 5e+19) tmp = Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))); elseif (Float64(c * i) <= 9.5e+133) tmp = t_1; else tmp = Float64(c * Float64(i + Float64(x * Float64(y / c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + ((c * i) + (z * t)); tmp = 0.0; if ((c * i) <= -2e-7) tmp = t_1; elseif ((c * i) <= 5e+19) tmp = (a * b) + ((x * y) + (z * t)); elseif ((c * i) <= 9.5e+133) tmp = t_1; else tmp = c * (i + (x * (y / c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(c * i), $MachinePrecision], -2e-7], t$95$1, If[LessEqual[N[(c * i), $MachinePrecision], 5e+19], N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 9.5e+133], t$95$1, N[(c * N[(i + N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + \left(c \cdot i + z \cdot t\right)\\
\mathbf{if}\;c \cdot i \leq -2 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \cdot i \leq 5 \cdot 10^{+19}:\\
\;\;\;\;a \cdot b + \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;c \cdot i \leq 9.5 \cdot 10^{+133}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i + x \cdot \frac{y}{c}\right)\\
\end{array}
\end{array}
if (*.f64 c i) < -1.9999999999999999e-7 or 5e19 < (*.f64 c i) < 9.49999999999999996e133Initial program 96.5%
+-commutative96.5%
fma-define98.8%
associate-+l+98.8%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 89.2%
if -1.9999999999999999e-7 < (*.f64 c i) < 5e19Initial program 97.7%
+-commutative97.7%
fma-define97.7%
associate-+l+97.7%
fma-define98.5%
fma-define99.2%
Simplified99.2%
Taylor expanded in c around 0 96.5%
if 9.49999999999999996e133 < (*.f64 c i) Initial program 97.4%
associate-+l+97.4%
fma-define97.4%
Simplified97.4%
Taylor expanded in x around inf 97.4%
Taylor expanded in c around inf 100.0%
associate-/l*100.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around 0 92.7%
associate-*r/92.7%
Simplified92.7%
Final simplification93.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* c i) -2e-7)
(+ (* c i) (* z t))
(if (<= (* c i) 5e-135)
(+ (* a b) (* x y))
(if (<= (* c i) 1e+62) (+ (* a b) (* z t)) (* c (+ i (* x (/ y c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c * i) <= -2e-7) {
tmp = (c * i) + (z * t);
} else if ((c * i) <= 5e-135) {
tmp = (a * b) + (x * y);
} else if ((c * i) <= 1e+62) {
tmp = (a * b) + (z * t);
} else {
tmp = c * (i + (x * (y / 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 ((c * i) <= (-2d-7)) then
tmp = (c * i) + (z * t)
else if ((c * i) <= 5d-135) then
tmp = (a * b) + (x * y)
else if ((c * i) <= 1d+62) then
tmp = (a * b) + (z * t)
else
tmp = c * (i + (x * (y / 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 ((c * i) <= -2e-7) {
tmp = (c * i) + (z * t);
} else if ((c * i) <= 5e-135) {
tmp = (a * b) + (x * y);
} else if ((c * i) <= 1e+62) {
tmp = (a * b) + (z * t);
} else {
tmp = c * (i + (x * (y / c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c * i) <= -2e-7: tmp = (c * i) + (z * t) elif (c * i) <= 5e-135: tmp = (a * b) + (x * y) elif (c * i) <= 1e+62: tmp = (a * b) + (z * t) else: tmp = c * (i + (x * (y / c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(c * i) <= -2e-7) tmp = Float64(Float64(c * i) + Float64(z * t)); elseif (Float64(c * i) <= 5e-135) tmp = Float64(Float64(a * b) + Float64(x * y)); elseif (Float64(c * i) <= 1e+62) tmp = Float64(Float64(a * b) + Float64(z * t)); else tmp = Float64(c * Float64(i + Float64(x * Float64(y / c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c * i) <= -2e-7) tmp = (c * i) + (z * t); elseif ((c * i) <= 5e-135) tmp = (a * b) + (x * y); elseif ((c * i) <= 1e+62) tmp = (a * b) + (z * t); else tmp = c * (i + (x * (y / c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(c * i), $MachinePrecision], -2e-7], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 5e-135], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 1e+62], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(c * N[(i + N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -2 \cdot 10^{-7}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\mathbf{elif}\;c \cdot i \leq 5 \cdot 10^{-135}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{elif}\;c \cdot i \leq 10^{+62}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i + x \cdot \frac{y}{c}\right)\\
\end{array}
\end{array}
if (*.f64 c i) < -1.9999999999999999e-7Initial program 94.8%
+-commutative94.8%
fma-define98.3%
associate-+l+98.3%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 89.7%
Taylor expanded in a around 0 76.1%
if -1.9999999999999999e-7 < (*.f64 c i) < 5.0000000000000002e-135Initial program 98.1%
+-commutative98.1%
fma-define98.1%
associate-+l+98.1%
fma-define98.1%
fma-define99.0%
Simplified99.0%
Taylor expanded in c around 0 96.5%
Taylor expanded in t around 0 72.6%
if 5.0000000000000002e-135 < (*.f64 c i) < 1.00000000000000004e62Initial program 97.7%
+-commutative97.7%
fma-define97.7%
associate-+l+97.7%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 86.2%
Taylor expanded in c around 0 71.9%
if 1.00000000000000004e62 < (*.f64 c i) Initial program 98.0%
associate-+l+98.0%
fma-define98.0%
Simplified98.0%
Taylor expanded in x around inf 92.6%
Taylor expanded in c around inf 96.3%
associate-/l*96.3%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in a around 0 85.6%
associate-*r/85.6%
Simplified85.6%
Final simplification75.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* c i) -2e-7)
(+ (* c i) (* z t))
(if (<= (* c i) 5e-135)
(+ (* a b) (* x y))
(if (<= (* c i) 1e+62) (+ (* a b) (* z t)) (+ (* x y) (* c i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c * i) <= -2e-7) {
tmp = (c * i) + (z * t);
} else if ((c * i) <= 5e-135) {
tmp = (a * b) + (x * y);
} else if ((c * i) <= 1e+62) {
tmp = (a * b) + (z * t);
} else {
tmp = (x * y) + (c * 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 ((c * i) <= (-2d-7)) then
tmp = (c * i) + (z * t)
else if ((c * i) <= 5d-135) then
tmp = (a * b) + (x * y)
else if ((c * i) <= 1d+62) then
tmp = (a * b) + (z * t)
else
tmp = (x * y) + (c * 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 ((c * i) <= -2e-7) {
tmp = (c * i) + (z * t);
} else if ((c * i) <= 5e-135) {
tmp = (a * b) + (x * y);
} else if ((c * i) <= 1e+62) {
tmp = (a * b) + (z * t);
} else {
tmp = (x * y) + (c * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c * i) <= -2e-7: tmp = (c * i) + (z * t) elif (c * i) <= 5e-135: tmp = (a * b) + (x * y) elif (c * i) <= 1e+62: tmp = (a * b) + (z * t) else: tmp = (x * y) + (c * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(c * i) <= -2e-7) tmp = Float64(Float64(c * i) + Float64(z * t)); elseif (Float64(c * i) <= 5e-135) tmp = Float64(Float64(a * b) + Float64(x * y)); elseif (Float64(c * i) <= 1e+62) tmp = Float64(Float64(a * b) + Float64(z * t)); else tmp = Float64(Float64(x * y) + Float64(c * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c * i) <= -2e-7) tmp = (c * i) + (z * t); elseif ((c * i) <= 5e-135) tmp = (a * b) + (x * y); elseif ((c * i) <= 1e+62) tmp = (a * b) + (z * t); else tmp = (x * y) + (c * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(c * i), $MachinePrecision], -2e-7], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 5e-135], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 1e+62], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -2 \cdot 10^{-7}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\mathbf{elif}\;c \cdot i \leq 5 \cdot 10^{-135}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{elif}\;c \cdot i \leq 10^{+62}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + c \cdot i\\
\end{array}
\end{array}
if (*.f64 c i) < -1.9999999999999999e-7Initial program 94.8%
+-commutative94.8%
fma-define98.3%
associate-+l+98.3%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 89.7%
Taylor expanded in a around 0 76.1%
if -1.9999999999999999e-7 < (*.f64 c i) < 5.0000000000000002e-135Initial program 98.1%
+-commutative98.1%
fma-define98.1%
associate-+l+98.1%
fma-define98.1%
fma-define99.0%
Simplified99.0%
Taylor expanded in c around 0 96.5%
Taylor expanded in t around 0 72.6%
if 5.0000000000000002e-135 < (*.f64 c i) < 1.00000000000000004e62Initial program 97.7%
+-commutative97.7%
fma-define97.7%
associate-+l+97.7%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 86.2%
Taylor expanded in c around 0 71.9%
if 1.00000000000000004e62 < (*.f64 c i) Initial program 98.0%
associate-+l+98.0%
fma-define98.0%
Simplified98.0%
Taylor expanded in x around inf 92.6%
Taylor expanded in a around 0 81.9%
Final simplification75.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (* c i))))
(if (<= t -9e-51)
(+ (* a b) (* z t))
(if (<= t 5.7e-254)
t_1
(if (<= t 1.7e-66)
(+ (* a b) (* x y))
(if (<= t 6.8e+90) t_1 (+ (* c i) (* z t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + (c * i);
double tmp;
if (t <= -9e-51) {
tmp = (a * b) + (z * t);
} else if (t <= 5.7e-254) {
tmp = t_1;
} else if (t <= 1.7e-66) {
tmp = (a * b) + (x * y);
} else if (t <= 6.8e+90) {
tmp = t_1;
} else {
tmp = (c * i) + (z * t);
}
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 = (a * b) + (c * i)
if (t <= (-9d-51)) then
tmp = (a * b) + (z * t)
else if (t <= 5.7d-254) then
tmp = t_1
else if (t <= 1.7d-66) then
tmp = (a * b) + (x * y)
else if (t <= 6.8d+90) then
tmp = t_1
else
tmp = (c * i) + (z * t)
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 = (a * b) + (c * i);
double tmp;
if (t <= -9e-51) {
tmp = (a * b) + (z * t);
} else if (t <= 5.7e-254) {
tmp = t_1;
} else if (t <= 1.7e-66) {
tmp = (a * b) + (x * y);
} else if (t <= 6.8e+90) {
tmp = t_1;
} else {
tmp = (c * i) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + (c * i) tmp = 0 if t <= -9e-51: tmp = (a * b) + (z * t) elif t <= 5.7e-254: tmp = t_1 elif t <= 1.7e-66: tmp = (a * b) + (x * y) elif t <= 6.8e+90: tmp = t_1 else: tmp = (c * i) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(c * i)) tmp = 0.0 if (t <= -9e-51) tmp = Float64(Float64(a * b) + Float64(z * t)); elseif (t <= 5.7e-254) tmp = t_1; elseif (t <= 1.7e-66) tmp = Float64(Float64(a * b) + Float64(x * y)); elseif (t <= 6.8e+90) tmp = t_1; else tmp = Float64(Float64(c * i) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + (c * i); tmp = 0.0; if (t <= -9e-51) tmp = (a * b) + (z * t); elseif (t <= 5.7e-254) tmp = t_1; elseif (t <= 1.7e-66) tmp = (a * b) + (x * y); elseif (t <= 6.8e+90) tmp = t_1; else tmp = (c * i) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e-51], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.7e-254], t$95$1, If[LessEqual[t, 1.7e-66], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e+90], t$95$1, N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + c \cdot i\\
\mathbf{if}\;t \leq -9 \cdot 10^{-51}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-66}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\end{array}
\end{array}
if t < -8.99999999999999948e-51Initial program 95.7%
+-commutative95.7%
fma-define95.7%
associate-+l+95.7%
fma-define98.6%
fma-define98.6%
Simplified98.6%
Taylor expanded in x around 0 87.3%
Taylor expanded in c around 0 70.2%
if -8.99999999999999948e-51 < t < 5.7000000000000002e-254 or 1.69999999999999999e-66 < t < 6.80000000000000036e90Initial program 97.7%
+-commutative97.7%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 70.6%
Taylor expanded in c around inf 65.0%
if 5.7000000000000002e-254 < t < 1.69999999999999999e-66Initial program 100.0%
+-commutative100.0%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in c around 0 78.4%
Taylor expanded in t around 0 73.8%
if 6.80000000000000036e90 < t Initial program 95.6%
+-commutative95.6%
fma-define97.8%
associate-+l+97.8%
fma-define97.8%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 84.8%
Taylor expanded in a around 0 67.6%
Final simplification68.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* x y) -2e+189)
(+ (* a b) (* x y))
(if (<= (* x y) 5e+68)
(+ (* a b) (+ (* c i) (* z t)))
(+ (* x y) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x * y) <= -2e+189) {
tmp = (a * b) + (x * y);
} else if ((x * y) <= 5e+68) {
tmp = (a * b) + ((c * i) + (z * t));
} else {
tmp = (x * y) + (z * t);
}
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 ((x * y) <= (-2d+189)) then
tmp = (a * b) + (x * y)
else if ((x * y) <= 5d+68) then
tmp = (a * b) + ((c * i) + (z * t))
else
tmp = (x * y) + (z * t)
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 ((x * y) <= -2e+189) {
tmp = (a * b) + (x * y);
} else if ((x * y) <= 5e+68) {
tmp = (a * b) + ((c * i) + (z * t));
} else {
tmp = (x * y) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x * y) <= -2e+189: tmp = (a * b) + (x * y) elif (x * y) <= 5e+68: tmp = (a * b) + ((c * i) + (z * t)) else: tmp = (x * y) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(x * y) <= -2e+189) tmp = Float64(Float64(a * b) + Float64(x * y)); elseif (Float64(x * y) <= 5e+68) tmp = Float64(Float64(a * b) + Float64(Float64(c * i) + Float64(z * t))); else tmp = Float64(Float64(x * y) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x * y) <= -2e+189) tmp = (a * b) + (x * y); elseif ((x * y) <= 5e+68) tmp = (a * b) + ((c * i) + (z * t)); else tmp = (x * y) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(x * y), $MachinePrecision], -2e+189], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 5e+68], N[(N[(a * b), $MachinePrecision] + N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -2 \cdot 10^{+189}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{elif}\;x \cdot y \leq 5 \cdot 10^{+68}:\\
\;\;\;\;a \cdot b + \left(c \cdot i + z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -2e189Initial program 89.3%
+-commutative89.3%
fma-define92.9%
associate-+l+92.9%
fma-define96.4%
fma-define96.4%
Simplified96.4%
Taylor expanded in c around 0 82.6%
Taylor expanded in t around 0 82.6%
if -2e189 < (*.f64 x y) < 5.0000000000000004e68Initial program 99.5%
+-commutative99.5%
fma-define99.5%
associate-+l+99.5%
fma-define99.5%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 92.8%
if 5.0000000000000004e68 < (*.f64 x y) Initial program 93.3%
+-commutative93.3%
fma-define97.7%
associate-+l+97.7%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in c around 0 89.5%
Taylor expanded in a around 0 85.0%
Final simplification90.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (* z t))))
(if (<= z -6.4e+45)
t_1
(if (<= z -2.8e-200)
(+ (* a b) (* c i))
(if (<= z 4.8e-40) (+ (* a b) (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + (z * t);
double tmp;
if (z <= -6.4e+45) {
tmp = t_1;
} else if (z <= -2.8e-200) {
tmp = (a * b) + (c * i);
} else if (z <= 4.8e-40) {
tmp = (a * b) + (x * y);
} else {
tmp = 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 = (a * b) + (z * t)
if (z <= (-6.4d+45)) then
tmp = t_1
else if (z <= (-2.8d-200)) then
tmp = (a * b) + (c * i)
else if (z <= 4.8d-40) then
tmp = (a * b) + (x * y)
else
tmp = 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 = (a * b) + (z * t);
double tmp;
if (z <= -6.4e+45) {
tmp = t_1;
} else if (z <= -2.8e-200) {
tmp = (a * b) + (c * i);
} else if (z <= 4.8e-40) {
tmp = (a * b) + (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + (z * t) tmp = 0 if z <= -6.4e+45: tmp = t_1 elif z <= -2.8e-200: tmp = (a * b) + (c * i) elif z <= 4.8e-40: tmp = (a * b) + (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(z * t)) tmp = 0.0 if (z <= -6.4e+45) tmp = t_1; elseif (z <= -2.8e-200) tmp = Float64(Float64(a * b) + Float64(c * i)); elseif (z <= 4.8e-40) tmp = Float64(Float64(a * b) + Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + (z * t); tmp = 0.0; if (z <= -6.4e+45) tmp = t_1; elseif (z <= -2.8e-200) tmp = (a * b) + (c * i); elseif (z <= 4.8e-40) tmp = (a * b) + (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.4e+45], t$95$1, If[LessEqual[z, -2.8e-200], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-40], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + z \cdot t\\
\mathbf{if}\;z \leq -6.4 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-200}:\\
\;\;\;\;a \cdot b + c \cdot i\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-40}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.4000000000000006e45 or 4.79999999999999982e-40 < z Initial program 96.1%
+-commutative96.1%
fma-define96.9%
associate-+l+96.9%
fma-define98.4%
fma-define99.2%
Simplified99.2%
Taylor expanded in x around 0 81.8%
Taylor expanded in c around 0 62.1%
if -6.4000000000000006e45 < z < -2.80000000000000007e-200Initial program 100.0%
+-commutative100.0%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 77.3%
Taylor expanded in c around inf 64.3%
if -2.80000000000000007e-200 < z < 4.79999999999999982e-40Initial program 97.3%
+-commutative97.3%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in c around 0 73.0%
Taylor expanded in t around 0 67.8%
Final simplification64.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* x y) -2e+189) (not (<= (* x y) 5e+68))) (* x y) (+ (* a b) (* c i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((x * y) <= -2e+189) || !((x * y) <= 5e+68)) {
tmp = x * y;
} else {
tmp = (a * b) + (c * 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 (((x * y) <= (-2d+189)) .or. (.not. ((x * y) <= 5d+68))) then
tmp = x * y
else
tmp = (a * b) + (c * 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 (((x * y) <= -2e+189) || !((x * y) <= 5e+68)) {
tmp = x * y;
} else {
tmp = (a * b) + (c * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((x * y) <= -2e+189) or not ((x * y) <= 5e+68): tmp = x * y else: tmp = (a * b) + (c * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(x * y) <= -2e+189) || !(Float64(x * y) <= 5e+68)) tmp = Float64(x * y); else tmp = Float64(Float64(a * b) + Float64(c * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((x * y) <= -2e+189) || ~(((x * y) <= 5e+68))) tmp = x * y; else tmp = (a * b) + (c * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -2e+189], N[Not[LessEqual[N[(x * y), $MachinePrecision], 5e+68]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -2 \cdot 10^{+189} \lor \neg \left(x \cdot y \leq 5 \cdot 10^{+68}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + c \cdot i\\
\end{array}
\end{array}
if (*.f64 x y) < -2e189 or 5.0000000000000004e68 < (*.f64 x y) Initial program 91.8%
+-commutative91.8%
fma-define95.9%
associate-+l+95.9%
fma-define98.6%
fma-define98.6%
Simplified98.6%
Taylor expanded in c around 0 86.8%
Taylor expanded in t around 0 73.4%
Taylor expanded in a around 0 67.3%
if -2e189 < (*.f64 x y) < 5.0000000000000004e68Initial program 99.5%
+-commutative99.5%
fma-define99.5%
associate-+l+99.5%
fma-define99.5%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 92.8%
Taylor expanded in c around inf 67.0%
Final simplification67.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= t -2.8e-12) (* z t) (if (<= t 6.2e-85) (* a b) (if (<= t 2.1e+90) (* c i) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (t <= -2.8e-12) {
tmp = z * t;
} else if (t <= 6.2e-85) {
tmp = a * b;
} else if (t <= 2.1e+90) {
tmp = c * i;
} else {
tmp = z * t;
}
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 (t <= (-2.8d-12)) then
tmp = z * t
else if (t <= 6.2d-85) then
tmp = a * b
else if (t <= 2.1d+90) then
tmp = c * i
else
tmp = z * t
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 (t <= -2.8e-12) {
tmp = z * t;
} else if (t <= 6.2e-85) {
tmp = a * b;
} else if (t <= 2.1e+90) {
tmp = c * i;
} else {
tmp = z * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if t <= -2.8e-12: tmp = z * t elif t <= 6.2e-85: tmp = a * b elif t <= 2.1e+90: tmp = c * i else: tmp = z * t return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (t <= -2.8e-12) tmp = Float64(z * t); elseif (t <= 6.2e-85) tmp = Float64(a * b); elseif (t <= 2.1e+90) tmp = Float64(c * i); else tmp = Float64(z * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (t <= -2.8e-12) tmp = z * t; elseif (t <= 6.2e-85) tmp = a * b; elseif (t <= 2.1e+90) tmp = c * i; else tmp = z * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[t, -2.8e-12], N[(z * t), $MachinePrecision], If[LessEqual[t, 6.2e-85], N[(a * b), $MachinePrecision], If[LessEqual[t, 2.1e+90], N[(c * i), $MachinePrecision], N[(z * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{-12}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-85}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+90}:\\
\;\;\;\;c \cdot i\\
\mathbf{else}:\\
\;\;\;\;z \cdot t\\
\end{array}
\end{array}
if t < -2.8000000000000002e-12 or 2.09999999999999981e90 < t Initial program 95.3%
+-commutative95.3%
fma-define96.2%
associate-+l+96.2%
fma-define98.1%
fma-define99.1%
Simplified99.1%
Taylor expanded in x around 0 86.0%
Taylor expanded in c around 0 73.9%
Taylor expanded in a around 0 55.7%
if -2.8000000000000002e-12 < t < 6.2000000000000005e-85Initial program 98.3%
+-commutative98.3%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in a around inf 36.4%
if 6.2000000000000005e-85 < t < 2.09999999999999981e90Initial program 100.0%
+-commutative100.0%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in c around inf 44.5%
Final simplification45.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= z -1.55e+48) (not (<= z 8.5e-119))) (+ (* a b) (* z t)) (+ (* a b) (* c i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z <= -1.55e+48) || !(z <= 8.5e-119)) {
tmp = (a * b) + (z * t);
} else {
tmp = (a * b) + (c * 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 <= (-1.55d+48)) .or. (.not. (z <= 8.5d-119))) then
tmp = (a * b) + (z * t)
else
tmp = (a * b) + (c * 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 <= -1.55e+48) || !(z <= 8.5e-119)) {
tmp = (a * b) + (z * t);
} else {
tmp = (a * b) + (c * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (z <= -1.55e+48) or not (z <= 8.5e-119): tmp = (a * b) + (z * t) else: tmp = (a * b) + (c * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((z <= -1.55e+48) || !(z <= 8.5e-119)) tmp = Float64(Float64(a * b) + Float64(z * t)); else tmp = Float64(Float64(a * b) + Float64(c * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((z <= -1.55e+48) || ~((z <= 8.5e-119))) tmp = (a * b) + (z * t); else tmp = (a * b) + (c * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[z, -1.55e+48], N[Not[LessEqual[z, 8.5e-119]], $MachinePrecision]], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+48} \lor \neg \left(z \leq 8.5 \cdot 10^{-119}\right):\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + c \cdot i\\
\end{array}
\end{array}
if z < -1.55000000000000003e48 or 8.49999999999999977e-119 < z Initial program 96.0%
+-commutative96.0%
fma-define97.3%
associate-+l+97.3%
fma-define98.6%
fma-define99.3%
Simplified99.3%
Taylor expanded in x around 0 78.2%
Taylor expanded in c around 0 57.2%
if -1.55000000000000003e48 < z < 8.49999999999999977e-119Initial program 99.1%
+-commutative99.1%
fma-define100.0%
associate-+l+100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 76.1%
Taylor expanded in c around inf 67.0%
Final simplification61.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* c i) -1.5e-7) (not (<= (* c i) 1.15e+20))) (* c i) (* a b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((c * i) <= -1.5e-7) || !((c * i) <= 1.15e+20)) {
tmp = c * i;
} else {
tmp = a * b;
}
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 (((c * i) <= (-1.5d-7)) .or. (.not. ((c * i) <= 1.15d+20))) then
tmp = c * i
else
tmp = a * b
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 (((c * i) <= -1.5e-7) || !((c * i) <= 1.15e+20)) {
tmp = c * i;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((c * i) <= -1.5e-7) or not ((c * i) <= 1.15e+20): tmp = c * i else: tmp = a * b return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(c * i) <= -1.5e-7) || !(Float64(c * i) <= 1.15e+20)) tmp = Float64(c * i); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((c * i) <= -1.5e-7) || ~(((c * i) <= 1.15e+20))) tmp = c * i; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(c * i), $MachinePrecision], -1.5e-7], N[Not[LessEqual[N[(c * i), $MachinePrecision], 1.15e+20]], $MachinePrecision]], N[(c * i), $MachinePrecision], N[(a * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -1.5 \cdot 10^{-7} \lor \neg \left(c \cdot i \leq 1.15 \cdot 10^{+20}\right):\\
\;\;\;\;c \cdot i\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 c i) < -1.4999999999999999e-7 or 1.15e20 < (*.f64 c i) Initial program 96.8%
+-commutative96.8%
fma-define99.2%
associate-+l+99.2%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in c around inf 52.6%
if -1.4999999999999999e-7 < (*.f64 c i) < 1.15e20Initial program 97.7%
+-commutative97.7%
fma-define97.7%
associate-+l+97.7%
fma-define98.5%
fma-define99.2%
Simplified99.2%
Taylor expanded in a around inf 39.0%
Final simplification45.6%
(FPCore (x y z t a b c i) :precision binary64 (* a b))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
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 * b
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
def code(x, y, z, t, a, b, c, i): return a * b
function code(x, y, z, t, a, b, c, i) return Float64(a * b) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a * b; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a * b), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b
\end{array}
Initial program 97.3%
+-commutative97.3%
fma-define98.4%
associate-+l+98.4%
fma-define99.2%
fma-define99.6%
Simplified99.6%
Taylor expanded in a around inf 29.6%
herbie shell --seed 2024163
(FPCore (x y z t a b c i)
:name "Linear.V4:$cdot from linear-1.19.1.3, C"
:precision binary64
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))