
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
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) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
def code(x, y, z, t): return x + ((y - z) * (t - x))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - z) * Float64(t - x))) end
function tmp = code(x, y, z, t) tmp = x + ((y - z) * (t - x)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \left(t - x\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
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) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
def code(x, y, z, t): return x + ((y - z) * (t - x))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - z) * Float64(t - x))) end
function tmp = code(x, y, z, t) tmp = x + ((y - z) * (t - x)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \left(t - x\right)
\end{array}
(FPCore (x y z t) :precision binary64 (+ x (* (/ (+ x t) (/ (+ x t) (- t x))) (- y z))))
double code(double x, double y, double z, double t) {
return x + (((x + t) / ((x + t) / (t - x))) * (y - z));
}
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 + (((x + t) / ((x + t) / (t - x))) * (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x + (((x + t) / ((x + t) / (t - x))) * (y - z));
}
def code(x, y, z, t): return x + (((x + t) / ((x + t) / (t - x))) * (y - z))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(x + t) / Float64(Float64(x + t) / Float64(t - x))) * Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x + (((x + t) / ((x + t) / (t - x))) * (y - z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(x + t), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{x + t}{\frac{x + t}{t - x}} \cdot \left(y - z\right)
\end{array}
Initial program 100.0%
flip--76.5%
associate-*r/70.9%
Applied egg-rr70.9%
*-commutative70.9%
associate-*l/76.5%
difference-of-squares79.3%
associate-/l*100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (- z))))
(if (<= y -3.4e+56)
(* t y)
(if (<= y -20.5)
t_1
(if (<= y -1.1e-87)
(* t y)
(if (<= y -1.8e-192)
x
(if (<= y 4e-194)
t_1
(if (<= y 5.5e-76) x (if (<= y 5e-21) t_1 (* x (- y)))))))))))
double code(double x, double y, double z, double t) {
double t_1 = t * -z;
double tmp;
if (y <= -3.4e+56) {
tmp = t * y;
} else if (y <= -20.5) {
tmp = t_1;
} else if (y <= -1.1e-87) {
tmp = t * y;
} else if (y <= -1.8e-192) {
tmp = x;
} else if (y <= 4e-194) {
tmp = t_1;
} else if (y <= 5.5e-76) {
tmp = x;
} else if (y <= 5e-21) {
tmp = t_1;
} else {
tmp = x * -y;
}
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 = t * -z
if (y <= (-3.4d+56)) then
tmp = t * y
else if (y <= (-20.5d0)) then
tmp = t_1
else if (y <= (-1.1d-87)) then
tmp = t * y
else if (y <= (-1.8d-192)) then
tmp = x
else if (y <= 4d-194) then
tmp = t_1
else if (y <= 5.5d-76) then
tmp = x
else if (y <= 5d-21) then
tmp = t_1
else
tmp = x * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = t * -z;
double tmp;
if (y <= -3.4e+56) {
tmp = t * y;
} else if (y <= -20.5) {
tmp = t_1;
} else if (y <= -1.1e-87) {
tmp = t * y;
} else if (y <= -1.8e-192) {
tmp = x;
} else if (y <= 4e-194) {
tmp = t_1;
} else if (y <= 5.5e-76) {
tmp = x;
} else if (y <= 5e-21) {
tmp = t_1;
} else {
tmp = x * -y;
}
return tmp;
}
def code(x, y, z, t): t_1 = t * -z tmp = 0 if y <= -3.4e+56: tmp = t * y elif y <= -20.5: tmp = t_1 elif y <= -1.1e-87: tmp = t * y elif y <= -1.8e-192: tmp = x elif y <= 4e-194: tmp = t_1 elif y <= 5.5e-76: tmp = x elif y <= 5e-21: tmp = t_1 else: tmp = x * -y return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(-z)) tmp = 0.0 if (y <= -3.4e+56) tmp = Float64(t * y); elseif (y <= -20.5) tmp = t_1; elseif (y <= -1.1e-87) tmp = Float64(t * y); elseif (y <= -1.8e-192) tmp = x; elseif (y <= 4e-194) tmp = t_1; elseif (y <= 5.5e-76) tmp = x; elseif (y <= 5e-21) tmp = t_1; else tmp = Float64(x * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * -z; tmp = 0.0; if (y <= -3.4e+56) tmp = t * y; elseif (y <= -20.5) tmp = t_1; elseif (y <= -1.1e-87) tmp = t * y; elseif (y <= -1.8e-192) tmp = x; elseif (y <= 4e-194) tmp = t_1; elseif (y <= 5.5e-76) tmp = x; elseif (y <= 5e-21) tmp = t_1; else tmp = x * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * (-z)), $MachinePrecision]}, If[LessEqual[y, -3.4e+56], N[(t * y), $MachinePrecision], If[LessEqual[y, -20.5], t$95$1, If[LessEqual[y, -1.1e-87], N[(t * y), $MachinePrecision], If[LessEqual[y, -1.8e-192], x, If[LessEqual[y, 4e-194], t$95$1, If[LessEqual[y, 5.5e-76], x, If[LessEqual[y, 5e-21], t$95$1, N[(x * (-y)), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-z\right)\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+56}:\\
\;\;\;\;t \cdot y\\
\mathbf{elif}\;y \leq -20.5:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-87}:\\
\;\;\;\;t \cdot y\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-192}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-76}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-21}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < -3.40000000000000001e56 or -20.5 < y < -1.09999999999999994e-87Initial program 100.0%
Taylor expanded in t around inf 68.0%
Taylor expanded in y around inf 59.3%
if -3.40000000000000001e56 < y < -20.5 or -1.7999999999999999e-192 < y < 4.00000000000000007e-194 or 5.50000000000000014e-76 < y < 4.99999999999999973e-21Initial program 100.0%
Taylor expanded in t around inf 80.8%
Taylor expanded in z around inf 54.8%
associate-*r*54.8%
mul-1-neg54.8%
Simplified54.8%
if -1.09999999999999994e-87 < y < -1.7999999999999999e-192 or 4.00000000000000007e-194 < y < 5.50000000000000014e-76Initial program 100.0%
Taylor expanded in t around inf 67.3%
Taylor expanded in x around inf 39.4%
if 4.99999999999999973e-21 < y Initial program 100.0%
Taylor expanded in y around inf 80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in x around inf 47.4%
+-commutative47.4%
distribute-rgt1-in47.4%
associate-*r*47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
Taylor expanded in y around inf 44.8%
mul-1-neg44.8%
distribute-rgt-neg-out44.8%
Simplified44.8%
Final simplification50.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (- y z))) (t_2 (+ x (* x z))))
(if (<= t -6.8e-101)
t_1
(if (<= t -1.7e-189)
t_2
(if (<= t -7.1e-205) (* x (- y)) (if (<= t 5.1e-110) t_2 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y - z);
double t_2 = x + (x * z);
double tmp;
if (t <= -6.8e-101) {
tmp = t_1;
} else if (t <= -1.7e-189) {
tmp = t_2;
} else if (t <= -7.1e-205) {
tmp = x * -y;
} else if (t <= 5.1e-110) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = t * (y - z)
t_2 = x + (x * z)
if (t <= (-6.8d-101)) then
tmp = t_1
else if (t <= (-1.7d-189)) then
tmp = t_2
else if (t <= (-7.1d-205)) then
tmp = x * -y
else if (t <= 5.1d-110) then
tmp = t_2
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 = t * (y - z);
double t_2 = x + (x * z);
double tmp;
if (t <= -6.8e-101) {
tmp = t_1;
} else if (t <= -1.7e-189) {
tmp = t_2;
} else if (t <= -7.1e-205) {
tmp = x * -y;
} else if (t <= 5.1e-110) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (y - z) t_2 = x + (x * z) tmp = 0 if t <= -6.8e-101: tmp = t_1 elif t <= -1.7e-189: tmp = t_2 elif t <= -7.1e-205: tmp = x * -y elif t <= 5.1e-110: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(y - z)) t_2 = Float64(x + Float64(x * z)) tmp = 0.0 if (t <= -6.8e-101) tmp = t_1; elseif (t <= -1.7e-189) tmp = t_2; elseif (t <= -7.1e-205) tmp = Float64(x * Float64(-y)); elseif (t <= 5.1e-110) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (y - z); t_2 = x + (x * z); tmp = 0.0; if (t <= -6.8e-101) tmp = t_1; elseif (t <= -1.7e-189) tmp = t_2; elseif (t <= -7.1e-205) tmp = x * -y; elseif (t <= 5.1e-110) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.8e-101], t$95$1, If[LessEqual[t, -1.7e-189], t$95$2, If[LessEqual[t, -7.1e-205], N[(x * (-y)), $MachinePrecision], If[LessEqual[t, 5.1e-110], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(y - z\right)\\
t_2 := x + x \cdot z\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -7.1 \cdot 10^{-205}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-110}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -6.79999999999999978e-101 or 5.1000000000000002e-110 < t Initial program 100.0%
Taylor expanded in t around inf 81.7%
Taylor expanded in y around 0 77.0%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
if -6.79999999999999978e-101 < t < -1.7000000000000001e-189 or -7.1000000000000003e-205 < t < 5.1000000000000002e-110Initial program 99.9%
Taylor expanded in y around 0 60.8%
mul-1-neg60.8%
distribute-lft-neg-out60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in t around 0 56.9%
if -1.7000000000000001e-189 < t < -7.1000000000000003e-205Initial program 100.0%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 90.6%
+-commutative90.6%
distribute-rgt1-in90.6%
associate-*r*90.6%
mul-1-neg90.6%
unsub-neg90.6%
Simplified90.6%
Taylor expanded in y around inf 90.6%
mul-1-neg90.6%
distribute-rgt-neg-out90.6%
Simplified90.6%
Final simplification67.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (- y z))))
(if (<= t -9e-99)
t_1
(if (<= t -2.4e-189)
(+ x (* t y))
(if (<= t -3.75e-205)
(* x (- y))
(if (<= t 6.4e-108) (+ x (* x z)) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y - z);
double tmp;
if (t <= -9e-99) {
tmp = t_1;
} else if (t <= -2.4e-189) {
tmp = x + (t * y);
} else if (t <= -3.75e-205) {
tmp = x * -y;
} else if (t <= 6.4e-108) {
tmp = x + (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 = t * (y - z)
if (t <= (-9d-99)) then
tmp = t_1
else if (t <= (-2.4d-189)) then
tmp = x + (t * y)
else if (t <= (-3.75d-205)) then
tmp = x * -y
else if (t <= 6.4d-108) then
tmp = x + (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 = t * (y - z);
double tmp;
if (t <= -9e-99) {
tmp = t_1;
} else if (t <= -2.4e-189) {
tmp = x + (t * y);
} else if (t <= -3.75e-205) {
tmp = x * -y;
} else if (t <= 6.4e-108) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (y - z) tmp = 0 if t <= -9e-99: tmp = t_1 elif t <= -2.4e-189: tmp = x + (t * y) elif t <= -3.75e-205: tmp = x * -y elif t <= 6.4e-108: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(y - z)) tmp = 0.0 if (t <= -9e-99) tmp = t_1; elseif (t <= -2.4e-189) tmp = Float64(x + Float64(t * y)); elseif (t <= -3.75e-205) tmp = Float64(x * Float64(-y)); elseif (t <= 6.4e-108) tmp = Float64(x + Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (y - z); tmp = 0.0; if (t <= -9e-99) tmp = t_1; elseif (t <= -2.4e-189) tmp = x + (t * y); elseif (t <= -3.75e-205) tmp = x * -y; elseif (t <= 6.4e-108) tmp = x + (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e-99], t$95$1, If[LessEqual[t, -2.4e-189], N[(x + N[(t * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.75e-205], N[(x * (-y)), $MachinePrecision], If[LessEqual[t, 6.4e-108], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(y - z\right)\\
\mathbf{if}\;t \leq -9 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-189}:\\
\;\;\;\;x + t \cdot y\\
\mathbf{elif}\;t \leq -3.75 \cdot 10^{-205}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{-108}:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -9.0000000000000006e-99 or 6.3999999999999999e-108 < t Initial program 100.0%
Taylor expanded in t around inf 81.7%
Taylor expanded in y around 0 77.0%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
if -9.0000000000000006e-99 < t < -2.3999999999999998e-189Initial program 100.0%
Taylor expanded in t around inf 68.4%
Taylor expanded in z around 0 68.3%
if -2.3999999999999998e-189 < t < -3.7499999999999998e-205Initial program 100.0%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 90.6%
+-commutative90.6%
distribute-rgt1-in90.6%
associate-*r*90.6%
mul-1-neg90.6%
unsub-neg90.6%
Simplified90.6%
Taylor expanded in y around inf 90.6%
mul-1-neg90.6%
distribute-rgt-neg-out90.6%
Simplified90.6%
if -3.7499999999999998e-205 < t < 6.3999999999999999e-108Initial program 99.9%
Taylor expanded in y around 0 58.8%
mul-1-neg58.8%
distribute-lft-neg-out58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in t around 0 54.3%
Final simplification68.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* t (- y z)))))
(if (<= t -1.4e-187)
t_1
(if (<= t 1.1e-233)
(- x (* x y))
(if (<= t 5.8e-108) (+ x (* x z)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x + (t * (y - z));
double tmp;
if (t <= -1.4e-187) {
tmp = t_1;
} else if (t <= 1.1e-233) {
tmp = x - (x * y);
} else if (t <= 5.8e-108) {
tmp = x + (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 * (y - z))
if (t <= (-1.4d-187)) then
tmp = t_1
else if (t <= 1.1d-233) then
tmp = x - (x * y)
else if (t <= 5.8d-108) then
tmp = x + (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 * (y - z));
double tmp;
if (t <= -1.4e-187) {
tmp = t_1;
} else if (t <= 1.1e-233) {
tmp = x - (x * y);
} else if (t <= 5.8e-108) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (t * (y - z)) tmp = 0 if t <= -1.4e-187: tmp = t_1 elif t <= 1.1e-233: tmp = x - (x * y) elif t <= 5.8e-108: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(t * Float64(y - z))) tmp = 0.0 if (t <= -1.4e-187) tmp = t_1; elseif (t <= 1.1e-233) tmp = Float64(x - Float64(x * y)); elseif (t <= 5.8e-108) tmp = Float64(x + Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (t * (y - z)); tmp = 0.0; if (t <= -1.4e-187) tmp = t_1; elseif (t <= 1.1e-233) tmp = x - (x * y); elseif (t <= 5.8e-108) tmp = x + (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[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e-187], t$95$1, If[LessEqual[t, 1.1e-233], N[(x - N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-108], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \left(y - z\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-233}:\\
\;\;\;\;x - x \cdot y\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-108}:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.4e-187 or 5.8000000000000002e-108 < t Initial program 100.0%
Taylor expanded in t around inf 80.4%
if -1.4e-187 < t < 1.1e-233Initial program 99.9%
Taylor expanded in y around inf 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in x around inf 69.6%
+-commutative69.6%
distribute-rgt1-in69.6%
associate-*r*69.6%
mul-1-neg69.6%
unsub-neg69.6%
Simplified69.6%
if 1.1e-233 < t < 5.8000000000000002e-108Initial program 99.9%
Taylor expanded in y around 0 69.1%
mul-1-neg69.1%
distribute-lft-neg-out69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in t around 0 62.0%
Final simplification76.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* t (- y z)))))
(if (<= t -2.1e-187)
t_1
(if (<= t 9.5e-234)
(- x (* x y))
(if (<= t 3.4e-82) (+ x (* z (- x t))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x + (t * (y - z));
double tmp;
if (t <= -2.1e-187) {
tmp = t_1;
} else if (t <= 9.5e-234) {
tmp = x - (x * y);
} else if (t <= 3.4e-82) {
tmp = x + (z * (x - t));
} 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 * (y - z))
if (t <= (-2.1d-187)) then
tmp = t_1
else if (t <= 9.5d-234) then
tmp = x - (x * y)
else if (t <= 3.4d-82) then
tmp = x + (z * (x - t))
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 * (y - z));
double tmp;
if (t <= -2.1e-187) {
tmp = t_1;
} else if (t <= 9.5e-234) {
tmp = x - (x * y);
} else if (t <= 3.4e-82) {
tmp = x + (z * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (t * (y - z)) tmp = 0 if t <= -2.1e-187: tmp = t_1 elif t <= 9.5e-234: tmp = x - (x * y) elif t <= 3.4e-82: tmp = x + (z * (x - t)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(t * Float64(y - z))) tmp = 0.0 if (t <= -2.1e-187) tmp = t_1; elseif (t <= 9.5e-234) tmp = Float64(x - Float64(x * y)); elseif (t <= 3.4e-82) tmp = Float64(x + Float64(z * Float64(x - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (t * (y - z)); tmp = 0.0; if (t <= -2.1e-187) tmp = t_1; elseif (t <= 9.5e-234) tmp = x - (x * y); elseif (t <= 3.4e-82) tmp = x + (z * (x - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.1e-187], t$95$1, If[LessEqual[t, 9.5e-234], N[(x - N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-82], N[(x + N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \left(y - z\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-234}:\\
\;\;\;\;x - x \cdot y\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-82}:\\
\;\;\;\;x + z \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.09999999999999992e-187 or 3.39999999999999975e-82 < t Initial program 100.0%
Taylor expanded in t around inf 81.2%
if -2.09999999999999992e-187 < t < 9.4999999999999999e-234Initial program 99.9%
Taylor expanded in y around inf 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in x around inf 69.6%
+-commutative69.6%
distribute-rgt1-in69.6%
associate-*r*69.6%
mul-1-neg69.6%
unsub-neg69.6%
Simplified69.6%
if 9.4999999999999999e-234 < t < 3.39999999999999975e-82Initial program 99.9%
flip--86.9%
associate-*r/83.6%
Applied egg-rr83.6%
*-commutative83.6%
associate-*l/86.9%
difference-of-squares86.8%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 68.9%
mul-1-neg68.9%
distribute-rgt-neg-in68.9%
sub-neg68.9%
+-commutative68.9%
distribute-neg-in68.9%
remove-double-neg68.9%
sub-neg68.9%
Simplified68.9%
Final simplification77.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* t (- y z))))
(if (<= t -2.3e-146)
t_1
(if (<= t -6e-189) x (if (<= t 2.9e-58) (* x (- y)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y - z);
double tmp;
if (t <= -2.3e-146) {
tmp = t_1;
} else if (t <= -6e-189) {
tmp = x;
} else if (t <= 2.9e-58) {
tmp = x * -y;
} 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 = t * (y - z)
if (t <= (-2.3d-146)) then
tmp = t_1
else if (t <= (-6d-189)) then
tmp = x
else if (t <= 2.9d-58) then
tmp = 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 t_1 = t * (y - z);
double tmp;
if (t <= -2.3e-146) {
tmp = t_1;
} else if (t <= -6e-189) {
tmp = x;
} else if (t <= 2.9e-58) {
tmp = x * -y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = t * (y - z) tmp = 0 if t <= -2.3e-146: tmp = t_1 elif t <= -6e-189: tmp = x elif t <= 2.9e-58: tmp = x * -y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(t * Float64(y - z)) tmp = 0.0 if (t <= -2.3e-146) tmp = t_1; elseif (t <= -6e-189) tmp = x; elseif (t <= 2.9e-58) tmp = Float64(x * Float64(-y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = t * (y - z); tmp = 0.0; if (t <= -2.3e-146) tmp = t_1; elseif (t <= -6e-189) tmp = x; elseif (t <= 2.9e-58) tmp = x * -y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.3e-146], t$95$1, If[LessEqual[t, -6e-189], x, If[LessEqual[t, 2.9e-58], N[(x * (-y)), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(y - z\right)\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{-146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-189}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-58}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.3000000000000001e-146 or 2.8999999999999999e-58 < t Initial program 100.0%
Taylor expanded in t around inf 82.6%
Taylor expanded in y around 0 77.8%
Taylor expanded in t around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
Simplified72.9%
if -2.3000000000000001e-146 < t < -6e-189Initial program 100.0%
Taylor expanded in t around inf 74.1%
Taylor expanded in x around inf 56.4%
if -6e-189 < t < 2.8999999999999999e-58Initial program 99.9%
Taylor expanded in y around inf 66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in x around inf 57.6%
+-commutative57.6%
distribute-rgt1-in57.6%
associate-*r*57.6%
mul-1-neg57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in y around inf 39.9%
mul-1-neg39.9%
distribute-rgt-neg-out39.9%
Simplified39.9%
Final simplification62.0%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.9e+60) (not (<= y 1.02e-8))) (+ x (* (- t x) y)) (+ x (* z (- x t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.9e+60) || !(y <= 1.02e-8)) {
tmp = x + ((t - x) * y);
} else {
tmp = x + (z * (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 <= (-1.9d+60)) .or. (.not. (y <= 1.02d-8))) then
tmp = x + ((t - x) * y)
else
tmp = x + (z * (x - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.9e+60) || !(y <= 1.02e-8)) {
tmp = x + ((t - x) * y);
} else {
tmp = x + (z * (x - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.9e+60) or not (y <= 1.02e-8): tmp = x + ((t - x) * y) else: tmp = x + (z * (x - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.9e+60) || !(y <= 1.02e-8)) tmp = Float64(x + Float64(Float64(t - x) * y)); else tmp = Float64(x + Float64(z * Float64(x - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.9e+60) || ~((y <= 1.02e-8))) tmp = x + ((t - x) * y); else tmp = x + (z * (x - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.9e+60], N[Not[LessEqual[y, 1.02e-8]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+60} \lor \neg \left(y \leq 1.02 \cdot 10^{-8}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \left(x - t\right)\\
\end{array}
\end{array}
if y < -1.90000000000000005e60 or 1.02000000000000003e-8 < y Initial program 100.0%
Taylor expanded in y around inf 86.4%
*-commutative86.4%
Simplified86.4%
if -1.90000000000000005e60 < y < 1.02000000000000003e-8Initial program 100.0%
flip--72.7%
associate-*r/69.0%
Applied egg-rr69.0%
*-commutative69.0%
associate-*l/72.7%
difference-of-squares75.1%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 88.7%
mul-1-neg88.7%
distribute-rgt-neg-in88.7%
sub-neg88.7%
+-commutative88.7%
distribute-neg-in88.7%
remove-double-neg88.7%
sub-neg88.7%
Simplified88.7%
Final simplification87.6%
(FPCore (x y z t) :precision binary64 (if (<= x -3.1) (- x (* x y)) (if (<= x 5.8e+108) (* t (- y z)) (+ x (* x z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.1) {
tmp = x - (x * y);
} else if (x <= 5.8e+108) {
tmp = t * (y - z);
} else {
tmp = x + (x * 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 <= (-3.1d0)) then
tmp = x - (x * y)
else if (x <= 5.8d+108) then
tmp = t * (y - z)
else
tmp = x + (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.1) {
tmp = x - (x * y);
} else if (x <= 5.8e+108) {
tmp = t * (y - z);
} else {
tmp = x + (x * z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.1: tmp = x - (x * y) elif x <= 5.8e+108: tmp = t * (y - z) else: tmp = x + (x * z) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.1) tmp = Float64(x - Float64(x * y)); elseif (x <= 5.8e+108) tmp = Float64(t * Float64(y - z)); else tmp = Float64(x + Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.1) tmp = x - (x * y); elseif (x <= 5.8e+108) tmp = t * (y - z); else tmp = x + (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.1], N[(x - N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e+108], N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1:\\
\;\;\;\;x - x \cdot y\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+108}:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + x \cdot z\\
\end{array}
\end{array}
if x < -3.10000000000000009Initial program 100.0%
Taylor expanded in y around inf 69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in x around inf 63.2%
+-commutative63.2%
distribute-rgt1-in63.2%
associate-*r*63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
if -3.10000000000000009 < x < 5.80000000000000015e108Initial program 100.0%
Taylor expanded in t around inf 80.9%
Taylor expanded in y around 0 77.1%
Taylor expanded in t around inf 71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
Simplified71.6%
if 5.80000000000000015e108 < x Initial program 100.0%
Taylor expanded in y around 0 70.0%
mul-1-neg70.0%
distribute-lft-neg-out70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around 0 64.0%
Final simplification68.6%
(FPCore (x y z t) :precision binary64 (+ x (* (- t x) (- y z))))
double code(double x, double y, double z, double t) {
return x + ((t - x) * (y - z));
}
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 - x) * (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x + ((t - x) * (y - z));
}
def code(x, y, z, t): return x + ((t - x) * (y - z))
function code(x, y, z, t) return Float64(x + Float64(Float64(t - x) * Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x + ((t - x) * (y - z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(t - x), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(t - x\right) \cdot \left(y - z\right)
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z t) :precision binary64 (if (<= y -6e-87) (* t y) (if (<= y 5e-21) x (* x (- y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e-87) {
tmp = t * y;
} else if (y <= 5e-21) {
tmp = x;
} else {
tmp = x * -y;
}
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 <= (-6d-87)) then
tmp = t * y
else if (y <= 5d-21) then
tmp = x
else
tmp = x * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e-87) {
tmp = t * y;
} else if (y <= 5e-21) {
tmp = x;
} else {
tmp = x * -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6e-87: tmp = t * y elif y <= 5e-21: tmp = x else: tmp = x * -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6e-87) tmp = Float64(t * y); elseif (y <= 5e-21) tmp = x; else tmp = Float64(x * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6e-87) tmp = t * y; elseif (y <= 5e-21) tmp = x; else tmp = x * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6e-87], N[(t * y), $MachinePrecision], If[LessEqual[y, 5e-21], x, N[(x * (-y)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{-87}:\\
\;\;\;\;t \cdot y\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-21}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < -6.00000000000000033e-87Initial program 100.0%
Taylor expanded in t around inf 67.2%
Taylor expanded in y around inf 52.5%
if -6.00000000000000033e-87 < y < 4.99999999999999973e-21Initial program 100.0%
Taylor expanded in t around inf 76.4%
Taylor expanded in x around inf 34.2%
if 4.99999999999999973e-21 < y Initial program 100.0%
Taylor expanded in y around inf 80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in x around inf 47.4%
+-commutative47.4%
distribute-rgt1-in47.4%
associate-*r*47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
Taylor expanded in y around inf 44.8%
mul-1-neg44.8%
distribute-rgt-neg-out44.8%
Simplified44.8%
Final simplification42.6%
(FPCore (x y z t) :precision binary64 (if (<= y -6e-87) (* t y) (if (<= y 3.8e-24) x (* t y))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e-87) {
tmp = t * y;
} else if (y <= 3.8e-24) {
tmp = x;
} else {
tmp = t * y;
}
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 <= (-6d-87)) then
tmp = t * y
else if (y <= 3.8d-24) then
tmp = x
else
tmp = t * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e-87) {
tmp = t * y;
} else if (y <= 3.8e-24) {
tmp = x;
} else {
tmp = t * y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6e-87: tmp = t * y elif y <= 3.8e-24: tmp = x else: tmp = t * y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6e-87) tmp = Float64(t * y); elseif (y <= 3.8e-24) tmp = x; else tmp = Float64(t * y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6e-87) tmp = t * y; elseif (y <= 3.8e-24) tmp = x; else tmp = t * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6e-87], N[(t * y), $MachinePrecision], If[LessEqual[y, 3.8e-24], x, N[(t * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{-87}:\\
\;\;\;\;t \cdot y\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-24}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t \cdot y\\
\end{array}
\end{array}
if y < -6.00000000000000033e-87 or 3.80000000000000026e-24 < y Initial program 100.0%
Taylor expanded in t around inf 59.0%
Taylor expanded in y around inf 47.0%
if -6.00000000000000033e-87 < y < 3.80000000000000026e-24Initial program 100.0%
Taylor expanded in t around inf 76.4%
Taylor expanded in x around inf 34.2%
Final simplification41.4%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 100.0%
Taylor expanded in t around inf 66.6%
Taylor expanded in x around inf 16.2%
Final simplification16.2%
(FPCore (x y z t) :precision binary64 (+ x (+ (* t (- y z)) (* (- x) (- y z)))))
double code(double x, double y, double z, double t) {
return x + ((t * (y - z)) + (-x * (y - z)));
}
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 * (y - z)) + (-x * (y - z)))
end function
public static double code(double x, double y, double z, double t) {
return x + ((t * (y - z)) + (-x * (y - z)));
}
def code(x, y, z, t): return x + ((t * (y - z)) + (-x * (y - z)))
function code(x, y, z, t) return Float64(x + Float64(Float64(t * Float64(y - z)) + Float64(Float64(-x) * Float64(y - z)))) end
function tmp = code(x, y, z, t) tmp = x + ((t * (y - z)) + (-x * (y - z))); end
code[x_, y_, z_, t_] := N[(x + N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] + N[((-x) * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(t \cdot \left(y - z\right) + \left(-x\right) \cdot \left(y - z\right)\right)
\end{array}
herbie shell --seed 2023253
(FPCore (x y z t)
:name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
:precision binary64
:herbie-target
(+ x (+ (* t (- y z)) (* (- x) (- y z))))
(+ x (* (- y z) (- t x))))