
(FPCore (x y z t) :precision binary64 (+ (* x (+ (+ (+ (+ y z) z) y) t)) (* y 5.0)))
double code(double x, double y, double z, double t) {
return (x * ((((y + z) + z) + y) + t)) + (y * 5.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x * ((((y + z) + z) + y) + t)) + (y * 5.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x * ((((y + z) + z) + y) + t)) + (y * 5.0);
}
def code(x, y, z, t): return (x * ((((y + z) + z) + y) + t)) + (y * 5.0)
function code(x, y, z, t) return Float64(Float64(x * Float64(Float64(Float64(Float64(y + z) + z) + y) + t)) + Float64(y * 5.0)) end
function tmp = code(x, y, z, t) tmp = (x * ((((y + z) + z) + y) + t)) + (y * 5.0); end
code[x_, y_, z_, t_] := N[(N[(x * N[(N[(N[(N[(y + z), $MachinePrecision] + z), $MachinePrecision] + y), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + N[(y * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (* x (+ (+ (+ (+ y z) z) y) t)) (* y 5.0)))
double code(double x, double y, double z, double t) {
return (x * ((((y + z) + z) + y) + t)) + (y * 5.0);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x * ((((y + z) + z) + y) + t)) + (y * 5.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x * ((((y + z) + z) + y) + t)) + (y * 5.0);
}
def code(x, y, z, t): return (x * ((((y + z) + z) + y) + t)) + (y * 5.0)
function code(x, y, z, t) return Float64(Float64(x * Float64(Float64(Float64(Float64(y + z) + z) + y) + t)) + Float64(y * 5.0)) end
function tmp = code(x, y, z, t) tmp = (x * ((((y + z) + z) + y) + t)) + (y * 5.0); end
code[x_, y_, z_, t_] := N[(N[(x * N[(N[(N[(N[(y + z), $MachinePrecision] + z), $MachinePrecision] + y), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + N[(y * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
\end{array}
(FPCore (x y z t) :precision binary64 (fma x (+ (+ y (+ z z)) (+ y t)) (* y 5.0)))
double code(double x, double y, double z, double t) {
return fma(x, ((y + (z + z)) + (y + t)), (y * 5.0));
}
function code(x, y, z, t) return fma(x, Float64(Float64(y + Float64(z + z)) + Float64(y + t)), Float64(y * 5.0)) end
code[x_, y_, z_, t_] := N[(x * N[(N[(y + N[(z + z), $MachinePrecision]), $MachinePrecision] + N[(y + t), $MachinePrecision]), $MachinePrecision] + N[(y * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, \left(y + \left(z + z\right)\right) + \left(y + t\right), y \cdot 5\right)
\end{array}
Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
associate-+l+99.9%
Simplified99.9%
(FPCore (x y z t) :precision binary64 (fma x (+ t (* 2.0 (+ y z))) (* y 5.0)))
double code(double x, double y, double z, double t) {
return fma(x, (t + (2.0 * (y + z))), (y * 5.0));
}
function code(x, y, z, t) return fma(x, Float64(t + Float64(2.0 * Float64(y + z))), Float64(y * 5.0)) end
code[x_, y_, z_, t_] := N[(x * N[(t + N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, t + 2 \cdot \left(y + z\right), y \cdot 5\right)
\end{array}
Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(if (<= x -1.15e-60)
(* x (+ t (* z 2.0)))
(if (<= x 0.0062)
(* y 5.0)
(if (<= x 8.2e+21)
(* x (+ t (* y 2.0)))
(if (<= x 3.9e+184) (* x (* 2.0 (+ y z))) (* x (+ z (+ y t))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.15e-60) {
tmp = x * (t + (z * 2.0));
} else if (x <= 0.0062) {
tmp = y * 5.0;
} else if (x <= 8.2e+21) {
tmp = x * (t + (y * 2.0));
} else if (x <= 3.9e+184) {
tmp = x * (2.0 * (y + z));
} else {
tmp = x * (z + (y + t));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.15d-60)) then
tmp = x * (t + (z * 2.0d0))
else if (x <= 0.0062d0) then
tmp = y * 5.0d0
else if (x <= 8.2d+21) then
tmp = x * (t + (y * 2.0d0))
else if (x <= 3.9d+184) then
tmp = x * (2.0d0 * (y + z))
else
tmp = x * (z + (y + t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.15e-60) {
tmp = x * (t + (z * 2.0));
} else if (x <= 0.0062) {
tmp = y * 5.0;
} else if (x <= 8.2e+21) {
tmp = x * (t + (y * 2.0));
} else if (x <= 3.9e+184) {
tmp = x * (2.0 * (y + z));
} else {
tmp = x * (z + (y + t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.15e-60: tmp = x * (t + (z * 2.0)) elif x <= 0.0062: tmp = y * 5.0 elif x <= 8.2e+21: tmp = x * (t + (y * 2.0)) elif x <= 3.9e+184: tmp = x * (2.0 * (y + z)) else: tmp = x * (z + (y + t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.15e-60) tmp = Float64(x * Float64(t + Float64(z * 2.0))); elseif (x <= 0.0062) tmp = Float64(y * 5.0); elseif (x <= 8.2e+21) tmp = Float64(x * Float64(t + Float64(y * 2.0))); elseif (x <= 3.9e+184) tmp = Float64(x * Float64(2.0 * Float64(y + z))); else tmp = Float64(x * Float64(z + Float64(y + t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.15e-60) tmp = x * (t + (z * 2.0)); elseif (x <= 0.0062) tmp = y * 5.0; elseif (x <= 8.2e+21) tmp = x * (t + (y * 2.0)); elseif (x <= 3.9e+184) tmp = x * (2.0 * (y + z)); else tmp = x * (z + (y + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.15e-60], N[(x * N[(t + N[(z * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0062], N[(y * 5.0), $MachinePrecision], If[LessEqual[x, 8.2e+21], N[(x * N[(t + N[(y * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.9e+184], N[(x * N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(z + N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.15 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(t + z \cdot 2\right)\\
\mathbf{elif}\;x \leq 0.0062:\\
\;\;\;\;y \cdot 5\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+21}:\\
\;\;\;\;x \cdot \left(t + y \cdot 2\right)\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{+184}:\\
\;\;\;\;x \cdot \left(2 \cdot \left(y + z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z + \left(y + t\right)\right)\\
\end{array}
\end{array}
if x < -1.1500000000000001e-60Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 92.0%
Taylor expanded in x around inf 93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in z around inf 71.0%
if -1.1500000000000001e-60 < x < 0.00619999999999999978Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
if 0.00619999999999999978 < x < 8.2e21Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
Taylor expanded in x around inf 89.6%
+-commutative89.6%
Simplified89.6%
Taylor expanded in z around 0 89.6%
if 8.2e21 < x < 3.89999999999999971e184Initial program 100.0%
fma-define100.0%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in t around 0 97.2%
Taylor expanded in x around inf 99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in t around 0 82.9%
if 3.89999999999999971e184 < x Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified87.2%
Taylor expanded in x around inf 87.2%
+-commutative87.2%
+-commutative87.2%
associate-+l+87.2%
Simplified87.2%
Final simplification72.0%
(FPCore (x y z t) :precision binary64 (if (or (<= x -4.3e-13) (not (<= x 2.5e-45))) (* x (+ t (+ (* 2.0 (+ y z)) (* 5.0 (/ y x))))) (+ (* z (* x 2.0)) (+ (* y 5.0) (* x t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -4.3e-13) || !(x <= 2.5e-45)) {
tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x))));
} else {
tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-4.3d-13)) .or. (.not. (x <= 2.5d-45))) then
tmp = x * (t + ((2.0d0 * (y + z)) + (5.0d0 * (y / x))))
else
tmp = (z * (x * 2.0d0)) + ((y * 5.0d0) + (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -4.3e-13) || !(x <= 2.5e-45)) {
tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x))));
} else {
tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -4.3e-13) or not (x <= 2.5e-45): tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x)))) else: tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -4.3e-13) || !(x <= 2.5e-45)) tmp = Float64(x * Float64(t + Float64(Float64(2.0 * Float64(y + z)) + Float64(5.0 * Float64(y / x))))); else tmp = Float64(Float64(z * Float64(x * 2.0)) + Float64(Float64(y * 5.0) + Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -4.3e-13) || ~((x <= 2.5e-45))) tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x)))); else tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -4.3e-13], N[Not[LessEqual[x, 2.5e-45]], $MachinePrecision]], N[(x * N[(t + N[(N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(5.0 * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(x * 2.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y * 5.0), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.3 \cdot 10^{-13} \lor \neg \left(x \leq 2.5 \cdot 10^{-45}\right):\\
\;\;\;\;x \cdot \left(t + \left(2 \cdot \left(y + z\right) + 5 \cdot \frac{y}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot 2\right) + \left(y \cdot 5 + x \cdot t\right)\\
\end{array}
\end{array}
if x < -4.2999999999999999e-13 or 2.49999999999999988e-45 < x Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 99.9%
if -4.2999999999999999e-13 < x < 2.49999999999999988e-45Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in t around 0 99.9%
Taylor expanded in y around 0 99.9%
associate-*r*99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (+ t (* 2.0 (+ y z))))))
(if (<= x -1.4e-37)
t_1
(if (<= x 5.6e-127)
(+ (* y 5.0) (* x t))
(if (<= x 0.0062) (+ (* y 5.0) (* 2.0 (* x z))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x * (t + (2.0 * (y + z)));
double tmp;
if (x <= -1.4e-37) {
tmp = t_1;
} else if (x <= 5.6e-127) {
tmp = (y * 5.0) + (x * t);
} else if (x <= 0.0062) {
tmp = (y * 5.0) + (2.0 * (x * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * (t + (2.0d0 * (y + z)))
if (x <= (-1.4d-37)) then
tmp = t_1
else if (x <= 5.6d-127) then
tmp = (y * 5.0d0) + (x * t)
else if (x <= 0.0062d0) then
tmp = (y * 5.0d0) + (2.0d0 * (x * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (t + (2.0 * (y + z)));
double tmp;
if (x <= -1.4e-37) {
tmp = t_1;
} else if (x <= 5.6e-127) {
tmp = (y * 5.0) + (x * t);
} else if (x <= 0.0062) {
tmp = (y * 5.0) + (2.0 * (x * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (t + (2.0 * (y + z))) tmp = 0 if x <= -1.4e-37: tmp = t_1 elif x <= 5.6e-127: tmp = (y * 5.0) + (x * t) elif x <= 0.0062: tmp = (y * 5.0) + (2.0 * (x * z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(t + Float64(2.0 * Float64(y + z)))) tmp = 0.0 if (x <= -1.4e-37) tmp = t_1; elseif (x <= 5.6e-127) tmp = Float64(Float64(y * 5.0) + Float64(x * t)); elseif (x <= 0.0062) tmp = Float64(Float64(y * 5.0) + Float64(2.0 * Float64(x * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (t + (2.0 * (y + z))); tmp = 0.0; if (x <= -1.4e-37) tmp = t_1; elseif (x <= 5.6e-127) tmp = (y * 5.0) + (x * t); elseif (x <= 0.0062) tmp = (y * 5.0) + (2.0 * (x * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(t + N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.4e-37], t$95$1, If[LessEqual[x, 5.6e-127], N[(N[(y * 5.0), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0062], N[(N[(y * 5.0), $MachinePrecision] + N[(2.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t + 2 \cdot \left(y + z\right)\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-127}:\\
\;\;\;\;y \cdot 5 + x \cdot t\\
\mathbf{elif}\;x \leq 0.0062:\\
\;\;\;\;y \cdot 5 + 2 \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.4000000000000001e-37 or 0.00619999999999999978 < x Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 97.0%
if -1.4000000000000001e-37 < x < 5.59999999999999999e-127Initial program 99.9%
Taylor expanded in t around inf 87.4%
Simplified87.4%
if 5.59999999999999999e-127 < x < 0.00619999999999999978Initial program 99.9%
Taylor expanded in z around inf 84.5%
Final simplification91.6%
(FPCore (x y z t) :precision binary64 (if (or (<= x -2.5) (not (<= x 2.5))) (* x (+ t (* 2.0 (+ y z)))) (+ (* z (* x 2.0)) (+ (* y 5.0) (* x t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.5) || !(x <= 2.5)) {
tmp = x * (t + (2.0 * (y + z)));
} else {
tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-2.5d0)) .or. (.not. (x <= 2.5d0))) then
tmp = x * (t + (2.0d0 * (y + z)))
else
tmp = (z * (x * 2.0d0)) + ((y * 5.0d0) + (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.5) || !(x <= 2.5)) {
tmp = x * (t + (2.0 * (y + z)));
} else {
tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -2.5) or not (x <= 2.5): tmp = x * (t + (2.0 * (y + z))) else: tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -2.5) || !(x <= 2.5)) tmp = Float64(x * Float64(t + Float64(2.0 * Float64(y + z)))); else tmp = Float64(Float64(z * Float64(x * 2.0)) + Float64(Float64(y * 5.0) + Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -2.5) || ~((x <= 2.5))) tmp = x * (t + (2.0 * (y + z))); else tmp = (z * (x * 2.0)) + ((y * 5.0) + (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -2.5], N[Not[LessEqual[x, 2.5]], $MachinePrecision]], N[(x * N[(t + N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(x * 2.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y * 5.0), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \lor \neg \left(x \leq 2.5\right):\\
\;\;\;\;x \cdot \left(t + 2 \cdot \left(y + z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot 2\right) + \left(y \cdot 5 + x \cdot t\right)\\
\end{array}
\end{array}
if x < -2.5 or 2.5 < x Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 97.7%
if -2.5 < x < 2.5Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in t around 0 99.9%
Taylor expanded in y around 0 98.8%
associate-*r*98.8%
Simplified98.8%
Final simplification98.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (+ 5.0 (* x 2.0)))))
(if (<= y -2e+111)
t_1
(if (<= y -9e-70)
(+ (* y 5.0) (* x t))
(if (<= y 8.2e+55) (* x (+ t (* z 2.0))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = y * (5.0 + (x * 2.0));
double tmp;
if (y <= -2e+111) {
tmp = t_1;
} else if (y <= -9e-70) {
tmp = (y * 5.0) + (x * t);
} else if (y <= 8.2e+55) {
tmp = x * (t + (z * 2.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = y * (5.0d0 + (x * 2.0d0))
if (y <= (-2d+111)) then
tmp = t_1
else if (y <= (-9d-70)) then
tmp = (y * 5.0d0) + (x * t)
else if (y <= 8.2d+55) then
tmp = x * (t + (z * 2.0d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * (5.0 + (x * 2.0));
double tmp;
if (y <= -2e+111) {
tmp = t_1;
} else if (y <= -9e-70) {
tmp = (y * 5.0) + (x * t);
} else if (y <= 8.2e+55) {
tmp = x * (t + (z * 2.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (5.0 + (x * 2.0)) tmp = 0 if y <= -2e+111: tmp = t_1 elif y <= -9e-70: tmp = (y * 5.0) + (x * t) elif y <= 8.2e+55: tmp = x * (t + (z * 2.0)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(5.0 + Float64(x * 2.0))) tmp = 0.0 if (y <= -2e+111) tmp = t_1; elseif (y <= -9e-70) tmp = Float64(Float64(y * 5.0) + Float64(x * t)); elseif (y <= 8.2e+55) tmp = Float64(x * Float64(t + Float64(z * 2.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (5.0 + (x * 2.0)); tmp = 0.0; if (y <= -2e+111) tmp = t_1; elseif (y <= -9e-70) tmp = (y * 5.0) + (x * t); elseif (y <= 8.2e+55) tmp = x * (t + (z * 2.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(5.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+111], t$95$1, If[LessEqual[y, -9e-70], N[(N[(y * 5.0), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e+55], N[(x * N[(t + N[(z * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(5 + x \cdot 2\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-70}:\\
\;\;\;\;y \cdot 5 + x \cdot t\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+55}:\\
\;\;\;\;x \cdot \left(t + z \cdot 2\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.99999999999999991e111 or 8.19999999999999962e55 < y Initial program 99.8%
fma-define99.8%
associate-+l+99.8%
+-commutative99.8%
count-299.8%
Simplified99.8%
Taylor expanded in y around inf 91.8%
if -1.99999999999999991e111 < y < -9.00000000000000044e-70Initial program 100.0%
Taylor expanded in t around inf 73.3%
Simplified73.3%
if -9.00000000000000044e-70 < y < 8.19999999999999962e55Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 97.4%
Taylor expanded in x around inf 89.3%
+-commutative89.3%
Simplified89.3%
Taylor expanded in z around inf 86.9%
Final simplification87.1%
(FPCore (x y z t)
:precision binary64
(if (<= x -3e-61)
(* x (+ t (* z 2.0)))
(if (<= x 0.0062)
(* y 5.0)
(if (<= x 8.5e+20) (* x (+ t (* y 2.0))) (* x (* 2.0 (+ y z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3e-61) {
tmp = x * (t + (z * 2.0));
} else if (x <= 0.0062) {
tmp = y * 5.0;
} else if (x <= 8.5e+20) {
tmp = x * (t + (y * 2.0));
} else {
tmp = x * (2.0 * (y + z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-3d-61)) then
tmp = x * (t + (z * 2.0d0))
else if (x <= 0.0062d0) then
tmp = y * 5.0d0
else if (x <= 8.5d+20) then
tmp = x * (t + (y * 2.0d0))
else
tmp = x * (2.0d0 * (y + z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3e-61) {
tmp = x * (t + (z * 2.0));
} else if (x <= 0.0062) {
tmp = y * 5.0;
} else if (x <= 8.5e+20) {
tmp = x * (t + (y * 2.0));
} else {
tmp = x * (2.0 * (y + z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3e-61: tmp = x * (t + (z * 2.0)) elif x <= 0.0062: tmp = y * 5.0 elif x <= 8.5e+20: tmp = x * (t + (y * 2.0)) else: tmp = x * (2.0 * (y + z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3e-61) tmp = Float64(x * Float64(t + Float64(z * 2.0))); elseif (x <= 0.0062) tmp = Float64(y * 5.0); elseif (x <= 8.5e+20) tmp = Float64(x * Float64(t + Float64(y * 2.0))); else tmp = Float64(x * Float64(2.0 * Float64(y + z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3e-61) tmp = x * (t + (z * 2.0)); elseif (x <= 0.0062) tmp = y * 5.0; elseif (x <= 8.5e+20) tmp = x * (t + (y * 2.0)); else tmp = x * (2.0 * (y + z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3e-61], N[(x * N[(t + N[(z * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0062], N[(y * 5.0), $MachinePrecision], If[LessEqual[x, 8.5e+20], N[(x * N[(t + N[(y * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3 \cdot 10^{-61}:\\
\;\;\;\;x \cdot \left(t + z \cdot 2\right)\\
\mathbf{elif}\;x \leq 0.0062:\\
\;\;\;\;y \cdot 5\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+20}:\\
\;\;\;\;x \cdot \left(t + y \cdot 2\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(2 \cdot \left(y + z\right)\right)\\
\end{array}
\end{array}
if x < -3.00000000000000012e-61Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 92.0%
Taylor expanded in x around inf 93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in z around inf 71.0%
if -3.00000000000000012e-61 < x < 0.00619999999999999978Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
if 0.00619999999999999978 < x < 8.5e20Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
Taylor expanded in x around inf 89.6%
+-commutative89.6%
Simplified89.6%
Taylor expanded in z around 0 89.6%
if 8.5e20 < x Initial program 100.0%
fma-define100.0%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in t around 0 96.4%
Taylor expanded in x around inf 99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in t around 0 76.6%
Final simplification70.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (* 2.0 (+ y z)))))
(if (<= x -1.4e-58)
t_1
(if (<= x 0.0065)
(* y 5.0)
(if (<= x 1.85e+21) (* x (+ t (* y 2.0))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x * (2.0 * (y + z));
double tmp;
if (x <= -1.4e-58) {
tmp = t_1;
} else if (x <= 0.0065) {
tmp = y * 5.0;
} else if (x <= 1.85e+21) {
tmp = x * (t + (y * 2.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * (2.0d0 * (y + z))
if (x <= (-1.4d-58)) then
tmp = t_1
else if (x <= 0.0065d0) then
tmp = y * 5.0d0
else if (x <= 1.85d+21) then
tmp = x * (t + (y * 2.0d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (2.0 * (y + z));
double tmp;
if (x <= -1.4e-58) {
tmp = t_1;
} else if (x <= 0.0065) {
tmp = y * 5.0;
} else if (x <= 1.85e+21) {
tmp = x * (t + (y * 2.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (2.0 * (y + z)) tmp = 0 if x <= -1.4e-58: tmp = t_1 elif x <= 0.0065: tmp = y * 5.0 elif x <= 1.85e+21: tmp = x * (t + (y * 2.0)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(2.0 * Float64(y + z))) tmp = 0.0 if (x <= -1.4e-58) tmp = t_1; elseif (x <= 0.0065) tmp = Float64(y * 5.0); elseif (x <= 1.85e+21) tmp = Float64(x * Float64(t + Float64(y * 2.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (2.0 * (y + z)); tmp = 0.0; if (x <= -1.4e-58) tmp = t_1; elseif (x <= 0.0065) tmp = y * 5.0; elseif (x <= 1.85e+21) tmp = x * (t + (y * 2.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.4e-58], t$95$1, If[LessEqual[x, 0.0065], N[(y * 5.0), $MachinePrecision], If[LessEqual[x, 1.85e+21], N[(x * N[(t + N[(y * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(2 \cdot \left(y + z\right)\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.0065:\\
\;\;\;\;y \cdot 5\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+21}:\\
\;\;\;\;x \cdot \left(t + y \cdot 2\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.4e-58 or 1.85e21 < x Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 94.1%
Taylor expanded in x around inf 96.8%
+-commutative96.8%
Simplified96.8%
Taylor expanded in t around 0 70.4%
if -1.4e-58 < x < 0.0064999999999999997Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
if 0.0064999999999999997 < x < 1.85e21Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
Taylor expanded in x around inf 89.6%
+-commutative89.6%
Simplified89.6%
Taylor expanded in z around 0 89.6%
Final simplification68.7%
(FPCore (x y z t) :precision binary64 (if (or (<= x -2.5) (not (<= x 2.5))) (* x (+ t (* 2.0 (+ y z)))) (+ (* y 5.0) (* x (+ t (* z 2.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.5) || !(x <= 2.5)) {
tmp = x * (t + (2.0 * (y + z)));
} else {
tmp = (y * 5.0) + (x * (t + (z * 2.0)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-2.5d0)) .or. (.not. (x <= 2.5d0))) then
tmp = x * (t + (2.0d0 * (y + z)))
else
tmp = (y * 5.0d0) + (x * (t + (z * 2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.5) || !(x <= 2.5)) {
tmp = x * (t + (2.0 * (y + z)));
} else {
tmp = (y * 5.0) + (x * (t + (z * 2.0)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -2.5) or not (x <= 2.5): tmp = x * (t + (2.0 * (y + z))) else: tmp = (y * 5.0) + (x * (t + (z * 2.0))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -2.5) || !(x <= 2.5)) tmp = Float64(x * Float64(t + Float64(2.0 * Float64(y + z)))); else tmp = Float64(Float64(y * 5.0) + Float64(x * Float64(t + Float64(z * 2.0)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -2.5) || ~((x <= 2.5))) tmp = x * (t + (2.0 * (y + z))); else tmp = (y * 5.0) + (x * (t + (z * 2.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -2.5], N[Not[LessEqual[x, 2.5]], $MachinePrecision]], N[(x * N[(t + N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * 5.0), $MachinePrecision] + N[(x * N[(t + N[(z * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \lor \neg \left(x \leq 2.5\right):\\
\;\;\;\;x \cdot \left(t + 2 \cdot \left(y + z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot 5 + x \cdot \left(t + z \cdot 2\right)\\
\end{array}
\end{array}
if x < -2.5 or 2.5 < x Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 97.7%
if -2.5 < x < 2.5Initial program 99.9%
Taylor expanded in y around 0 98.7%
Final simplification98.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.18e-70) (not (<= y 2.2e+23))) (+ (* y 5.0) (* x (+ t (* y 2.0)))) (* x (+ t (* 2.0 (+ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.18e-70) || !(y <= 2.2e+23)) {
tmp = (y * 5.0) + (x * (t + (y * 2.0)));
} else {
tmp = x * (t + (2.0 * (y + z)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.18d-70)) .or. (.not. (y <= 2.2d+23))) then
tmp = (y * 5.0d0) + (x * (t + (y * 2.0d0)))
else
tmp = x * (t + (2.0d0 * (y + z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.18e-70) || !(y <= 2.2e+23)) {
tmp = (y * 5.0) + (x * (t + (y * 2.0)));
} else {
tmp = x * (t + (2.0 * (y + z)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.18e-70) or not (y <= 2.2e+23): tmp = (y * 5.0) + (x * (t + (y * 2.0))) else: tmp = x * (t + (2.0 * (y + z))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.18e-70) || !(y <= 2.2e+23)) tmp = Float64(Float64(y * 5.0) + Float64(x * Float64(t + Float64(y * 2.0)))); else tmp = Float64(x * Float64(t + Float64(2.0 * Float64(y + z)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.18e-70) || ~((y <= 2.2e+23))) tmp = (y * 5.0) + (x * (t + (y * 2.0))); else tmp = x * (t + (2.0 * (y + z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.18e-70], N[Not[LessEqual[y, 2.2e+23]], $MachinePrecision]], N[(N[(y * 5.0), $MachinePrecision] + N[(x * N[(t + N[(y * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(t + N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.18 \cdot 10^{-70} \lor \neg \left(y \leq 2.2 \cdot 10^{+23}\right):\\
\;\;\;\;y \cdot 5 + x \cdot \left(t + y \cdot 2\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t + 2 \cdot \left(y + z\right)\right)\\
\end{array}
\end{array}
if y < -1.18e-70 or 2.20000000000000008e23 < y Initial program 99.9%
Taylor expanded in y around inf 91.5%
if -1.18e-70 < y < 2.20000000000000008e23Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 89.6%
Final simplification90.7%
(FPCore (x y z t) :precision binary64 (if (<= x -5.0) (* x (+ t (+ (* 2.0 (+ y z)) (* 5.0 (/ y x))))) (+ (* 2.0 (* x (+ y z))) (+ (* y 5.0) (* x t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -5.0) {
tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x))));
} else {
tmp = (2.0 * (x * (y + z))) + ((y * 5.0) + (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-5.0d0)) then
tmp = x * (t + ((2.0d0 * (y + z)) + (5.0d0 * (y / x))))
else
tmp = (2.0d0 * (x * (y + z))) + ((y * 5.0d0) + (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -5.0) {
tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x))));
} else {
tmp = (2.0 * (x * (y + z))) + ((y * 5.0) + (x * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -5.0: tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x)))) else: tmp = (2.0 * (x * (y + z))) + ((y * 5.0) + (x * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -5.0) tmp = Float64(x * Float64(t + Float64(Float64(2.0 * Float64(y + z)) + Float64(5.0 * Float64(y / x))))); else tmp = Float64(Float64(2.0 * Float64(x * Float64(y + z))) + Float64(Float64(y * 5.0) + Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -5.0) tmp = x * (t + ((2.0 * (y + z)) + (5.0 * (y / x)))); else tmp = (2.0 * (x * (y + z))) + ((y * 5.0) + (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -5.0], N[(x * N[(t + N[(N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(5.0 * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * 5.0), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5:\\
\;\;\;\;x \cdot \left(t + \left(2 \cdot \left(y + z\right) + 5 \cdot \frac{y}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot \left(y + z\right)\right) + \left(y \cdot 5 + x \cdot t\right)\\
\end{array}
\end{array}
if x < -5Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
if -5 < x Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in t around 0 98.9%
Final simplification99.1%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.5e-37) (not (<= x 0.0062))) (* x (+ t (* 2.0 (+ y z)))) (+ (* y 5.0) (* x t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.5e-37) || !(x <= 0.0062)) {
tmp = x * (t + (2.0 * (y + z)));
} else {
tmp = (y * 5.0) + (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-1.5d-37)) .or. (.not. (x <= 0.0062d0))) then
tmp = x * (t + (2.0d0 * (y + z)))
else
tmp = (y * 5.0d0) + (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.5e-37) || !(x <= 0.0062)) {
tmp = x * (t + (2.0 * (y + z)));
} else {
tmp = (y * 5.0) + (x * t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.5e-37) or not (x <= 0.0062): tmp = x * (t + (2.0 * (y + z))) else: tmp = (y * 5.0) + (x * t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.5e-37) || !(x <= 0.0062)) tmp = Float64(x * Float64(t + Float64(2.0 * Float64(y + z)))); else tmp = Float64(Float64(y * 5.0) + Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.5e-37) || ~((x <= 0.0062))) tmp = x * (t + (2.0 * (y + z))); else tmp = (y * 5.0) + (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.5e-37], N[Not[LessEqual[x, 0.0062]], $MachinePrecision]], N[(x * N[(t + N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * 5.0), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{-37} \lor \neg \left(x \leq 0.0062\right):\\
\;\;\;\;x \cdot \left(t + 2 \cdot \left(y + z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot 5 + x \cdot t\\
\end{array}
\end{array}
if x < -1.5e-37 or 0.00619999999999999978 < x Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 97.0%
if -1.5e-37 < x < 0.00619999999999999978Initial program 99.9%
Taylor expanded in t around inf 83.5%
Simplified83.5%
Final simplification89.9%
(FPCore (x y z t) :precision binary64 (if (or (<= y -5.2e-69) (not (<= y 8.5e+57))) (* y (+ 5.0 (* x 2.0))) (* x (+ t (* z 2.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -5.2e-69) || !(y <= 8.5e+57)) {
tmp = y * (5.0 + (x * 2.0));
} else {
tmp = x * (t + (z * 2.0));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-5.2d-69)) .or. (.not. (y <= 8.5d+57))) then
tmp = y * (5.0d0 + (x * 2.0d0))
else
tmp = x * (t + (z * 2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -5.2e-69) || !(y <= 8.5e+57)) {
tmp = y * (5.0 + (x * 2.0));
} else {
tmp = x * (t + (z * 2.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -5.2e-69) or not (y <= 8.5e+57): tmp = y * (5.0 + (x * 2.0)) else: tmp = x * (t + (z * 2.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -5.2e-69) || !(y <= 8.5e+57)) tmp = Float64(y * Float64(5.0 + Float64(x * 2.0))); else tmp = Float64(x * Float64(t + Float64(z * 2.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -5.2e-69) || ~((y <= 8.5e+57))) tmp = y * (5.0 + (x * 2.0)); else tmp = x * (t + (z * 2.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -5.2e-69], N[Not[LessEqual[y, 8.5e+57]], $MachinePrecision]], N[(y * N[(5.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(t + N[(z * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{-69} \lor \neg \left(y \leq 8.5 \cdot 10^{+57}\right):\\
\;\;\;\;y \cdot \left(5 + x \cdot 2\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t + z \cdot 2\right)\\
\end{array}
\end{array}
if y < -5.2000000000000004e-69 or 8.5000000000000001e57 < y Initial program 99.8%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 83.7%
if -5.2000000000000004e-69 < y < 8.5000000000000001e57Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 97.4%
Taylor expanded in x around inf 89.3%
+-commutative89.3%
Simplified89.3%
Taylor expanded in z around inf 86.9%
Final simplification85.1%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.4e-58) (not (<= x 0.0106))) (* x (* 2.0 (+ y z))) (* y 5.0)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.4e-58) || !(x <= 0.0106)) {
tmp = x * (2.0 * (y + z));
} else {
tmp = y * 5.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-1.4d-58)) .or. (.not. (x <= 0.0106d0))) then
tmp = x * (2.0d0 * (y + z))
else
tmp = y * 5.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.4e-58) || !(x <= 0.0106)) {
tmp = x * (2.0 * (y + z));
} else {
tmp = y * 5.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.4e-58) or not (x <= 0.0106): tmp = x * (2.0 * (y + z)) else: tmp = y * 5.0 return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.4e-58) || !(x <= 0.0106)) tmp = Float64(x * Float64(2.0 * Float64(y + z))); else tmp = Float64(y * 5.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.4e-58) || ~((x <= 0.0106))) tmp = x * (2.0 * (y + z)); else tmp = y * 5.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.4e-58], N[Not[LessEqual[x, 0.0106]], $MachinePrecision]], N[(x * N[(2.0 * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * 5.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{-58} \lor \neg \left(x \leq 0.0106\right):\\
\;\;\;\;x \cdot \left(2 \cdot \left(y + z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot 5\\
\end{array}
\end{array}
if x < -1.4e-58 or 0.0106 < x Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in t around 0 94.4%
Taylor expanded in x around inf 96.4%
+-commutative96.4%
Simplified96.4%
Taylor expanded in t around 0 67.7%
if -1.4e-58 < x < 0.0106Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification66.8%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.4e-58) (not (<= x 0.0062))) (* x (+ y t)) (* y 5.0)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.4e-58) || !(x <= 0.0062)) {
tmp = x * (y + t);
} else {
tmp = y * 5.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-1.4d-58)) .or. (.not. (x <= 0.0062d0))) then
tmp = x * (y + t)
else
tmp = y * 5.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.4e-58) || !(x <= 0.0062)) {
tmp = x * (y + t);
} else {
tmp = y * 5.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.4e-58) or not (x <= 0.0062): tmp = x * (y + t) else: tmp = y * 5.0 return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.4e-58) || !(x <= 0.0062)) tmp = Float64(x * Float64(y + t)); else tmp = Float64(y * 5.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.4e-58) || ~((x <= 0.0062))) tmp = x * (y + t); else tmp = y * 5.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.4e-58], N[Not[LessEqual[x, 0.0062]], $MachinePrecision]], N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision], N[(y * 5.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{-58} \lor \neg \left(x \leq 0.0062\right):\\
\;\;\;\;x \cdot \left(y + t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot 5\\
\end{array}
\end{array}
if x < -1.4e-58 or 0.00619999999999999978 < x Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified67.2%
Taylor expanded in x around inf 65.9%
+-commutative65.9%
+-commutative65.9%
associate-+l+65.9%
Simplified65.9%
Taylor expanded in z around 0 53.2%
if -1.4e-58 < x < 0.00619999999999999978Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification59.7%
(FPCore (x y z t) :precision binary64 (if (<= x -8e-59) (* x (+ z t)) (if (<= x 0.0062) (* y 5.0) (* x (+ y t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8e-59) {
tmp = x * (z + t);
} else if (x <= 0.0062) {
tmp = y * 5.0;
} else {
tmp = x * (y + t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-8d-59)) then
tmp = x * (z + t)
else if (x <= 0.0062d0) then
tmp = y * 5.0d0
else
tmp = x * (y + t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8e-59) {
tmp = x * (z + t);
} else if (x <= 0.0062) {
tmp = y * 5.0;
} else {
tmp = x * (y + t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -8e-59: tmp = x * (z + t) elif x <= 0.0062: tmp = y * 5.0 else: tmp = x * (y + t) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -8e-59) tmp = Float64(x * Float64(z + t)); elseif (x <= 0.0062) tmp = Float64(y * 5.0); else tmp = Float64(x * Float64(y + t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -8e-59) tmp = x * (z + t); elseif (x <= 0.0062) tmp = y * 5.0; else tmp = x * (y + t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -8e-59], N[(x * N[(z + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0062], N[(y * 5.0), $MachinePrecision], N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{-59}:\\
\;\;\;\;x \cdot \left(z + t\right)\\
\mathbf{elif}\;x \leq 0.0062:\\
\;\;\;\;y \cdot 5\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y + t\right)\\
\end{array}
\end{array}
if x < -8.0000000000000002e-59Initial program 99.9%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified69.7%
Taylor expanded in y around 0 55.5%
+-commutative55.5%
Simplified55.5%
if -8.0000000000000002e-59 < x < 0.00619999999999999978Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
if 0.00619999999999999978 < x Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified64.6%
Taylor expanded in x around inf 64.6%
+-commutative64.6%
+-commutative64.6%
associate-+l+64.6%
Simplified64.6%
Taylor expanded in z around 0 54.5%
Final simplification60.5%
(FPCore (x y z t) :precision binary64 (+ (* y 5.0) (* x (+ t (+ y (+ y (* z 2.0)))))))
double code(double x, double y, double z, double t) {
return (y * 5.0) + (x * (t + (y + (y + (z * 2.0)))));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (y * 5.0d0) + (x * (t + (y + (y + (z * 2.0d0)))))
end function
public static double code(double x, double y, double z, double t) {
return (y * 5.0) + (x * (t + (y + (y + (z * 2.0)))));
}
def code(x, y, z, t): return (y * 5.0) + (x * (t + (y + (y + (z * 2.0)))))
function code(x, y, z, t) return Float64(Float64(y * 5.0) + Float64(x * Float64(t + Float64(y + Float64(y + Float64(z * 2.0)))))) end
function tmp = code(x, y, z, t) tmp = (y * 5.0) + (x * (t + (y + (y + (z * 2.0))))); end
code[x_, y_, z_, t_] := N[(N[(y * 5.0), $MachinePrecision] + N[(x * N[(t + N[(y + N[(y + N[(z * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot 5 + x \cdot \left(t + \left(y + \left(y + z \cdot 2\right)\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in y around 0 99.9%
Final simplification99.9%
(FPCore (x y z t) :precision binary64 (if (or (<= x -5.5e-59) (not (<= x 0.0062))) (* x t) (* y 5.0)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -5.5e-59) || !(x <= 0.0062)) {
tmp = x * t;
} else {
tmp = y * 5.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-5.5d-59)) .or. (.not. (x <= 0.0062d0))) then
tmp = x * t
else
tmp = y * 5.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -5.5e-59) || !(x <= 0.0062)) {
tmp = x * t;
} else {
tmp = y * 5.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -5.5e-59) or not (x <= 0.0062): tmp = x * t else: tmp = y * 5.0 return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -5.5e-59) || !(x <= 0.0062)) tmp = Float64(x * t); else tmp = Float64(y * 5.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -5.5e-59) || ~((x <= 0.0062))) tmp = x * t; else tmp = y * 5.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -5.5e-59], N[Not[LessEqual[x, 0.0062]], $MachinePrecision]], N[(x * t), $MachinePrecision], N[(y * 5.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{-59} \lor \neg \left(x \leq 0.0062\right):\\
\;\;\;\;x \cdot t\\
\mathbf{else}:\\
\;\;\;\;y \cdot 5\\
\end{array}
\end{array}
if x < -5.50000000000000014e-59 or 0.00619999999999999978 < x Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified67.2%
Taylor expanded in y around 0 51.2%
+-commutative51.2%
Simplified51.2%
Taylor expanded in z around 0 37.6%
*-commutative37.6%
Simplified37.6%
if -5.50000000000000014e-59 < x < 0.00619999999999999978Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in y around inf 66.9%
Simplified66.0%
Taylor expanded in y around 0 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification51.9%
(FPCore (x y z t) :precision binary64 (if (or (<= y -7.5e+113) (not (<= y 2.2e+174))) (* x y) (* x t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7.5e+113) || !(y <= 2.2e+174)) {
tmp = x * y;
} else {
tmp = x * t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-7.5d+113)) .or. (.not. (y <= 2.2d+174))) then
tmp = x * y
else
tmp = x * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7.5e+113) || !(y <= 2.2e+174)) {
tmp = x * y;
} else {
tmp = x * t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -7.5e+113) or not (y <= 2.2e+174): tmp = x * y else: tmp = x * t return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -7.5e+113) || !(y <= 2.2e+174)) tmp = Float64(x * y); else tmp = Float64(x * t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -7.5e+113) || ~((y <= 2.2e+174))) tmp = x * y; else tmp = x * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -7.5e+113], N[Not[LessEqual[y, 2.2e+174]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(x * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+113} \lor \neg \left(y \leq 2.2 \cdot 10^{+174}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\\
\end{array}
\end{array}
if y < -7.5000000000000001e113 or 2.2000000000000002e174 < y Initial program 99.8%
fma-define99.8%
associate-+l+99.8%
+-commutative99.8%
count-299.8%
Simplified99.8%
Taylor expanded in x around inf 62.8%
Simplified46.0%
Taylor expanded in x around inf 34.0%
+-commutative34.0%
+-commutative34.0%
associate-+l+34.0%
Simplified34.0%
Taylor expanded in y around inf 31.1%
if -7.5000000000000001e113 < y < 2.2000000000000002e174Initial program 100.0%
fma-define100.0%
associate-+l+100.0%
+-commutative100.0%
count-2100.0%
Simplified100.0%
Taylor expanded in x around inf 95.5%
Simplified68.9%
Taylor expanded in y around 0 47.9%
+-commutative47.9%
Simplified47.9%
Taylor expanded in z around 0 37.8%
*-commutative37.8%
Simplified37.8%
Final simplification35.7%
(FPCore (x y z t) :precision binary64 (* x t))
double code(double x, double y, double z, double t) {
return x * t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * t
end function
public static double code(double x, double y, double z, double t) {
return x * t;
}
def code(x, y, z, t): return x * t
function code(x, y, z, t) return Float64(x * t) end
function tmp = code(x, y, z, t) tmp = x * t; end
code[x_, y_, z_, t_] := N[(x * t), $MachinePrecision]
\begin{array}{l}
\\
x \cdot t
\end{array}
Initial program 99.9%
fma-define99.9%
associate-+l+99.9%
+-commutative99.9%
count-299.9%
Simplified99.9%
Taylor expanded in x around inf 85.3%
Simplified61.8%
Taylor expanded in y around 0 36.6%
+-commutative36.6%
Simplified36.6%
Taylor expanded in z around 0 28.6%
*-commutative28.6%
Simplified28.6%
herbie shell --seed 2024145
(FPCore (x y z t)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, B"
:precision binary64
(+ (* x (+ (+ (+ (+ y z) z) y) t)) (* y 5.0)))