
(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 12 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 (* (- 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}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- y z) t)))
(if (<= t -3e+100)
t_1
(if (<= t -9.6e-21)
(+ x (* y t))
(if (<= t -5.3e-39)
t_1
(if (<= t -2.15e-72)
(* x (- y))
(if (<= t 5.6e-5) (+ x (* x z)) t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * t;
double tmp;
if (t <= -3e+100) {
tmp = t_1;
} else if (t <= -9.6e-21) {
tmp = x + (y * t);
} else if (t <= -5.3e-39) {
tmp = t_1;
} else if (t <= -2.15e-72) {
tmp = x * -y;
} else if (t <= 5.6e-5) {
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 = (y - z) * t
if (t <= (-3d+100)) then
tmp = t_1
else if (t <= (-9.6d-21)) then
tmp = x + (y * t)
else if (t <= (-5.3d-39)) then
tmp = t_1
else if (t <= (-2.15d-72)) then
tmp = x * -y
else if (t <= 5.6d-5) 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 = (y - z) * t;
double tmp;
if (t <= -3e+100) {
tmp = t_1;
} else if (t <= -9.6e-21) {
tmp = x + (y * t);
} else if (t <= -5.3e-39) {
tmp = t_1;
} else if (t <= -2.15e-72) {
tmp = x * -y;
} else if (t <= 5.6e-5) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - z) * t tmp = 0 if t <= -3e+100: tmp = t_1 elif t <= -9.6e-21: tmp = x + (y * t) elif t <= -5.3e-39: tmp = t_1 elif t <= -2.15e-72: tmp = x * -y elif t <= 5.6e-5: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - z) * t) tmp = 0.0 if (t <= -3e+100) tmp = t_1; elseif (t <= -9.6e-21) tmp = Float64(x + Float64(y * t)); elseif (t <= -5.3e-39) tmp = t_1; elseif (t <= -2.15e-72) tmp = Float64(x * Float64(-y)); elseif (t <= 5.6e-5) tmp = Float64(x + Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - z) * t; tmp = 0.0; if (t <= -3e+100) tmp = t_1; elseif (t <= -9.6e-21) tmp = x + (y * t); elseif (t <= -5.3e-39) tmp = t_1; elseif (t <= -2.15e-72) tmp = x * -y; elseif (t <= 5.6e-5) tmp = x + (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3e+100], t$95$1, If[LessEqual[t, -9.6e-21], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.3e-39], t$95$1, If[LessEqual[t, -2.15e-72], N[(x * (-y)), $MachinePrecision], If[LessEqual[t, 5.6e-5], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot t\\
\mathbf{if}\;t \leq -3 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.6 \cdot 10^{-21}:\\
\;\;\;\;x + y \cdot t\\
\mathbf{elif}\;t \leq -5.3 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-5}:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.99999999999999985e100 or -9.5999999999999997e-21 < t < -5.30000000000000003e-39 or 5.59999999999999992e-5 < t Initial program 100.0%
Taylor expanded in t around inf 90.1%
Taylor expanded in y around 0 85.8%
Taylor expanded in x around 0 75.3%
Taylor expanded in t around 0 79.5%
mul-1-neg79.5%
unsub-neg79.5%
Simplified79.5%
if -2.99999999999999985e100 < t < -9.5999999999999997e-21Initial program 99.9%
Taylor expanded in t around inf 63.7%
Taylor expanded in z around 0 52.0%
if -5.30000000000000003e-39 < t < -2.1499999999999999e-72Initial program 99.9%
Taylor expanded in t around 0 79.0%
mul-1-neg79.0%
distribute-rgt-neg-in79.0%
sub-neg79.0%
+-commutative79.0%
distribute-neg-in79.0%
remove-double-neg79.0%
sub-neg79.0%
Simplified79.0%
Taylor expanded in z around 0 73.3%
mul-1-neg73.3%
unsub-neg73.3%
Simplified73.3%
Taylor expanded in y around inf 73.3%
mul-1-neg73.3%
*-commutative73.3%
distribute-rgt-neg-in73.3%
Simplified73.3%
if -2.1499999999999999e-72 < t < 5.59999999999999992e-5Initial program 100.0%
Taylor expanded in t around 0 91.5%
mul-1-neg91.5%
distribute-rgt-neg-in91.5%
sub-neg91.5%
+-commutative91.5%
distribute-neg-in91.5%
remove-double-neg91.5%
sub-neg91.5%
Simplified91.5%
Taylor expanded in y around 0 75.1%
*-commutative75.1%
Simplified75.1%
Final simplification74.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- y z) t)))
(if (<= t -1.3e+173)
t_1
(if (<= t -1.38e+57)
(- x (* z t))
(if (<= t -1.05e-39)
(+ x (* y t))
(if (<= t -2.15e-72)
(* x (- y))
(if (<= t 0.00095) (+ x (* x z)) t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * t;
double tmp;
if (t <= -1.3e+173) {
tmp = t_1;
} else if (t <= -1.38e+57) {
tmp = x - (z * t);
} else if (t <= -1.05e-39) {
tmp = x + (y * t);
} else if (t <= -2.15e-72) {
tmp = x * -y;
} else if (t <= 0.00095) {
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 = (y - z) * t
if (t <= (-1.3d+173)) then
tmp = t_1
else if (t <= (-1.38d+57)) then
tmp = x - (z * t)
else if (t <= (-1.05d-39)) then
tmp = x + (y * t)
else if (t <= (-2.15d-72)) then
tmp = x * -y
else if (t <= 0.00095d0) 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 = (y - z) * t;
double tmp;
if (t <= -1.3e+173) {
tmp = t_1;
} else if (t <= -1.38e+57) {
tmp = x - (z * t);
} else if (t <= -1.05e-39) {
tmp = x + (y * t);
} else if (t <= -2.15e-72) {
tmp = x * -y;
} else if (t <= 0.00095) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - z) * t tmp = 0 if t <= -1.3e+173: tmp = t_1 elif t <= -1.38e+57: tmp = x - (z * t) elif t <= -1.05e-39: tmp = x + (y * t) elif t <= -2.15e-72: tmp = x * -y elif t <= 0.00095: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - z) * t) tmp = 0.0 if (t <= -1.3e+173) tmp = t_1; elseif (t <= -1.38e+57) tmp = Float64(x - Float64(z * t)); elseif (t <= -1.05e-39) tmp = Float64(x + Float64(y * t)); elseif (t <= -2.15e-72) tmp = Float64(x * Float64(-y)); elseif (t <= 0.00095) tmp = Float64(x + Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - z) * t; tmp = 0.0; if (t <= -1.3e+173) tmp = t_1; elseif (t <= -1.38e+57) tmp = x - (z * t); elseif (t <= -1.05e-39) tmp = x + (y * t); elseif (t <= -2.15e-72) tmp = x * -y; elseif (t <= 0.00095) tmp = x + (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.3e+173], t$95$1, If[LessEqual[t, -1.38e+57], N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-39], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.15e-72], N[(x * (-y)), $MachinePrecision], If[LessEqual[t, 0.00095], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot t\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.38 \cdot 10^{+57}:\\
\;\;\;\;x - z \cdot t\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-39}:\\
\;\;\;\;x + y \cdot t\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\mathbf{elif}\;t \leq 0.00095:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.2999999999999999e173 or 9.49999999999999998e-4 < t Initial program 100.0%
Taylor expanded in t around inf 89.0%
Taylor expanded in y around 0 83.8%
Taylor expanded in x around 0 75.2%
Taylor expanded in t around 0 80.4%
mul-1-neg80.4%
unsub-neg80.4%
Simplified80.4%
if -1.2999999999999999e173 < t < -1.38e57Initial program 99.9%
Taylor expanded in t around inf 87.2%
Taylor expanded in y around 0 79.8%
mul-1-neg79.8%
unsub-neg79.8%
Simplified79.8%
if -1.38e57 < t < -1.04999999999999997e-39Initial program 99.9%
Taylor expanded in t around inf 65.7%
Taylor expanded in z around 0 54.2%
if -1.04999999999999997e-39 < t < -2.1499999999999999e-72Initial program 99.9%
Taylor expanded in t around 0 79.0%
mul-1-neg79.0%
distribute-rgt-neg-in79.0%
sub-neg79.0%
+-commutative79.0%
distribute-neg-in79.0%
remove-double-neg79.0%
sub-neg79.0%
Simplified79.0%
Taylor expanded in z around 0 73.3%
mul-1-neg73.3%
unsub-neg73.3%
Simplified73.3%
Taylor expanded in y around inf 73.3%
mul-1-neg73.3%
*-commutative73.3%
distribute-rgt-neg-in73.3%
Simplified73.3%
if -2.1499999999999999e-72 < t < 9.49999999999999998e-4Initial program 100.0%
Taylor expanded in t around 0 91.5%
mul-1-neg91.5%
distribute-rgt-neg-in91.5%
sub-neg91.5%
+-commutative91.5%
distribute-neg-in91.5%
remove-double-neg91.5%
sub-neg91.5%
Simplified91.5%
Taylor expanded in y around 0 75.1%
*-commutative75.1%
Simplified75.1%
Final simplification75.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- y z) t)))
(if (<= t -1.5e+173)
t_1
(if (<= t -3.7e+54)
(- x (* z t))
(if (<= t -4.1e-39)
(+ x (* y t))
(if (<= t -5e-87)
(- x (* x y))
(if (<= t 5.9e-5) (+ x (* x z)) t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * t;
double tmp;
if (t <= -1.5e+173) {
tmp = t_1;
} else if (t <= -3.7e+54) {
tmp = x - (z * t);
} else if (t <= -4.1e-39) {
tmp = x + (y * t);
} else if (t <= -5e-87) {
tmp = x - (x * y);
} else if (t <= 5.9e-5) {
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 = (y - z) * t
if (t <= (-1.5d+173)) then
tmp = t_1
else if (t <= (-3.7d+54)) then
tmp = x - (z * t)
else if (t <= (-4.1d-39)) then
tmp = x + (y * t)
else if (t <= (-5d-87)) then
tmp = x - (x * y)
else if (t <= 5.9d-5) 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 = (y - z) * t;
double tmp;
if (t <= -1.5e+173) {
tmp = t_1;
} else if (t <= -3.7e+54) {
tmp = x - (z * t);
} else if (t <= -4.1e-39) {
tmp = x + (y * t);
} else if (t <= -5e-87) {
tmp = x - (x * y);
} else if (t <= 5.9e-5) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - z) * t tmp = 0 if t <= -1.5e+173: tmp = t_1 elif t <= -3.7e+54: tmp = x - (z * t) elif t <= -4.1e-39: tmp = x + (y * t) elif t <= -5e-87: tmp = x - (x * y) elif t <= 5.9e-5: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - z) * t) tmp = 0.0 if (t <= -1.5e+173) tmp = t_1; elseif (t <= -3.7e+54) tmp = Float64(x - Float64(z * t)); elseif (t <= -4.1e-39) tmp = Float64(x + Float64(y * t)); elseif (t <= -5e-87) tmp = Float64(x - Float64(x * y)); elseif (t <= 5.9e-5) tmp = Float64(x + Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - z) * t; tmp = 0.0; if (t <= -1.5e+173) tmp = t_1; elseif (t <= -3.7e+54) tmp = x - (z * t); elseif (t <= -4.1e-39) tmp = x + (y * t); elseif (t <= -5e-87) tmp = x - (x * y); elseif (t <= 5.9e-5) tmp = x + (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.5e+173], t$95$1, If[LessEqual[t, -3.7e+54], N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.1e-39], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5e-87], N[(x - N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.9e-5], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot t\\
\mathbf{if}\;t \leq -1.5 \cdot 10^{+173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{+54}:\\
\;\;\;\;x - z \cdot t\\
\mathbf{elif}\;t \leq -4.1 \cdot 10^{-39}:\\
\;\;\;\;x + y \cdot t\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-87}:\\
\;\;\;\;x - x \cdot y\\
\mathbf{elif}\;t \leq 5.9 \cdot 10^{-5}:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.4999999999999999e173 or 5.8999999999999998e-5 < t Initial program 100.0%
Taylor expanded in t around inf 89.0%
Taylor expanded in y around 0 83.8%
Taylor expanded in x around 0 75.2%
Taylor expanded in t around 0 80.4%
mul-1-neg80.4%
unsub-neg80.4%
Simplified80.4%
if -1.4999999999999999e173 < t < -3.7000000000000002e54Initial program 99.9%
Taylor expanded in t around inf 87.2%
Taylor expanded in y around 0 79.8%
mul-1-neg79.8%
unsub-neg79.8%
Simplified79.8%
if -3.7000000000000002e54 < t < -4.1e-39Initial program 99.9%
Taylor expanded in t around inf 65.7%
Taylor expanded in z around 0 54.2%
if -4.1e-39 < t < -5.00000000000000042e-87Initial program 99.9%
Taylor expanded in t around 0 83.4%
mul-1-neg83.4%
distribute-rgt-neg-in83.4%
sub-neg83.4%
+-commutative83.4%
distribute-neg-in83.4%
remove-double-neg83.4%
sub-neg83.4%
Simplified83.4%
Taylor expanded in z around 0 78.9%
mul-1-neg78.9%
unsub-neg78.9%
Simplified78.9%
if -5.00000000000000042e-87 < t < 5.8999999999999998e-5Initial program 100.0%
Taylor expanded in t around 0 91.3%
mul-1-neg91.3%
distribute-rgt-neg-in91.3%
sub-neg91.3%
+-commutative91.3%
distribute-neg-in91.3%
remove-double-neg91.3%
sub-neg91.3%
Simplified91.3%
Taylor expanded in y around 0 75.3%
*-commutative75.3%
Simplified75.3%
Final simplification76.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- y))))
(if (<= y -6e+79)
(* y t)
(if (<= y -8.5e+35)
t_1
(if (<= y -2250000000.0)
(* y t)
(if (<= y 1.3e-23) x (if (<= y 2e+104) (* y t) t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = x * -y;
double tmp;
if (y <= -6e+79) {
tmp = y * t;
} else if (y <= -8.5e+35) {
tmp = t_1;
} else if (y <= -2250000000.0) {
tmp = y * t;
} else if (y <= 1.3e-23) {
tmp = x;
} else if (y <= 2e+104) {
tmp = y * 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 * -y
if (y <= (-6d+79)) then
tmp = y * t
else if (y <= (-8.5d+35)) then
tmp = t_1
else if (y <= (-2250000000.0d0)) then
tmp = y * t
else if (y <= 1.3d-23) then
tmp = x
else if (y <= 2d+104) then
tmp = y * 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 * -y;
double tmp;
if (y <= -6e+79) {
tmp = y * t;
} else if (y <= -8.5e+35) {
tmp = t_1;
} else if (y <= -2250000000.0) {
tmp = y * t;
} else if (y <= 1.3e-23) {
tmp = x;
} else if (y <= 2e+104) {
tmp = y * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * -y tmp = 0 if y <= -6e+79: tmp = y * t elif y <= -8.5e+35: tmp = t_1 elif y <= -2250000000.0: tmp = y * t elif y <= 1.3e-23: tmp = x elif y <= 2e+104: tmp = y * t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(-y)) tmp = 0.0 if (y <= -6e+79) tmp = Float64(y * t); elseif (y <= -8.5e+35) tmp = t_1; elseif (y <= -2250000000.0) tmp = Float64(y * t); elseif (y <= 1.3e-23) tmp = x; elseif (y <= 2e+104) tmp = Float64(y * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * -y; tmp = 0.0; if (y <= -6e+79) tmp = y * t; elseif (y <= -8.5e+35) tmp = t_1; elseif (y <= -2250000000.0) tmp = y * t; elseif (y <= 1.3e-23) tmp = x; elseif (y <= 2e+104) tmp = y * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * (-y)), $MachinePrecision]}, If[LessEqual[y, -6e+79], N[(y * t), $MachinePrecision], If[LessEqual[y, -8.5e+35], t$95$1, If[LessEqual[y, -2250000000.0], N[(y * t), $MachinePrecision], If[LessEqual[y, 1.3e-23], x, If[LessEqual[y, 2e+104], N[(y * t), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(-y\right)\\
\mathbf{if}\;y \leq -6 \cdot 10^{+79}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2250000000:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-23}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+104}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.99999999999999948e79 or -8.4999999999999995e35 < y < -2.25e9 or 1.3e-23 < y < 2e104Initial program 99.9%
Taylor expanded in t around inf 68.3%
Taylor expanded in y around 0 63.4%
Taylor expanded in x around 0 63.3%
Taylor expanded in z around 0 51.3%
if -5.99999999999999948e79 < y < -8.4999999999999995e35 or 2e104 < y Initial program 100.0%
Taylor expanded in t around 0 64.6%
mul-1-neg64.6%
distribute-rgt-neg-in64.6%
sub-neg64.6%
+-commutative64.6%
distribute-neg-in64.6%
remove-double-neg64.6%
sub-neg64.6%
Simplified64.6%
Taylor expanded in z around 0 49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
Taylor expanded in y around inf 49.7%
mul-1-neg49.7%
*-commutative49.7%
distribute-rgt-neg-in49.7%
Simplified49.7%
if -2.25e9 < y < 1.3e-23Initial program 100.0%
Taylor expanded in t around inf 73.4%
Taylor expanded in x around inf 38.2%
Final simplification43.6%
(FPCore (x y z t)
:precision binary64
(if (or (<= t -1.65e+49)
(not (or (<= t -2.2e-5) (and (not (<= t -1.7e-38)) (<= t 1.15e-74)))))
(+ x (* (- y z) t))
(+ x (* x (- z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.65e+49) || !((t <= -2.2e-5) || (!(t <= -1.7e-38) && (t <= 1.15e-74)))) {
tmp = x + ((y - z) * t);
} else {
tmp = x + (x * (z - 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 ((t <= (-1.65d+49)) .or. (.not. (t <= (-2.2d-5)) .or. (.not. (t <= (-1.7d-38))) .and. (t <= 1.15d-74))) then
tmp = x + ((y - z) * t)
else
tmp = x + (x * (z - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.65e+49) || !((t <= -2.2e-5) || (!(t <= -1.7e-38) && (t <= 1.15e-74)))) {
tmp = x + ((y - z) * t);
} else {
tmp = x + (x * (z - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -1.65e+49) or not ((t <= -2.2e-5) or (not (t <= -1.7e-38) and (t <= 1.15e-74))): tmp = x + ((y - z) * t) else: tmp = x + (x * (z - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.65e+49) || !((t <= -2.2e-5) || (!(t <= -1.7e-38) && (t <= 1.15e-74)))) tmp = Float64(x + Float64(Float64(y - z) * t)); else tmp = Float64(x + Float64(x * Float64(z - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -1.65e+49) || ~(((t <= -2.2e-5) || (~((t <= -1.7e-38)) && (t <= 1.15e-74))))) tmp = x + ((y - z) * t); else tmp = x + (x * (z - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.65e+49], N[Not[Or[LessEqual[t, -2.2e-5], And[N[Not[LessEqual[t, -1.7e-38]], $MachinePrecision], LessEqual[t, 1.15e-74]]]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(x + N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.65 \cdot 10^{+49} \lor \neg \left(t \leq -2.2 \cdot 10^{-5} \lor \neg \left(t \leq -1.7 \cdot 10^{-38}\right) \land t \leq 1.15 \cdot 10^{-74}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;x + x \cdot \left(z - y\right)\\
\end{array}
\end{array}
if t < -1.6499999999999999e49 or -2.1999999999999999e-5 < t < -1.7000000000000001e-38 or 1.1499999999999999e-74 < t Initial program 100.0%
Taylor expanded in t around inf 89.8%
if -1.6499999999999999e49 < t < -2.1999999999999999e-5 or -1.7000000000000001e-38 < t < 1.1499999999999999e-74Initial program 100.0%
Taylor expanded in t around 0 90.2%
mul-1-neg90.2%
distribute-rgt-neg-in90.2%
sub-neg90.2%
+-commutative90.2%
distribute-neg-in90.2%
remove-double-neg90.2%
sub-neg90.2%
Simplified90.2%
Final simplification90.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* (- y z) t))))
(if (<= t -1.08e-39)
t_1
(if (<= t -2.05e-88)
(- x (* x y))
(if (<= t 7.5e-81) (+ x (* x z)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x + ((y - z) * t);
double tmp;
if (t <= -1.08e-39) {
tmp = t_1;
} else if (t <= -2.05e-88) {
tmp = x - (x * y);
} else if (t <= 7.5e-81) {
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 + ((y - z) * t)
if (t <= (-1.08d-39)) then
tmp = t_1
else if (t <= (-2.05d-88)) then
tmp = x - (x * y)
else if (t <= 7.5d-81) 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 + ((y - z) * t);
double tmp;
if (t <= -1.08e-39) {
tmp = t_1;
} else if (t <= -2.05e-88) {
tmp = x - (x * y);
} else if (t <= 7.5e-81) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + ((y - z) * t) tmp = 0 if t <= -1.08e-39: tmp = t_1 elif t <= -2.05e-88: tmp = x - (x * y) elif t <= 7.5e-81: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(y - z) * t)) tmp = 0.0 if (t <= -1.08e-39) tmp = t_1; elseif (t <= -2.05e-88) tmp = Float64(x - Float64(x * y)); elseif (t <= 7.5e-81) 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 + ((y - z) * t); tmp = 0.0; if (t <= -1.08e-39) tmp = t_1; elseif (t <= -2.05e-88) tmp = x - (x * y); elseif (t <= 7.5e-81) 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[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.08e-39], t$95$1, If[LessEqual[t, -2.05e-88], N[(x - N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-81], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot t\\
\mathbf{if}\;t \leq -1.08 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-88}:\\
\;\;\;\;x - x \cdot y\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-81}:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.08e-39 or 7.50000000000000018e-81 < t Initial program 100.0%
Taylor expanded in t around inf 85.5%
if -1.08e-39 < t < -2.0500000000000001e-88Initial program 99.9%
Taylor expanded in t around 0 83.4%
mul-1-neg83.4%
distribute-rgt-neg-in83.4%
sub-neg83.4%
+-commutative83.4%
distribute-neg-in83.4%
remove-double-neg83.4%
sub-neg83.4%
Simplified83.4%
Taylor expanded in z around 0 78.9%
mul-1-neg78.9%
unsub-neg78.9%
Simplified78.9%
if -2.0500000000000001e-88 < t < 7.50000000000000018e-81Initial program 100.0%
Taylor expanded in t around 0 92.9%
mul-1-neg92.9%
distribute-rgt-neg-in92.9%
sub-neg92.9%
+-commutative92.9%
distribute-neg-in92.9%
remove-double-neg92.9%
sub-neg92.9%
Simplified92.9%
Taylor expanded in y around 0 76.1%
*-commutative76.1%
Simplified76.1%
Final simplification81.8%
(FPCore (x y z t) :precision binary64 (if (or (<= (- y z) -5e-7) (not (<= (- y z) 1.3e-23))) (* (- y z) t) x))
double code(double x, double y, double z, double t) {
double tmp;
if (((y - z) <= -5e-7) || !((y - z) <= 1.3e-23)) {
tmp = (y - z) * t;
} else {
tmp = x;
}
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 - z) <= (-5d-7)) .or. (.not. ((y - z) <= 1.3d-23))) then
tmp = (y - z) * t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((y - z) <= -5e-7) || !((y - z) <= 1.3e-23)) {
tmp = (y - z) * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((y - z) <= -5e-7) or not ((y - z) <= 1.3e-23): tmp = (y - z) * t else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(y - z) <= -5e-7) || !(Float64(y - z) <= 1.3e-23)) tmp = Float64(Float64(y - z) * t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((y - z) <= -5e-7) || ~(((y - z) <= 1.3e-23))) tmp = (y - z) * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(y - z), $MachinePrecision], -5e-7], N[Not[LessEqual[N[(y - z), $MachinePrecision], 1.3e-23]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y - z \leq -5 \cdot 10^{-7} \lor \neg \left(y - z \leq 1.3 \cdot 10^{-23}\right):\\
\;\;\;\;\left(y - z\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if (-.f64 y z) < -4.99999999999999977e-7 or 1.3e-23 < (-.f64 y z) Initial program 100.0%
Taylor expanded in t around inf 52.6%
Taylor expanded in y around 0 49.9%
Taylor expanded in x around 0 48.8%
Taylor expanded in t around 0 51.5%
mul-1-neg51.5%
unsub-neg51.5%
Simplified51.5%
if -4.99999999999999977e-7 < (-.f64 y z) < 1.3e-23Initial program 100.0%
Taylor expanded in t around inf 99.8%
Taylor expanded in x around inf 72.5%
Final simplification57.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -9.8e+51) (not (<= z 9e+23))) (+ x (* z (- x t))) (+ x (* y (- t x)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.8e+51) || !(z <= 9e+23)) {
tmp = x + (z * (x - t));
} else {
tmp = x + (y * (t - x));
}
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 ((z <= (-9.8d+51)) .or. (.not. (z <= 9d+23))) then
tmp = x + (z * (x - t))
else
tmp = x + (y * (t - x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.8e+51) || !(z <= 9e+23)) {
tmp = x + (z * (x - t));
} else {
tmp = x + (y * (t - x));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -9.8e+51) or not (z <= 9e+23): tmp = x + (z * (x - t)) else: tmp = x + (y * (t - x)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -9.8e+51) || !(z <= 9e+23)) tmp = Float64(x + Float64(z * Float64(x - t))); else tmp = Float64(x + Float64(y * Float64(t - x))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -9.8e+51) || ~((z <= 9e+23))) tmp = x + (z * (x - t)); else tmp = x + (y * (t - x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9.8e+51], N[Not[LessEqual[z, 9e+23]], $MachinePrecision]], N[(x + N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.8 \cdot 10^{+51} \lor \neg \left(z \leq 9 \cdot 10^{+23}\right):\\
\;\;\;\;x + z \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(t - x\right)\\
\end{array}
\end{array}
if z < -9.79999999999999967e51 or 8.99999999999999958e23 < z Initial program 100.0%
Taylor expanded in y around 0 88.4%
mul-1-neg88.4%
distribute-rgt-neg-in88.4%
sub-neg88.4%
+-commutative88.4%
distribute-neg-in88.4%
remove-double-neg88.4%
sub-neg88.4%
Simplified88.4%
if -9.79999999999999967e51 < z < 8.99999999999999958e23Initial program 100.0%
Taylor expanded in y around inf 88.1%
*-commutative88.1%
Simplified88.1%
Final simplification88.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -3.4e-16) (not (<= z 2.4e-13))) (* (- y z) t) (+ x (* y t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -3.4e-16) || !(z <= 2.4e-13)) {
tmp = (y - z) * t;
} 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 ((z <= (-3.4d-16)) .or. (.not. (z <= 2.4d-13))) then
tmp = (y - z) * t
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 ((z <= -3.4e-16) || !(z <= 2.4e-13)) {
tmp = (y - z) * t;
} else {
tmp = x + (y * t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -3.4e-16) or not (z <= 2.4e-13): tmp = (y - z) * t else: tmp = x + (y * t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -3.4e-16) || !(z <= 2.4e-13)) tmp = Float64(Float64(y - z) * t); else tmp = Float64(x + Float64(y * t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -3.4e-16) || ~((z <= 2.4e-13))) tmp = (y - z) * t; else tmp = x + (y * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -3.4e-16], N[Not[LessEqual[z, 2.4e-13]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{-16} \lor \neg \left(z \leq 2.4 \cdot 10^{-13}\right):\\
\;\;\;\;\left(y - z\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\\
\end{array}
\end{array}
if z < -3.4e-16 or 2.3999999999999999e-13 < z Initial program 100.0%
Taylor expanded in t around inf 50.7%
Taylor expanded in y around 0 47.1%
Taylor expanded in x around 0 46.5%
Taylor expanded in t around 0 50.1%
mul-1-neg50.1%
unsub-neg50.1%
Simplified50.1%
if -3.4e-16 < z < 2.3999999999999999e-13Initial program 100.0%
Taylor expanded in t around inf 83.4%
Taylor expanded in z around 0 76.0%
Final simplification61.9%
(FPCore (x y z t) :precision binary64 (if (or (<= y -2000000000000.0) (not (<= y 1.3e-23))) (* y t) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2000000000000.0) || !(y <= 1.3e-23)) {
tmp = y * t;
} else {
tmp = x;
}
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 <= (-2000000000000.0d0)) .or. (.not. (y <= 1.3d-23))) then
tmp = y * t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2000000000000.0) || !(y <= 1.3e-23)) {
tmp = y * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -2000000000000.0) or not (y <= 1.3e-23): tmp = y * t else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -2000000000000.0) || !(y <= 1.3e-23)) tmp = Float64(y * t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -2000000000000.0) || ~((y <= 1.3e-23))) tmp = y * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2000000000000.0], N[Not[LessEqual[y, 1.3e-23]], $MachinePrecision]], N[(y * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2000000000000 \lor \neg \left(y \leq 1.3 \cdot 10^{-23}\right):\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2e12 or 1.3e-23 < y Initial program 100.0%
Taylor expanded in t around inf 55.7%
Taylor expanded in y around 0 51.3%
Taylor expanded in x around 0 51.0%
Taylor expanded in z around 0 42.8%
if -2e12 < y < 1.3e-23Initial program 100.0%
Taylor expanded in t around inf 73.4%
Taylor expanded in x around inf 38.2%
Final simplification40.3%
(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 65.7%
Taylor expanded in x around inf 22.8%
Final simplification22.8%
(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 2024059
(FPCore (x y z t)
:name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
:precision binary64
:alt
(+ x (+ (* t (- y z)) (* (- x) (- y z))))
(+ x (* (- y z) (- t x))))