
(FPCore (x y z t) :precision binary64 (* (- (* x y) (* z y)) t))
double code(double x, double y, double z, double t) {
return ((x * y) - (z * y)) * t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x * y) - (z * y)) * t
end function
public static double code(double x, double y, double z, double t) {
return ((x * y) - (z * y)) * t;
}
def code(x, y, z, t): return ((x * y) - (z * y)) * t
function code(x, y, z, t) return Float64(Float64(Float64(x * y) - Float64(z * y)) * t) end
function tmp = code(x, y, z, t) tmp = ((x * y) - (z * y)) * t; end
code[x_, y_, z_, t_] := N[(N[(N[(x * y), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot y - z \cdot y\right) \cdot t
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (* (- (* x y) (* z y)) t))
double code(double x, double y, double z, double t) {
return ((x * y) - (z * y)) * t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x * y) - (z * y)) * t
end function
public static double code(double x, double y, double z, double t) {
return ((x * y) - (z * y)) * t;
}
def code(x, y, z, t): return ((x * y) - (z * y)) * t
function code(x, y, z, t) return Float64(Float64(Float64(x * y) - Float64(z * y)) * t) end
function tmp = code(x, y, z, t) tmp = ((x * y) - (z * y)) * t; end
code[x_, y_, z_, t_] := N[(N[(N[(x * y), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot y - z \cdot y\right) \cdot t
\end{array}
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -7e+53) (* (* y t) (- x z)) (* t (* y (- x z)))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7e+53) {
tmp = (y * t) * (x - z);
} else {
tmp = t * (y * (x - z));
}
return tmp;
}
NOTE: y and t should be sorted in increasing order before calling this function.
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 <= (-7d+53)) then
tmp = (y * t) * (x - z)
else
tmp = t * (y * (x - z))
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7e+53) {
tmp = (y * t) * (x - z);
} else {
tmp = t * (y * (x - z));
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if y <= -7e+53: tmp = (y * t) * (x - z) else: tmp = t * (y * (x - z)) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -7e+53) tmp = Float64(Float64(y * t) * Float64(x - z)); else tmp = Float64(t * Float64(y * Float64(x - z))); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -7e+53)
tmp = (y * t) * (x - z);
else
tmp = t * (y * (x - z));
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -7e+53], N[(N[(y * t), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision], N[(t * N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+53}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(x - z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\end{array}
\end{array}
if y < -7.00000000000000038e53Initial program 77.3%
*-commutative77.3%
distribute-rgt-out--82.4%
associate-*r*96.7%
*-commutative96.7%
Simplified96.7%
if -7.00000000000000038e53 < y Initial program 91.9%
distribute-rgt-out--93.5%
Simplified93.5%
Final simplification94.2%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (or (<= x -9.6e-21)
(and (not (<= x 9.5e-26)) (or (<= x 1.12e+59) (not (<= x 6e+106)))))
(* y (* t x))
(* y (* t (- z)))))assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -9.6e-21) || (!(x <= 9.5e-26) && ((x <= 1.12e+59) || !(x <= 6e+106)))) {
tmp = y * (t * x);
} else {
tmp = y * (t * -z);
}
return tmp;
}
NOTE: y and t should be sorted in increasing order before calling this function.
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 <= (-9.6d-21)) .or. (.not. (x <= 9.5d-26)) .and. (x <= 1.12d+59) .or. (.not. (x <= 6d+106))) then
tmp = y * (t * x)
else
tmp = y * (t * -z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -9.6e-21) || (!(x <= 9.5e-26) && ((x <= 1.12e+59) || !(x <= 6e+106)))) {
tmp = y * (t * x);
} else {
tmp = y * (t * -z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if (x <= -9.6e-21) or (not (x <= 9.5e-26) and ((x <= 1.12e+59) or not (x <= 6e+106))): tmp = y * (t * x) else: tmp = y * (t * -z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if ((x <= -9.6e-21) || (!(x <= 9.5e-26) && ((x <= 1.12e+59) || !(x <= 6e+106)))) tmp = Float64(y * Float64(t * x)); else tmp = Float64(y * Float64(t * Float64(-z))); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((x <= -9.6e-21) || (~((x <= 9.5e-26)) && ((x <= 1.12e+59) || ~((x <= 6e+106)))))
tmp = y * (t * x);
else
tmp = y * (t * -z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[x, -9.6e-21], And[N[Not[LessEqual[x, 9.5e-26]], $MachinePrecision], Or[LessEqual[x, 1.12e+59], N[Not[LessEqual[x, 6e+106]], $MachinePrecision]]]], N[(y * N[(t * x), $MachinePrecision]), $MachinePrecision], N[(y * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.6 \cdot 10^{-21} \lor \neg \left(x \leq 9.5 \cdot 10^{-26}\right) \land \left(x \leq 1.12 \cdot 10^{+59} \lor \neg \left(x \leq 6 \cdot 10^{+106}\right)\right):\\
\;\;\;\;y \cdot \left(t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t \cdot \left(-z\right)\right)\\
\end{array}
\end{array}
if x < -9.5999999999999997e-21 or 9.4999999999999995e-26 < x < 1.1199999999999999e59 or 6.0000000000000001e106 < x Initial program 88.1%
*-commutative88.1%
distribute-rgt-out--91.1%
associate-*r*84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in x around inf 76.7%
associate-*r*78.9%
*-commutative78.9%
Simplified78.9%
if -9.5999999999999997e-21 < x < 9.4999999999999995e-26 or 1.1199999999999999e59 < x < 6.0000000000000001e106Initial program 89.1%
*-commutative89.1%
distribute-rgt-out--90.7%
associate-*r*90.7%
*-commutative90.7%
Simplified90.7%
Taylor expanded in x around 0 78.9%
mul-1-neg78.9%
*-commutative78.9%
associate-*l*82.1%
distribute-rgt-neg-in82.1%
distribute-rgt-neg-in82.1%
Simplified82.1%
Final simplification80.4%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (* t x))))
(if (<= x -2.1e-19)
t_1
(if (<= x 1.4e-27)
(* t (* y (- z)))
(if (or (<= x 4.1e+57) (not (<= x 6e+106))) t_1 (* y (* t (- z))))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = y * (t * x);
double tmp;
if (x <= -2.1e-19) {
tmp = t_1;
} else if (x <= 1.4e-27) {
tmp = t * (y * -z);
} else if ((x <= 4.1e+57) || !(x <= 6e+106)) {
tmp = t_1;
} else {
tmp = y * (t * -z);
}
return tmp;
}
NOTE: y and t should be sorted in increasing order before calling this function.
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 (x <= (-2.1d-19)) then
tmp = t_1
else if (x <= 1.4d-27) then
tmp = t * (y * -z)
else if ((x <= 4.1d+57) .or. (.not. (x <= 6d+106))) then
tmp = t_1
else
tmp = y * (t * -z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = y * (t * x);
double tmp;
if (x <= -2.1e-19) {
tmp = t_1;
} else if (x <= 1.4e-27) {
tmp = t * (y * -z);
} else if ((x <= 4.1e+57) || !(x <= 6e+106)) {
tmp = t_1;
} else {
tmp = y * (t * -z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = y * (t * x) tmp = 0 if x <= -2.1e-19: tmp = t_1 elif x <= 1.4e-27: tmp = t * (y * -z) elif (x <= 4.1e+57) or not (x <= 6e+106): tmp = t_1 else: tmp = y * (t * -z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(y * Float64(t * x)) tmp = 0.0 if (x <= -2.1e-19) tmp = t_1; elseif (x <= 1.4e-27) tmp = Float64(t * Float64(y * Float64(-z))); elseif ((x <= 4.1e+57) || !(x <= 6e+106)) tmp = t_1; else tmp = Float64(y * Float64(t * Float64(-z))); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = y * (t * x);
tmp = 0.0;
if (x <= -2.1e-19)
tmp = t_1;
elseif (x <= 1.4e-27)
tmp = t * (y * -z);
elseif ((x <= 4.1e+57) || ~((x <= 6e+106)))
tmp = t_1;
else
tmp = y * (t * -z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.1e-19], t$95$1, If[LessEqual[x, 1.4e-27], N[(t * N[(y * (-z)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 4.1e+57], N[Not[LessEqual[x, 6e+106]], $MachinePrecision]], t$95$1, N[(y * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := y \cdot \left(t \cdot x\right)\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-27}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-z\right)\right)\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{+57} \lor \neg \left(x \leq 6 \cdot 10^{+106}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t \cdot \left(-z\right)\right)\\
\end{array}
\end{array}
if x < -2.0999999999999999e-19 or 1.4e-27 < x < 4.1e57 or 6.0000000000000001e106 < x Initial program 88.1%
*-commutative88.1%
distribute-rgt-out--91.1%
associate-*r*84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in x around inf 76.7%
associate-*r*78.9%
*-commutative78.9%
Simplified78.9%
if -2.0999999999999999e-19 < x < 1.4e-27Initial program 91.0%
distribute-rgt-out--91.0%
Simplified91.0%
Taylor expanded in x around 0 79.2%
mul-1-neg79.2%
distribute-rgt-neg-out79.2%
Simplified79.2%
if 4.1e57 < x < 6.0000000000000001e106Initial program 76.1%
*-commutative76.1%
distribute-rgt-out--88.6%
associate-*r*82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in x around 0 76.8%
mul-1-neg76.8%
*-commutative76.8%
associate-*l*88.0%
distribute-rgt-neg-in88.0%
distribute-rgt-neg-in88.0%
Simplified88.0%
Final simplification79.6%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= z 6.4e+149) (* (* y t) (- x z)) (* t (* y (- z)))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 6.4e+149) {
tmp = (y * t) * (x - z);
} else {
tmp = t * (y * -z);
}
return tmp;
}
NOTE: y and t should be sorted in increasing order before calling this function.
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.4d+149) then
tmp = (y * t) * (x - z)
else
tmp = t * (y * -z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 6.4e+149) {
tmp = (y * t) * (x - z);
} else {
tmp = t * (y * -z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if z <= 6.4e+149: tmp = (y * t) * (x - z) else: tmp = t * (y * -z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (z <= 6.4e+149) tmp = Float64(Float64(y * t) * Float64(x - z)); else tmp = Float64(t * Float64(y * Float64(-z))); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= 6.4e+149)
tmp = (y * t) * (x - z);
else
tmp = t * (y * -z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, 6.4e+149], N[(N[(y * t), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision], N[(t * N[(y * (-z)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq 6.4 \cdot 10^{+149}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(x - z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(-z\right)\right)\\
\end{array}
\end{array}
if z < 6.4000000000000003e149Initial program 89.0%
*-commutative89.0%
distribute-rgt-out--90.4%
associate-*r*89.3%
*-commutative89.3%
Simplified89.3%
if 6.4000000000000003e149 < z Initial program 85.4%
distribute-rgt-out--94.3%
Simplified94.3%
Taylor expanded in x around 0 85.9%
mul-1-neg85.9%
distribute-rgt-neg-out85.9%
Simplified85.9%
Final simplification88.9%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -1.48e+51) (* (* y t) x) (* t (* y x))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.48e+51) {
tmp = (y * t) * x;
} else {
tmp = t * (y * x);
}
return tmp;
}
NOTE: y and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.48d+51)) then
tmp = (y * t) * x
else
tmp = t * (y * x)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.48e+51) {
tmp = (y * t) * x;
} else {
tmp = t * (y * x);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if y <= -1.48e+51: tmp = (y * t) * x else: tmp = t * (y * x) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -1.48e+51) tmp = Float64(Float64(y * t) * x); else tmp = Float64(t * Float64(y * x)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -1.48e+51)
tmp = (y * t) * x;
else
tmp = t * (y * x);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -1.48e+51], N[(N[(y * t), $MachinePrecision] * x), $MachinePrecision], N[(t * N[(y * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.48 \cdot 10^{+51}:\\
\;\;\;\;\left(y \cdot t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot x\right)\\
\end{array}
\end{array}
if y < -1.48e51Initial program 77.3%
*-commutative77.3%
distribute-rgt-out--82.4%
associate-*r*96.7%
*-commutative96.7%
Simplified96.7%
flip--72.3%
associate-*r/69.2%
Applied egg-rr69.2%
associate-/l*72.2%
*-commutative72.2%
associate-/l*70.6%
difference-of-squares79.1%
associate-/r*82.9%
*-inverses82.9%
Simplified82.9%
Taylor expanded in x around inf 45.6%
*-commutative45.6%
Simplified45.6%
associate-/r/45.7%
/-rgt-identity45.7%
associate-*r*55.2%
Applied egg-rr55.2%
if -1.48e51 < y Initial program 91.9%
distribute-rgt-out--93.5%
Simplified93.5%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
Final simplification54.1%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (* y (* t x)))
assert(y < t);
double code(double x, double y, double z, double t) {
return y * (t * x);
}
NOTE: y and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = y * (t * x)
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
return y * (t * x);
}
[y, t] = sort([y, t]) def code(x, y, z, t): return y * (t * x)
y, t = sort([y, t]) function code(x, y, z, t) return Float64(y * Float64(t * x)) end
y, t = num2cell(sort([y, t])){:}
function tmp = code(x, y, z, t)
tmp = y * (t * x);
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(y * N[(t * x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
y \cdot \left(t \cdot x\right)
\end{array}
Initial program 88.6%
*-commutative88.6%
distribute-rgt-out--90.9%
associate-*r*87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in x around inf 51.9%
associate-*r*52.6%
*-commutative52.6%
Simplified52.6%
Final simplification52.6%
(FPCore (x y z t) :precision binary64 (if (< t -9.231879582886777e-80) (* (* y t) (- x z)) (if (< t 2.543067051564877e+83) (* y (* t (- x z))) (* (* y (- x z)) t))))
double code(double x, double y, double z, double t) {
double tmp;
if (t < -9.231879582886777e-80) {
tmp = (y * t) * (x - z);
} else if (t < 2.543067051564877e+83) {
tmp = y * (t * (x - z));
} else {
tmp = (y * (x - 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 (t < (-9.231879582886777d-80)) then
tmp = (y * t) * (x - z)
else if (t < 2.543067051564877d+83) then
tmp = y * (t * (x - z))
else
tmp = (y * (x - z)) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t < -9.231879582886777e-80) {
tmp = (y * t) * (x - z);
} else if (t < 2.543067051564877e+83) {
tmp = y * (t * (x - z));
} else {
tmp = (y * (x - z)) * t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t < -9.231879582886777e-80: tmp = (y * t) * (x - z) elif t < 2.543067051564877e+83: tmp = y * (t * (x - z)) else: tmp = (y * (x - z)) * t return tmp
function code(x, y, z, t) tmp = 0.0 if (t < -9.231879582886777e-80) tmp = Float64(Float64(y * t) * Float64(x - z)); elseif (t < 2.543067051564877e+83) tmp = Float64(y * Float64(t * Float64(x - z))); else tmp = Float64(Float64(y * Float64(x - z)) * t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t < -9.231879582886777e-80) tmp = (y * t) * (x - z); elseif (t < 2.543067051564877e+83) tmp = y * (t * (x - z)); else tmp = (y * (x - z)) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Less[t, -9.231879582886777e-80], N[(N[(y * t), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision], If[Less[t, 2.543067051564877e+83], N[(y * N[(t * N[(x - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t < -9.231879582886777 \cdot 10^{-80}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;t < 2.543067051564877 \cdot 10^{+83}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot \left(x - z\right)\right) \cdot t\\
\end{array}
\end{array}
herbie shell --seed 2023275
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -9.231879582886777e-80) (* (* y t) (- x z)) (if (< t 2.543067051564877e+83) (* y (* t (- x z))) (* (* y (- x z)) t)))
(* (- (* x y) (* z y)) t))