
(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 14 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 (fma (- y z) (- t x) x))
double code(double x, double y, double z, double t) {
return fma((y - z), (t - x), x);
}
function code(x, y, z, t) return fma(Float64(y - z), Float64(t - x), x) end
code[x_, y_, z_, t_] := N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y - z, t - x, x\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
fma-define100.0%
Simplified100.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 y))) (t_2 (+ x (* y t))))
(if (<= x -2.3e+233)
t_1
(if (<= x -2.6e+106)
(+ x (* z x))
(if (<= x -3.2e-169)
t_1
(if (<= x -7.3e-292)
t_2
(if (<= x 3.4e-292) (- x (* z t)) (if (<= x 3.8e+57) t_2 t_1))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double t_2 = x + (y * t);
double tmp;
if (x <= -2.3e+233) {
tmp = t_1;
} else if (x <= -2.6e+106) {
tmp = x + (z * x);
} else if (x <= -3.2e-169) {
tmp = t_1;
} else if (x <= -7.3e-292) {
tmp = t_2;
} else if (x <= 3.4e-292) {
tmp = x - (z * t);
} else if (x <= 3.8e+57) {
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 = x * (1.0d0 - y)
t_2 = x + (y * t)
if (x <= (-2.3d+233)) then
tmp = t_1
else if (x <= (-2.6d+106)) then
tmp = x + (z * x)
else if (x <= (-3.2d-169)) then
tmp = t_1
else if (x <= (-7.3d-292)) then
tmp = t_2
else if (x <= 3.4d-292) then
tmp = x - (z * t)
else if (x <= 3.8d+57) 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 = x * (1.0 - y);
double t_2 = x + (y * t);
double tmp;
if (x <= -2.3e+233) {
tmp = t_1;
} else if (x <= -2.6e+106) {
tmp = x + (z * x);
} else if (x <= -3.2e-169) {
tmp = t_1;
} else if (x <= -7.3e-292) {
tmp = t_2;
} else if (x <= 3.4e-292) {
tmp = x - (z * t);
} else if (x <= 3.8e+57) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - y) t_2 = x + (y * t) tmp = 0 if x <= -2.3e+233: tmp = t_1 elif x <= -2.6e+106: tmp = x + (z * x) elif x <= -3.2e-169: tmp = t_1 elif x <= -7.3e-292: tmp = t_2 elif x <= 3.4e-292: tmp = x - (z * t) elif x <= 3.8e+57: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - y)) t_2 = Float64(x + Float64(y * t)) tmp = 0.0 if (x <= -2.3e+233) tmp = t_1; elseif (x <= -2.6e+106) tmp = Float64(x + Float64(z * x)); elseif (x <= -3.2e-169) tmp = t_1; elseif (x <= -7.3e-292) tmp = t_2; elseif (x <= 3.4e-292) tmp = Float64(x - Float64(z * t)); elseif (x <= 3.8e+57) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - y); t_2 = x + (y * t); tmp = 0.0; if (x <= -2.3e+233) tmp = t_1; elseif (x <= -2.6e+106) tmp = x + (z * x); elseif (x <= -3.2e-169) tmp = t_1; elseif (x <= -7.3e-292) tmp = t_2; elseif (x <= 3.4e-292) tmp = x - (z * t); elseif (x <= 3.8e+57) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.3e+233], t$95$1, If[LessEqual[x, -2.6e+106], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.2e-169], t$95$1, If[LessEqual[x, -7.3e-292], t$95$2, If[LessEqual[x, 3.4e-292], N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e+57], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y\right)\\
t_2 := x + y \cdot t\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{+233}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{+106}:\\
\;\;\;\;x + z \cdot x\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -7.3 \cdot 10^{-292}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-292}:\\
\;\;\;\;x - z \cdot t\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.30000000000000001e233 or -2.6000000000000002e106 < x < -3.19999999999999995e-169 or 3.7999999999999999e57 < x Initial program 100.0%
Taylor expanded in x around inf 84.9%
mul-1-neg84.9%
unsub-neg84.9%
Simplified84.9%
Taylor expanded in z around 0 66.3%
if -2.30000000000000001e233 < x < -2.6000000000000002e106Initial program 99.9%
Taylor expanded in x around inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in y around 0 77.8%
+-commutative77.8%
Simplified77.8%
distribute-rgt-in77.9%
*-un-lft-identity77.9%
Applied egg-rr77.9%
if -3.19999999999999995e-169 < x < -7.2999999999999997e-292 or 3.40000000000000017e-292 < x < 3.7999999999999999e57Initial program 99.9%
Taylor expanded in t around inf 79.4%
Taylor expanded in z around 0 55.3%
if -7.2999999999999997e-292 < x < 3.40000000000000017e-292Initial program 100.0%
Taylor expanded in y around 0 74.3%
mul-1-neg74.3%
unsub-neg74.3%
Simplified74.3%
Taylor expanded in t around inf 74.3%
Final simplification63.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 y))))
(if (<= x -2.5e+236)
t_1
(if (<= x -7.5e+104)
(+ x (* z x))
(if (or (<= x -2e-169) (not (<= x 4.5e+57))) t_1 (+ x (* y t)))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double tmp;
if (x <= -2.5e+236) {
tmp = t_1;
} else if (x <= -7.5e+104) {
tmp = x + (z * x);
} else if ((x <= -2e-169) || !(x <= 4.5e+57)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - y)
if (x <= (-2.5d+236)) then
tmp = t_1
else if (x <= (-7.5d+104)) then
tmp = x + (z * x)
else if ((x <= (-2d-169)) .or. (.not. (x <= 4.5d+57))) then
tmp = t_1
else
tmp = x + (y * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double tmp;
if (x <= -2.5e+236) {
tmp = t_1;
} else if (x <= -7.5e+104) {
tmp = x + (z * x);
} else if ((x <= -2e-169) || !(x <= 4.5e+57)) {
tmp = t_1;
} else {
tmp = x + (y * t);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - y) tmp = 0 if x <= -2.5e+236: tmp = t_1 elif x <= -7.5e+104: tmp = x + (z * x) elif (x <= -2e-169) or not (x <= 4.5e+57): tmp = t_1 else: tmp = x + (y * t) return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - y)) tmp = 0.0 if (x <= -2.5e+236) tmp = t_1; elseif (x <= -7.5e+104) tmp = Float64(x + Float64(z * x)); elseif ((x <= -2e-169) || !(x <= 4.5e+57)) tmp = t_1; else tmp = Float64(x + Float64(y * t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - y); tmp = 0.0; if (x <= -2.5e+236) tmp = t_1; elseif (x <= -7.5e+104) tmp = x + (z * x); elseif ((x <= -2e-169) || ~((x <= 4.5e+57))) tmp = t_1; else tmp = x + (y * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+236], t$95$1, If[LessEqual[x, -7.5e+104], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -2e-169], N[Not[LessEqual[x, 4.5e+57]], $MachinePrecision]], t$95$1, N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+236}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -7.5 \cdot 10^{+104}:\\
\;\;\;\;x + z \cdot x\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-169} \lor \neg \left(x \leq 4.5 \cdot 10^{+57}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\\
\end{array}
\end{array}
if x < -2.49999999999999985e236 or -7.5000000000000002e104 < x < -2.00000000000000004e-169 or 4.49999999999999996e57 < x Initial program 100.0%
Taylor expanded in x around inf 84.9%
mul-1-neg84.9%
unsub-neg84.9%
Simplified84.9%
Taylor expanded in z around 0 66.3%
if -2.49999999999999985e236 < x < -7.5000000000000002e104Initial program 99.9%
Taylor expanded in x around inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in y around 0 77.8%
+-commutative77.8%
Simplified77.8%
distribute-rgt-in77.9%
*-un-lft-identity77.9%
Applied egg-rr77.9%
if -2.00000000000000004e-169 < x < 4.49999999999999996e57Initial program 99.9%
Taylor expanded in t around inf 81.4%
Taylor expanded in z around 0 52.8%
Final simplification61.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 y))))
(if (<= x -2.2e+236)
t_1
(if (<= x -4.2e+104)
(* x (+ z 1.0))
(if (or (<= x -1.65e-172) (not (<= x 7.5e+57))) t_1 (+ x (* y t)))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double tmp;
if (x <= -2.2e+236) {
tmp = t_1;
} else if (x <= -4.2e+104) {
tmp = x * (z + 1.0);
} else if ((x <= -1.65e-172) || !(x <= 7.5e+57)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - y)
if (x <= (-2.2d+236)) then
tmp = t_1
else if (x <= (-4.2d+104)) then
tmp = x * (z + 1.0d0)
else if ((x <= (-1.65d-172)) .or. (.not. (x <= 7.5d+57))) then
tmp = t_1
else
tmp = x + (y * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double tmp;
if (x <= -2.2e+236) {
tmp = t_1;
} else if (x <= -4.2e+104) {
tmp = x * (z + 1.0);
} else if ((x <= -1.65e-172) || !(x <= 7.5e+57)) {
tmp = t_1;
} else {
tmp = x + (y * t);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - y) tmp = 0 if x <= -2.2e+236: tmp = t_1 elif x <= -4.2e+104: tmp = x * (z + 1.0) elif (x <= -1.65e-172) or not (x <= 7.5e+57): tmp = t_1 else: tmp = x + (y * t) return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - y)) tmp = 0.0 if (x <= -2.2e+236) tmp = t_1; elseif (x <= -4.2e+104) tmp = Float64(x * Float64(z + 1.0)); elseif ((x <= -1.65e-172) || !(x <= 7.5e+57)) tmp = t_1; else tmp = Float64(x + Float64(y * t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - y); tmp = 0.0; if (x <= -2.2e+236) tmp = t_1; elseif (x <= -4.2e+104) tmp = x * (z + 1.0); elseif ((x <= -1.65e-172) || ~((x <= 7.5e+57))) tmp = t_1; else tmp = x + (y * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.2e+236], t$95$1, If[LessEqual[x, -4.2e+104], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -1.65e-172], N[Not[LessEqual[x, 7.5e+57]], $MachinePrecision]], t$95$1, N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y\right)\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{+236}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-172} \lor \neg \left(x \leq 7.5 \cdot 10^{+57}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\\
\end{array}
\end{array}
if x < -2.19999999999999978e236 or -4.1999999999999997e104 < x < -1.65e-172 or 7.5000000000000006e57 < x Initial program 100.0%
Taylor expanded in x around inf 84.9%
mul-1-neg84.9%
unsub-neg84.9%
Simplified84.9%
Taylor expanded in z around 0 66.3%
if -2.19999999999999978e236 < x < -4.1999999999999997e104Initial program 99.9%
Taylor expanded in x around inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in y around 0 77.8%
+-commutative77.8%
Simplified77.8%
if -1.65e-172 < x < 7.5000000000000006e57Initial program 99.9%
Taylor expanded in t around inf 81.4%
Taylor expanded in z around 0 52.8%
Final simplification61.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 y))))
(if (<= x -4.2e+233)
t_1
(if (<= x -2.5e+106)
(* x (+ z 1.0))
(if (or (<= x -3.2e-169) (not (<= x 1.6e-63))) t_1 (* y t))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double tmp;
if (x <= -4.2e+233) {
tmp = t_1;
} else if (x <= -2.5e+106) {
tmp = x * (z + 1.0);
} else if ((x <= -3.2e-169) || !(x <= 1.6e-63)) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - y)
if (x <= (-4.2d+233)) then
tmp = t_1
else if (x <= (-2.5d+106)) then
tmp = x * (z + 1.0d0)
else if ((x <= (-3.2d-169)) .or. (.not. (x <= 1.6d-63))) then
tmp = t_1
else
tmp = y * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double tmp;
if (x <= -4.2e+233) {
tmp = t_1;
} else if (x <= -2.5e+106) {
tmp = x * (z + 1.0);
} else if ((x <= -3.2e-169) || !(x <= 1.6e-63)) {
tmp = t_1;
} else {
tmp = y * t;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - y) tmp = 0 if x <= -4.2e+233: tmp = t_1 elif x <= -2.5e+106: tmp = x * (z + 1.0) elif (x <= -3.2e-169) or not (x <= 1.6e-63): tmp = t_1 else: tmp = y * t return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - y)) tmp = 0.0 if (x <= -4.2e+233) tmp = t_1; elseif (x <= -2.5e+106) tmp = Float64(x * Float64(z + 1.0)); elseif ((x <= -3.2e-169) || !(x <= 1.6e-63)) tmp = t_1; else tmp = Float64(y * t); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - y); tmp = 0.0; if (x <= -4.2e+233) tmp = t_1; elseif (x <= -2.5e+106) tmp = x * (z + 1.0); elseif ((x <= -3.2e-169) || ~((x <= 1.6e-63))) tmp = t_1; else tmp = y * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+233], t$95$1, If[LessEqual[x, -2.5e+106], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -3.2e-169], N[Not[LessEqual[x, 1.6e-63]], $MachinePrecision]], t$95$1, N[(y * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+233}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{+106}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{-169} \lor \neg \left(x \leq 1.6 \cdot 10^{-63}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot t\\
\end{array}
\end{array}
if x < -4.19999999999999993e233 or -2.4999999999999999e106 < x < -3.19999999999999995e-169 or 1.59999999999999994e-63 < x Initial program 99.9%
Taylor expanded in x around inf 81.7%
mul-1-neg81.7%
unsub-neg81.7%
Simplified81.7%
Taylor expanded in z around 0 61.8%
if -4.19999999999999993e233 < x < -2.4999999999999999e106Initial program 99.9%
Taylor expanded in x around inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
Simplified92.3%
Taylor expanded in y around 0 77.8%
+-commutative77.8%
Simplified77.8%
if -3.19999999999999995e-169 < x < 1.59999999999999994e-63Initial program 99.9%
Taylor expanded in y around inf 57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in x around 0 57.6%
Taylor expanded in t around inf 50.0%
*-commutative50.0%
Simplified50.0%
Final simplification59.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- x))))
(if (<= x -1.3e+236)
t_1
(if (<= x -1.15e+93)
(* z x)
(if (or (<= x -4.8e-169) (not (<= x 2.3e+50))) t_1 (* y t))))))
double code(double x, double y, double z, double t) {
double t_1 = y * -x;
double tmp;
if (x <= -1.3e+236) {
tmp = t_1;
} else if (x <= -1.15e+93) {
tmp = z * x;
} else if ((x <= -4.8e-169) || !(x <= 2.3e+50)) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = y * -x
if (x <= (-1.3d+236)) then
tmp = t_1
else if (x <= (-1.15d+93)) then
tmp = z * x
else if ((x <= (-4.8d-169)) .or. (.not. (x <= 2.3d+50))) then
tmp = t_1
else
tmp = y * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * -x;
double tmp;
if (x <= -1.3e+236) {
tmp = t_1;
} else if (x <= -1.15e+93) {
tmp = z * x;
} else if ((x <= -4.8e-169) || !(x <= 2.3e+50)) {
tmp = t_1;
} else {
tmp = y * t;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * -x tmp = 0 if x <= -1.3e+236: tmp = t_1 elif x <= -1.15e+93: tmp = z * x elif (x <= -4.8e-169) or not (x <= 2.3e+50): tmp = t_1 else: tmp = y * t return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(-x)) tmp = 0.0 if (x <= -1.3e+236) tmp = t_1; elseif (x <= -1.15e+93) tmp = Float64(z * x); elseif ((x <= -4.8e-169) || !(x <= 2.3e+50)) tmp = t_1; else tmp = Float64(y * t); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * -x; tmp = 0.0; if (x <= -1.3e+236) tmp = t_1; elseif (x <= -1.15e+93) tmp = z * x; elseif ((x <= -4.8e-169) || ~((x <= 2.3e+50))) tmp = t_1; else tmp = y * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * (-x)), $MachinePrecision]}, If[LessEqual[x, -1.3e+236], t$95$1, If[LessEqual[x, -1.15e+93], N[(z * x), $MachinePrecision], If[Or[LessEqual[x, -4.8e-169], N[Not[LessEqual[x, 2.3e+50]], $MachinePrecision]], t$95$1, N[(y * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(-x\right)\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+236}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{+93}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-169} \lor \neg \left(x \leq 2.3 \cdot 10^{+50}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot t\\
\end{array}
\end{array}
if x < -1.3e236 or -1.1500000000000001e93 < x < -4.80000000000000021e-169 or 2.29999999999999997e50 < x Initial program 100.0%
Taylor expanded in x around inf 86.5%
mul-1-neg86.5%
unsub-neg86.5%
Simplified86.5%
Taylor expanded in y around inf 46.6%
mul-1-neg46.6%
Simplified46.6%
if -1.3e236 < x < -1.1500000000000001e93Initial program 99.9%
Taylor expanded in x around inf 86.1%
mul-1-neg86.1%
unsub-neg86.1%
Simplified86.1%
Taylor expanded in z around inf 48.6%
if -4.80000000000000021e-169 < x < 2.29999999999999997e50Initial program 99.9%
Taylor expanded in y around inf 59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in x around 0 59.3%
Taylor expanded in t around inf 43.1%
*-commutative43.1%
Simplified43.1%
Final simplification45.3%
(FPCore (x y z t)
:precision binary64
(if (<= z -2.8e+64)
(* z x)
(if (<= z -5.6e-167)
(* y t)
(if (<= z 1.25e-151) x (if (<= z 1.5e+122) (* y t) (* z x))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.8e+64) {
tmp = z * x;
} else if (z <= -5.6e-167) {
tmp = y * t;
} else if (z <= 1.25e-151) {
tmp = x;
} else if (z <= 1.5e+122) {
tmp = y * t;
} else {
tmp = z * 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 <= (-2.8d+64)) then
tmp = z * x
else if (z <= (-5.6d-167)) then
tmp = y * t
else if (z <= 1.25d-151) then
tmp = x
else if (z <= 1.5d+122) then
tmp = y * t
else
tmp = z * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.8e+64) {
tmp = z * x;
} else if (z <= -5.6e-167) {
tmp = y * t;
} else if (z <= 1.25e-151) {
tmp = x;
} else if (z <= 1.5e+122) {
tmp = y * t;
} else {
tmp = z * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.8e+64: tmp = z * x elif z <= -5.6e-167: tmp = y * t elif z <= 1.25e-151: tmp = x elif z <= 1.5e+122: tmp = y * t else: tmp = z * x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.8e+64) tmp = Float64(z * x); elseif (z <= -5.6e-167) tmp = Float64(y * t); elseif (z <= 1.25e-151) tmp = x; elseif (z <= 1.5e+122) tmp = Float64(y * t); else tmp = Float64(z * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.8e+64) tmp = z * x; elseif (z <= -5.6e-167) tmp = y * t; elseif (z <= 1.25e-151) tmp = x; elseif (z <= 1.5e+122) tmp = y * t; else tmp = z * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.8e+64], N[(z * x), $MachinePrecision], If[LessEqual[z, -5.6e-167], N[(y * t), $MachinePrecision], If[LessEqual[z, 1.25e-151], x, If[LessEqual[z, 1.5e+122], N[(y * t), $MachinePrecision], N[(z * x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+64}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;z \leq -5.6 \cdot 10^{-167}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-151}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+122}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;z \cdot x\\
\end{array}
\end{array}
if z < -2.80000000000000024e64 or 1.49999999999999993e122 < z Initial program 99.9%
Taylor expanded in x around inf 63.3%
mul-1-neg63.3%
unsub-neg63.3%
Simplified63.3%
Taylor expanded in z around inf 54.5%
if -2.80000000000000024e64 < z < -5.59999999999999971e-167 or 1.25000000000000001e-151 < z < 1.49999999999999993e122Initial program 99.9%
Taylor expanded in y around inf 74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in x around 0 71.4%
Taylor expanded in t around inf 34.9%
*-commutative34.9%
Simplified34.9%
if -5.59999999999999971e-167 < z < 1.25000000000000001e-151Initial program 100.0%
Taylor expanded in t around inf 69.0%
Taylor expanded in x around inf 42.7%
Final simplification43.5%
(FPCore (x y z t) :precision binary64 (if (or (<= y -9.1e-7) (not (<= y 0.00018))) (+ x (* y (- t x))) (+ x (* z (- x t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -9.1e-7) || !(y <= 0.00018)) {
tmp = x + (y * (t - x));
} 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 <= (-9.1d-7)) .or. (.not. (y <= 0.00018d0))) then
tmp = x + (y * (t - x))
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 <= -9.1e-7) || !(y <= 0.00018)) {
tmp = x + (y * (t - x));
} else {
tmp = x + (z * (x - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -9.1e-7) or not (y <= 0.00018): tmp = x + (y * (t - x)) else: tmp = x + (z * (x - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -9.1e-7) || !(y <= 0.00018)) tmp = Float64(x + Float64(y * Float64(t - x))); 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 <= -9.1e-7) || ~((y <= 0.00018))) tmp = x + (y * (t - x)); else tmp = x + (z * (x - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -9.1e-7], N[Not[LessEqual[y, 0.00018]], $MachinePrecision]], N[(x + N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.1 \cdot 10^{-7} \lor \neg \left(y \leq 0.00018\right):\\
\;\;\;\;x + y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \left(x - t\right)\\
\end{array}
\end{array}
if y < -9.0999999999999997e-7 or 1.80000000000000011e-4 < y Initial program 99.9%
Taylor expanded in y around inf 81.8%
*-commutative81.8%
Simplified81.8%
if -9.0999999999999997e-7 < y < 1.80000000000000011e-4Initial program 100.0%
Taylor expanded in y around 0 93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Final simplification87.2%
(FPCore (x y z t) :precision binary64 (if (or (<= x -3.8e-87) (not (<= x 3.6e-59))) (* x (+ (- z y) 1.0)) (+ x (* (- y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -3.8e-87) || !(x <= 3.6e-59)) {
tmp = x * ((z - y) + 1.0);
} else {
tmp = x + ((y - z) * 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 <= (-3.8d-87)) .or. (.not. (x <= 3.6d-59))) then
tmp = x * ((z - y) + 1.0d0)
else
tmp = x + ((y - z) * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -3.8e-87) || !(x <= 3.6e-59)) {
tmp = x * ((z - y) + 1.0);
} else {
tmp = x + ((y - z) * t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -3.8e-87) or not (x <= 3.6e-59): tmp = x * ((z - y) + 1.0) else: tmp = x + ((y - z) * t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -3.8e-87) || !(x <= 3.6e-59)) tmp = Float64(x * Float64(Float64(z - y) + 1.0)); else tmp = Float64(x + Float64(Float64(y - z) * t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -3.8e-87) || ~((x <= 3.6e-59))) tmp = x * ((z - y) + 1.0); else tmp = x + ((y - z) * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -3.8e-87], N[Not[LessEqual[x, 3.6e-59]], $MachinePrecision]], N[(x * N[(N[(z - y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{-87} \lor \neg \left(x \leq 3.6 \cdot 10^{-59}\right):\\
\;\;\;\;x \cdot \left(\left(z - y\right) + 1\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - z\right) \cdot t\\
\end{array}
\end{array}
if x < -3.8e-87 or 3.6e-59 < x Initial program 99.9%
Taylor expanded in x around inf 85.5%
mul-1-neg85.5%
unsub-neg85.5%
Simplified85.5%
if -3.8e-87 < x < 3.6e-59Initial program 100.0%
Taylor expanded in t around inf 85.9%
Final simplification85.7%
(FPCore (x y z t) :precision binary64 (if (or (<= x -2.7e-169) (not (<= x 4.4e-65))) (* x (+ (- z y) 1.0)) (+ x (* y t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.7e-169) || !(x <= 4.4e-65)) {
tmp = x * ((z - y) + 1.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 <= (-2.7d-169)) .or. (.not. (x <= 4.4d-65))) then
tmp = x * ((z - y) + 1.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 <= -2.7e-169) || !(x <= 4.4e-65)) {
tmp = x * ((z - y) + 1.0);
} else {
tmp = x + (y * t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -2.7e-169) or not (x <= 4.4e-65): tmp = x * ((z - y) + 1.0) else: tmp = x + (y * t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -2.7e-169) || !(x <= 4.4e-65)) tmp = Float64(x * Float64(Float64(z - y) + 1.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 <= -2.7e-169) || ~((x <= 4.4e-65))) tmp = x * ((z - y) + 1.0); else tmp = x + (y * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -2.7e-169], N[Not[LessEqual[x, 4.4e-65]], $MachinePrecision]], N[(x * N[(N[(z - y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{-169} \lor \neg \left(x \leq 4.4 \cdot 10^{-65}\right):\\
\;\;\;\;x \cdot \left(\left(z - y\right) + 1\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\\
\end{array}
\end{array}
if x < -2.7000000000000002e-169 or 4.40000000000000042e-65 < x Initial program 99.9%
Taylor expanded in x around inf 83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
if -2.7000000000000002e-169 < x < 4.40000000000000042e-65Initial program 99.9%
Taylor expanded in t around inf 89.5%
Taylor expanded in z around 0 54.5%
Final simplification73.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4.6e+18) (not (<= y 185.0))) (* y (- x)) (* x (+ z 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.6e+18) || !(y <= 185.0)) {
tmp = y * -x;
} else {
tmp = x * (z + 1.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 <= (-4.6d+18)) .or. (.not. (y <= 185.0d0))) then
tmp = y * -x
else
tmp = x * (z + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.6e+18) || !(y <= 185.0)) {
tmp = y * -x;
} else {
tmp = x * (z + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -4.6e+18) or not (y <= 185.0): tmp = y * -x else: tmp = x * (z + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -4.6e+18) || !(y <= 185.0)) tmp = Float64(y * Float64(-x)); else tmp = Float64(x * Float64(z + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -4.6e+18) || ~((y <= 185.0))) tmp = y * -x; else tmp = x * (z + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4.6e+18], N[Not[LessEqual[y, 185.0]], $MachinePrecision]], N[(y * (-x)), $MachinePrecision], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.6 \cdot 10^{+18} \lor \neg \left(y \leq 185\right):\\
\;\;\;\;y \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\end{array}
\end{array}
if y < -4.6e18 or 185 < y Initial program 99.9%
Taylor expanded in x around inf 56.8%
mul-1-neg56.8%
unsub-neg56.8%
Simplified56.8%
Taylor expanded in y around inf 47.8%
mul-1-neg47.8%
Simplified47.8%
if -4.6e18 < y < 185Initial program 100.0%
Taylor expanded in x around inf 65.3%
mul-1-neg65.3%
unsub-neg65.3%
Simplified65.3%
Taylor expanded in y around 0 62.5%
+-commutative62.5%
Simplified62.5%
Final simplification55.1%
(FPCore (x y z t) :precision binary64 (if (or (<= z -0.0028) (not (<= z 6.2e-5))) (* z x) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -0.0028) || !(z <= 6.2e-5)) {
tmp = z * x;
} 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 ((z <= (-0.0028d0)) .or. (.not. (z <= 6.2d-5))) then
tmp = z * x
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -0.0028) || !(z <= 6.2e-5)) {
tmp = z * x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -0.0028) or not (z <= 6.2e-5): tmp = z * x else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -0.0028) || !(z <= 6.2e-5)) tmp = Float64(z * x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -0.0028) || ~((z <= 6.2e-5))) tmp = z * x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -0.0028], N[Not[LessEqual[z, 6.2e-5]], $MachinePrecision]], N[(z * x), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0028 \lor \neg \left(z \leq 6.2 \cdot 10^{-5}\right):\\
\;\;\;\;z \cdot x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -0.00279999999999999997 or 6.20000000000000027e-5 < z Initial program 99.9%
Taylor expanded in x around inf 56.8%
mul-1-neg56.8%
unsub-neg56.8%
Simplified56.8%
Taylor expanded in z around inf 42.5%
if -0.00279999999999999997 < z < 6.20000000000000027e-5Initial program 100.0%
Taylor expanded in t around inf 69.8%
Taylor expanded in x around inf 32.8%
Final simplification37.5%
(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 99.9%
(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 99.9%
Taylor expanded in t around inf 59.4%
Taylor expanded in x around inf 18.1%
(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 2024094
(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))))