
(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 (* (- 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%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (* z t))) (t_2 (+ x (* x (- z y)))))
(if (<= x -350000000.0)
t_2
(if (<= x -8.4e-59)
t_1
(if (<= x -5.6e-298)
(* y (- t x))
(if (<= x 8e-99) t_1 (if (<= x 2.1e+39) (+ x (* y t)) t_2)))))))
double code(double x, double y, double z, double t) {
double t_1 = x - (z * t);
double t_2 = x + (x * (z - y));
double tmp;
if (x <= -350000000.0) {
tmp = t_2;
} else if (x <= -8.4e-59) {
tmp = t_1;
} else if (x <= -5.6e-298) {
tmp = y * (t - x);
} else if (x <= 8e-99) {
tmp = t_1;
} else if (x <= 2.1e+39) {
tmp = x + (y * t);
} else {
tmp = t_2;
}
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 - (z * t)
t_2 = x + (x * (z - y))
if (x <= (-350000000.0d0)) then
tmp = t_2
else if (x <= (-8.4d-59)) then
tmp = t_1
else if (x <= (-5.6d-298)) then
tmp = y * (t - x)
else if (x <= 8d-99) then
tmp = t_1
else if (x <= 2.1d+39) then
tmp = x + (y * t)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x - (z * t);
double t_2 = x + (x * (z - y));
double tmp;
if (x <= -350000000.0) {
tmp = t_2;
} else if (x <= -8.4e-59) {
tmp = t_1;
} else if (x <= -5.6e-298) {
tmp = y * (t - x);
} else if (x <= 8e-99) {
tmp = t_1;
} else if (x <= 2.1e+39) {
tmp = x + (y * t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (z * t) t_2 = x + (x * (z - y)) tmp = 0 if x <= -350000000.0: tmp = t_2 elif x <= -8.4e-59: tmp = t_1 elif x <= -5.6e-298: tmp = y * (t - x) elif x <= 8e-99: tmp = t_1 elif x <= 2.1e+39: tmp = x + (y * t) else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(z * t)) t_2 = Float64(x + Float64(x * Float64(z - y))) tmp = 0.0 if (x <= -350000000.0) tmp = t_2; elseif (x <= -8.4e-59) tmp = t_1; elseif (x <= -5.6e-298) tmp = Float64(y * Float64(t - x)); elseif (x <= 8e-99) tmp = t_1; elseif (x <= 2.1e+39) tmp = Float64(x + Float64(y * t)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (z * t); t_2 = x + (x * (z - y)); tmp = 0.0; if (x <= -350000000.0) tmp = t_2; elseif (x <= -8.4e-59) tmp = t_1; elseif (x <= -5.6e-298) tmp = y * (t - x); elseif (x <= 8e-99) tmp = t_1; elseif (x <= 2.1e+39) tmp = x + (y * t); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -350000000.0], t$95$2, If[LessEqual[x, -8.4e-59], t$95$1, If[LessEqual[x, -5.6e-298], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e-99], t$95$1, If[LessEqual[x, 2.1e+39], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - z \cdot t\\
t_2 := x + x \cdot \left(z - y\right)\\
\mathbf{if}\;x \leq -350000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -8.4 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-298}:\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{+39}:\\
\;\;\;\;x + y \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -3.5e8 or 2.0999999999999999e39 < x Initial program 100.0%
Taylor expanded in t around 0 91.1%
mul-1-neg91.1%
distribute-rgt-neg-in91.1%
sub-neg91.1%
+-commutative91.1%
distribute-neg-in91.1%
remove-double-neg91.1%
sub-neg91.1%
Simplified91.1%
if -3.5e8 < x < -8.39999999999999986e-59 or -5.59999999999999985e-298 < x < 8.0000000000000002e-99Initial program 100.0%
Taylor expanded in y around 0 73.8%
mul-1-neg73.8%
unsub-neg73.8%
Simplified73.8%
Taylor expanded in t around inf 68.2%
if -8.39999999999999986e-59 < x < -5.59999999999999985e-298Initial program 100.0%
Taylor expanded in y around inf 67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in x around 0 67.1%
Taylor expanded in y around inf 62.1%
mul-1-neg62.1%
unsub-neg62.1%
Simplified62.1%
if 8.0000000000000002e-99 < x < 2.0999999999999999e39Initial program 100.0%
Taylor expanded in t around inf 81.6%
Taylor expanded in y around inf 73.6%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.25e+235)
(* x z)
(if (<= z -270.0)
(* z (- t))
(if (<= z -9.5e-160)
(* y t)
(if (<= z -1.3e-275) x (if (<= z 6.5e-11) (* y t) (* x z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.25e+235) {
tmp = x * z;
} else if (z <= -270.0) {
tmp = z * -t;
} else if (z <= -9.5e-160) {
tmp = y * t;
} else if (z <= -1.3e-275) {
tmp = x;
} else if (z <= 6.5e-11) {
tmp = y * t;
} else {
tmp = 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 (z <= (-1.25d+235)) then
tmp = x * z
else if (z <= (-270.0d0)) then
tmp = z * -t
else if (z <= (-9.5d-160)) then
tmp = y * t
else if (z <= (-1.3d-275)) then
tmp = x
else if (z <= 6.5d-11) then
tmp = y * t
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.25e+235) {
tmp = x * z;
} else if (z <= -270.0) {
tmp = z * -t;
} else if (z <= -9.5e-160) {
tmp = y * t;
} else if (z <= -1.3e-275) {
tmp = x;
} else if (z <= 6.5e-11) {
tmp = y * t;
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.25e+235: tmp = x * z elif z <= -270.0: tmp = z * -t elif z <= -9.5e-160: tmp = y * t elif z <= -1.3e-275: tmp = x elif z <= 6.5e-11: tmp = y * t else: tmp = x * z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.25e+235) tmp = Float64(x * z); elseif (z <= -270.0) tmp = Float64(z * Float64(-t)); elseif (z <= -9.5e-160) tmp = Float64(y * t); elseif (z <= -1.3e-275) tmp = x; elseif (z <= 6.5e-11) tmp = Float64(y * t); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.25e+235) tmp = x * z; elseif (z <= -270.0) tmp = z * -t; elseif (z <= -9.5e-160) tmp = y * t; elseif (z <= -1.3e-275) tmp = x; elseif (z <= 6.5e-11) tmp = y * t; else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.25e+235], N[(x * z), $MachinePrecision], If[LessEqual[z, -270.0], N[(z * (-t)), $MachinePrecision], If[LessEqual[z, -9.5e-160], N[(y * t), $MachinePrecision], If[LessEqual[z, -1.3e-275], x, If[LessEqual[z, 6.5e-11], N[(y * t), $MachinePrecision], N[(x * z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+235}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq -270:\\
\;\;\;\;z \cdot \left(-t\right)\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-160}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-275}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-11}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if z < -1.25000000000000007e235 or 6.49999999999999953e-11 < z Initial program 100.0%
Taylor expanded in t around 0 64.9%
mul-1-neg64.9%
distribute-rgt-neg-in64.9%
sub-neg64.9%
+-commutative64.9%
distribute-neg-in64.9%
remove-double-neg64.9%
sub-neg64.9%
Simplified64.9%
Taylor expanded in y around 0 55.6%
Taylor expanded in z around inf 53.2%
if -1.25000000000000007e235 < z < -270Initial program 100.0%
Taylor expanded in y around 0 76.0%
mul-1-neg76.0%
unsub-neg76.0%
Simplified76.0%
Taylor expanded in t around inf 49.0%
Taylor expanded in x around 0 49.0%
mul-1-neg49.0%
distribute-rgt-neg-out49.0%
Simplified49.0%
if -270 < z < -9.5000000000000002e-160 or -1.29999999999999996e-275 < z < 6.49999999999999953e-11Initial program 100.0%
Taylor expanded in y around inf 93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in x around 0 92.7%
Taylor expanded in t around inf 53.3%
*-commutative53.3%
Simplified53.3%
if -9.5000000000000002e-160 < z < -1.29999999999999996e-275Initial program 100.0%
Taylor expanded in y around inf 91.4%
*-commutative91.4%
Simplified91.4%
Taylor expanded in y around 0 64.0%
Final simplification53.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))))
(if (<= z -3.9e+102)
(* x z)
(if (<= z -2.3e-162)
t_1
(if (<= z -6.2e-268)
(* x (- 1.0 y))
(if (<= z 2.1e+72) t_1 (* x z)))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (z <= -3.9e+102) {
tmp = x * z;
} else if (z <= -2.3e-162) {
tmp = t_1;
} else if (z <= -6.2e-268) {
tmp = x * (1.0 - y);
} else if (z <= 2.1e+72) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = y * (t - x)
if (z <= (-3.9d+102)) then
tmp = x * z
else if (z <= (-2.3d-162)) then
tmp = t_1
else if (z <= (-6.2d-268)) then
tmp = x * (1.0d0 - y)
else if (z <= 2.1d+72) then
tmp = t_1
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (z <= -3.9e+102) {
tmp = x * z;
} else if (z <= -2.3e-162) {
tmp = t_1;
} else if (z <= -6.2e-268) {
tmp = x * (1.0 - y);
} else if (z <= 2.1e+72) {
tmp = t_1;
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) tmp = 0 if z <= -3.9e+102: tmp = x * z elif z <= -2.3e-162: tmp = t_1 elif z <= -6.2e-268: tmp = x * (1.0 - y) elif z <= 2.1e+72: tmp = t_1 else: tmp = x * z return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) tmp = 0.0 if (z <= -3.9e+102) tmp = Float64(x * z); elseif (z <= -2.3e-162) tmp = t_1; elseif (z <= -6.2e-268) tmp = Float64(x * Float64(1.0 - y)); elseif (z <= 2.1e+72) tmp = t_1; else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t - x); tmp = 0.0; if (z <= -3.9e+102) tmp = x * z; elseif (z <= -2.3e-162) tmp = t_1; elseif (z <= -6.2e-268) tmp = x * (1.0 - y); elseif (z <= 2.1e+72) tmp = t_1; else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.9e+102], N[(x * z), $MachinePrecision], If[LessEqual[z, -2.3e-162], t$95$1, If[LessEqual[z, -6.2e-268], N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e+72], t$95$1, N[(x * z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;z \leq -3.9 \cdot 10^{+102}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-268}:\\
\;\;\;\;x \cdot \left(1 - y\right)\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if z < -3.8999999999999998e102 or 2.1000000000000001e72 < z Initial program 100.0%
Taylor expanded in t around 0 63.9%
mul-1-neg63.9%
distribute-rgt-neg-in63.9%
sub-neg63.9%
+-commutative63.9%
distribute-neg-in63.9%
remove-double-neg63.9%
sub-neg63.9%
Simplified63.9%
Taylor expanded in y around 0 59.8%
Taylor expanded in z around inf 59.8%
if -3.8999999999999998e102 < z < -2.2999999999999998e-162 or -6.1999999999999996e-268 < z < 2.1000000000000001e72Initial program 100.0%
Taylor expanded in y around inf 78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in x around 0 77.4%
Taylor expanded in y around inf 61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
if -2.2999999999999998e-162 < z < -6.1999999999999996e-268Initial program 100.0%
Taylor expanded in t around 0 81.8%
mul-1-neg81.8%
distribute-rgt-neg-in81.8%
sub-neg81.8%
+-commutative81.8%
distribute-neg-in81.8%
remove-double-neg81.8%
sub-neg81.8%
Simplified81.8%
Taylor expanded in z around 0 81.8%
*-rgt-identity81.8%
mul-1-neg81.8%
distribute-rgt-neg-out81.8%
distribute-lft-in81.8%
unsub-neg81.8%
Simplified81.8%
(FPCore (x y z t)
:precision binary64
(if (<= z -7e+40)
(* x z)
(if (<= z -7e-160)
(* y t)
(if (<= z -7e-271) x (if (<= z 6.5e-11) (* y t) (* x z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7e+40) {
tmp = x * z;
} else if (z <= -7e-160) {
tmp = y * t;
} else if (z <= -7e-271) {
tmp = x;
} else if (z <= 6.5e-11) {
tmp = y * t;
} else {
tmp = 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 (z <= (-7d+40)) then
tmp = x * z
else if (z <= (-7d-160)) then
tmp = y * t
else if (z <= (-7d-271)) then
tmp = x
else if (z <= 6.5d-11) then
tmp = y * t
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7e+40) {
tmp = x * z;
} else if (z <= -7e-160) {
tmp = y * t;
} else if (z <= -7e-271) {
tmp = x;
} else if (z <= 6.5e-11) {
tmp = y * t;
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7e+40: tmp = x * z elif z <= -7e-160: tmp = y * t elif z <= -7e-271: tmp = x elif z <= 6.5e-11: tmp = y * t else: tmp = x * z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7e+40) tmp = Float64(x * z); elseif (z <= -7e-160) tmp = Float64(y * t); elseif (z <= -7e-271) tmp = x; elseif (z <= 6.5e-11) tmp = Float64(y * t); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7e+40) tmp = x * z; elseif (z <= -7e-160) tmp = y * t; elseif (z <= -7e-271) tmp = x; elseif (z <= 6.5e-11) tmp = y * t; else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7e+40], N[(x * z), $MachinePrecision], If[LessEqual[z, -7e-160], N[(y * t), $MachinePrecision], If[LessEqual[z, -7e-271], x, If[LessEqual[z, 6.5e-11], N[(y * t), $MachinePrecision], N[(x * z), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+40}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-160}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-271}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-11}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if z < -6.9999999999999998e40 or 6.49999999999999953e-11 < z Initial program 100.0%
Taylor expanded in t around 0 60.9%
mul-1-neg60.9%
distribute-rgt-neg-in60.9%
sub-neg60.9%
+-commutative60.9%
distribute-neg-in60.9%
remove-double-neg60.9%
sub-neg60.9%
Simplified60.9%
Taylor expanded in y around 0 50.0%
Taylor expanded in z around inf 48.2%
if -6.9999999999999998e40 < z < -7.0000000000000006e-160 or -6.9999999999999999e-271 < z < 6.49999999999999953e-11Initial program 100.0%
Taylor expanded in y around inf 90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in x around 0 89.4%
Taylor expanded in t around inf 50.8%
*-commutative50.8%
Simplified50.8%
if -7.0000000000000006e-160 < z < -6.9999999999999999e-271Initial program 100.0%
Taylor expanded in y around inf 91.4%
*-commutative91.4%
Simplified91.4%
Taylor expanded in y around 0 64.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))))
(if (<= y -0.00185)
t_1
(if (<= y 1.2e-96) (- x (* z t)) (if (<= y 2.8e+16) (+ x (* x z)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (y <= -0.00185) {
tmp = t_1;
} else if (y <= 1.2e-96) {
tmp = x - (z * t);
} else if (y <= 2.8e+16) {
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 * (t - x)
if (y <= (-0.00185d0)) then
tmp = t_1
else if (y <= 1.2d-96) then
tmp = x - (z * t)
else if (y <= 2.8d+16) 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 * (t - x);
double tmp;
if (y <= -0.00185) {
tmp = t_1;
} else if (y <= 1.2e-96) {
tmp = x - (z * t);
} else if (y <= 2.8e+16) {
tmp = x + (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) tmp = 0 if y <= -0.00185: tmp = t_1 elif y <= 1.2e-96: tmp = x - (z * t) elif y <= 2.8e+16: tmp = x + (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) tmp = 0.0 if (y <= -0.00185) tmp = t_1; elseif (y <= 1.2e-96) tmp = Float64(x - Float64(z * t)); elseif (y <= 2.8e+16) 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 * (t - x); tmp = 0.0; if (y <= -0.00185) tmp = t_1; elseif (y <= 1.2e-96) tmp = x - (z * t); elseif (y <= 2.8e+16) tmp = x + (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.00185], t$95$1, If[LessEqual[y, 1.2e-96], N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+16], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -0.00185:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-96}:\\
\;\;\;\;x - z \cdot t\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+16}:\\
\;\;\;\;x + x \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -0.0018500000000000001 or 2.8e16 < y Initial program 100.0%
Taylor expanded in y around inf 77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in x around 0 74.4%
Taylor expanded in y around inf 76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
if -0.0018500000000000001 < y < 1.2000000000000001e-96Initial program 100.0%
Taylor expanded in y around 0 93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Taylor expanded in t around inf 68.1%
if 1.2000000000000001e-96 < y < 2.8e16Initial program 100.0%
Taylor expanded in t around 0 61.1%
mul-1-neg61.1%
distribute-rgt-neg-in61.1%
sub-neg61.1%
+-commutative61.1%
distribute-neg-in61.1%
remove-double-neg61.1%
sub-neg61.1%
Simplified61.1%
Taylor expanded in y around 0 57.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -2.35e+235)
(* x z)
(if (<= z -8.8e+18)
(* z (- t))
(if (<= z 1.8e+71) (* x (- 1.0 y)) (* x z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.35e+235) {
tmp = x * z;
} else if (z <= -8.8e+18) {
tmp = z * -t;
} else if (z <= 1.8e+71) {
tmp = x * (1.0 - y);
} else {
tmp = 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 (z <= (-2.35d+235)) then
tmp = x * z
else if (z <= (-8.8d+18)) then
tmp = z * -t
else if (z <= 1.8d+71) then
tmp = x * (1.0d0 - y)
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.35e+235) {
tmp = x * z;
} else if (z <= -8.8e+18) {
tmp = z * -t;
} else if (z <= 1.8e+71) {
tmp = x * (1.0 - y);
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.35e+235: tmp = x * z elif z <= -8.8e+18: tmp = z * -t elif z <= 1.8e+71: tmp = x * (1.0 - y) else: tmp = x * z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.35e+235) tmp = Float64(x * z); elseif (z <= -8.8e+18) tmp = Float64(z * Float64(-t)); elseif (z <= 1.8e+71) tmp = Float64(x * Float64(1.0 - y)); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.35e+235) tmp = x * z; elseif (z <= -8.8e+18) tmp = z * -t; elseif (z <= 1.8e+71) tmp = x * (1.0 - y); else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.35e+235], N[(x * z), $MachinePrecision], If[LessEqual[z, -8.8e+18], N[(z * (-t)), $MachinePrecision], If[LessEqual[z, 1.8e+71], N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], N[(x * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.35 \cdot 10^{+235}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq -8.8 \cdot 10^{+18}:\\
\;\;\;\;z \cdot \left(-t\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if z < -2.3499999999999999e235 or 1.8e71 < z Initial program 100.0%
Taylor expanded in t around 0 65.5%
mul-1-neg65.5%
distribute-rgt-neg-in65.5%
sub-neg65.5%
+-commutative65.5%
distribute-neg-in65.5%
remove-double-neg65.5%
sub-neg65.5%
Simplified65.5%
Taylor expanded in y around 0 61.8%
Taylor expanded in z around inf 61.8%
if -2.3499999999999999e235 < z < -8.8e18Initial program 100.0%
Taylor expanded in y around 0 78.4%
mul-1-neg78.4%
unsub-neg78.4%
Simplified78.4%
Taylor expanded in t around inf 51.1%
Taylor expanded in x around 0 50.9%
mul-1-neg50.9%
distribute-rgt-neg-out50.9%
Simplified50.9%
if -8.8e18 < z < 1.8e71Initial program 100.0%
Taylor expanded in t around 0 53.0%
mul-1-neg53.0%
distribute-rgt-neg-in53.0%
sub-neg53.0%
+-commutative53.0%
distribute-neg-in53.0%
remove-double-neg53.0%
sub-neg53.0%
Simplified53.0%
Taylor expanded in z around 0 49.9%
*-rgt-identity49.9%
mul-1-neg49.9%
distribute-rgt-neg-out49.9%
distribute-lft-in49.9%
unsub-neg49.9%
Simplified49.9%
Final simplification53.7%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1000000000.0) (not (<= x 3.8e+40))) (+ x (* x (- z y))) (+ x (* (- y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1000000000.0) || !(x <= 3.8e+40)) {
tmp = x + (x * (z - y));
} 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 <= (-1000000000.0d0)) .or. (.not. (x <= 3.8d+40))) then
tmp = x + (x * (z - y))
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 <= -1000000000.0) || !(x <= 3.8e+40)) {
tmp = x + (x * (z - y));
} else {
tmp = x + ((y - z) * t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1000000000.0) or not (x <= 3.8e+40): tmp = x + (x * (z - y)) else: tmp = x + ((y - z) * t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1000000000.0) || !(x <= 3.8e+40)) tmp = Float64(x + Float64(x * Float64(z - y))); 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 <= -1000000000.0) || ~((x <= 3.8e+40))) tmp = x + (x * (z - y)); else tmp = x + ((y - z) * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1000000000.0], N[Not[LessEqual[x, 3.8e+40]], $MachinePrecision]], N[(x + N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1000000000 \lor \neg \left(x \leq 3.8 \cdot 10^{+40}\right):\\
\;\;\;\;x + x \cdot \left(z - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - z\right) \cdot t\\
\end{array}
\end{array}
if x < -1e9 or 3.80000000000000004e40 < x Initial program 100.0%
Taylor expanded in t around 0 91.1%
mul-1-neg91.1%
distribute-rgt-neg-in91.1%
sub-neg91.1%
+-commutative91.1%
distribute-neg-in91.1%
remove-double-neg91.1%
sub-neg91.1%
Simplified91.1%
if -1e9 < x < 3.80000000000000004e40Initial program 100.0%
Taylor expanded in t around inf 85.1%
Final simplification87.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -6.7e+40) (not (<= z 2.7e-11))) (+ x (* x (- z y))) (+ x (* y (- t x)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6.7e+40) || !(z <= 2.7e-11)) {
tmp = x + (x * (z - y));
} 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 <= (-6.7d+40)) .or. (.not. (z <= 2.7d-11))) then
tmp = x + (x * (z - y))
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 <= -6.7e+40) || !(z <= 2.7e-11)) {
tmp = x + (x * (z - y));
} else {
tmp = x + (y * (t - x));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -6.7e+40) or not (z <= 2.7e-11): tmp = x + (x * (z - y)) else: tmp = x + (y * (t - x)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -6.7e+40) || !(z <= 2.7e-11)) tmp = Float64(x + Float64(x * Float64(z - y))); 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 <= -6.7e+40) || ~((z <= 2.7e-11))) tmp = x + (x * (z - y)); else tmp = x + (y * (t - x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -6.7e+40], N[Not[LessEqual[z, 2.7e-11]], $MachinePrecision]], N[(x + N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.7 \cdot 10^{+40} \lor \neg \left(z \leq 2.7 \cdot 10^{-11}\right):\\
\;\;\;\;x + x \cdot \left(z - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(t - x\right)\\
\end{array}
\end{array}
if z < -6.70000000000000022e40 or 2.70000000000000005e-11 < z Initial program 100.0%
Taylor expanded in t around 0 60.9%
mul-1-neg60.9%
distribute-rgt-neg-in60.9%
sub-neg60.9%
+-commutative60.9%
distribute-neg-in60.9%
remove-double-neg60.9%
sub-neg60.9%
Simplified60.9%
if -6.70000000000000022e40 < z < 2.70000000000000005e-11Initial program 100.0%
Taylor expanded in y around inf 90.5%
*-commutative90.5%
Simplified90.5%
Final simplification74.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -250000000.0) (not (<= y 4.8e+15))) (* y (- t x)) (+ x (* x z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -250000000.0) || !(y <= 4.8e+15)) {
tmp = y * (t - x);
} 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 ((y <= (-250000000.0d0)) .or. (.not. (y <= 4.8d+15))) then
tmp = y * (t - x)
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 ((y <= -250000000.0) || !(y <= 4.8e+15)) {
tmp = y * (t - x);
} else {
tmp = x + (x * z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -250000000.0) or not (y <= 4.8e+15): tmp = y * (t - x) else: tmp = x + (x * z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -250000000.0) || !(y <= 4.8e+15)) tmp = Float64(y * Float64(t - x)); else tmp = Float64(x + Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -250000000.0) || ~((y <= 4.8e+15))) tmp = y * (t - x); else tmp = x + (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -250000000.0], N[Not[LessEqual[y, 4.8e+15]], $MachinePrecision]], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], N[(x + N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -250000000 \lor \neg \left(y \leq 4.8 \cdot 10^{+15}\right):\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x + x \cdot z\\
\end{array}
\end{array}
if y < -2.5e8 or 4.8e15 < y Initial program 100.0%
Taylor expanded in y around inf 77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in x around 0 75.1%
Taylor expanded in y around inf 77.4%
mul-1-neg77.4%
unsub-neg77.4%
Simplified77.4%
if -2.5e8 < y < 4.8e15Initial program 100.0%
Taylor expanded in t around 0 59.2%
mul-1-neg59.2%
distribute-rgt-neg-in59.2%
sub-neg59.2%
+-commutative59.2%
distribute-neg-in59.2%
remove-double-neg59.2%
sub-neg59.2%
Simplified59.2%
Taylor expanded in y around 0 58.6%
Final simplification66.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.0) (not (<= z 1.9e-7))) (* x z) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 1.9e-7)) {
tmp = x * z;
} 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 <= (-1.0d0)) .or. (.not. (z <= 1.9d-7))) then
tmp = x * z
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 <= -1.0) || !(z <= 1.9e-7)) {
tmp = x * z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.0) or not (z <= 1.9e-7): tmp = x * z else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.0) || !(z <= 1.9e-7)) tmp = Float64(x * z); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.0) || ~((z <= 1.9e-7))) tmp = x * z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 1.9e-7]], $MachinePrecision]], N[(x * z), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1.9 \cdot 10^{-7}\right):\\
\;\;\;\;x \cdot z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1 or 1.90000000000000007e-7 < z Initial program 100.0%
Taylor expanded in t around 0 59.5%
mul-1-neg59.5%
distribute-rgt-neg-in59.5%
sub-neg59.5%
+-commutative59.5%
distribute-neg-in59.5%
remove-double-neg59.5%
sub-neg59.5%
Simplified59.5%
Taylor expanded in y around 0 47.6%
Taylor expanded in z around inf 46.7%
if -1 < z < 1.90000000000000007e-7Initial program 100.0%
Taylor expanded in y around inf 92.1%
*-commutative92.1%
Simplified92.1%
Taylor expanded in y around 0 32.8%
Final simplification40.5%
(FPCore (x y z t) :precision binary64 (if (<= z -2.2e+68) (* x y) x))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.2e+68) {
tmp = x * y;
} 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 <= (-2.2d+68)) then
tmp = x * y
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 <= -2.2e+68) {
tmp = x * y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.2e+68: tmp = x * y else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.2e+68) tmp = Float64(x * y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.2e+68) tmp = x * y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.2e+68], N[(x * y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+68}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.19999999999999987e68Initial program 100.0%
Taylor expanded in t around 0 65.1%
mul-1-neg65.1%
distribute-rgt-neg-in65.1%
sub-neg65.1%
+-commutative65.1%
distribute-neg-in65.1%
remove-double-neg65.1%
sub-neg65.1%
Simplified65.1%
Taylor expanded in z around 0 13.3%
*-rgt-identity13.3%
mul-1-neg13.3%
distribute-rgt-neg-out13.3%
distribute-lft-in13.3%
unsub-neg13.3%
Simplified13.3%
Taylor expanded in y around inf 13.8%
neg-mul-113.8%
Simplified13.8%
neg-sub013.8%
sub-neg13.8%
add-sqr-sqrt5.3%
sqrt-unprod10.6%
sqr-neg10.6%
sqrt-unprod3.1%
add-sqr-sqrt15.7%
Applied egg-rr15.7%
+-lft-identity15.7%
Simplified15.7%
if -2.19999999999999987e68 < z Initial program 100.0%
Taylor expanded in y around inf 62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y around 0 19.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 y around inf 55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in y around 0 16.4%
(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 2024118
(FPCore (x y z t)
:name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
:precision binary64
:alt
(! :herbie-platform default (+ x (+ (* t (- y z)) (* (- x) (- y z)))))
(+ x (* (- y z) (- t x))))