
(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 7 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: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 4.8e-75) (* y (* (- x z) t)) (* (- x z) (* y t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 4.8e-75) {
tmp = y * ((x - z) * t);
} else {
tmp = (x - z) * (y * t);
}
return tmp;
}
NOTE: x, y, z, 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 (t <= 4.8d-75) then
tmp = y * ((x - z) * t)
else
tmp = (x - z) * (y * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 4.8e-75) {
tmp = y * ((x - z) * t);
} else {
tmp = (x - z) * (y * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 4.8e-75: tmp = y * ((x - z) * t) else: tmp = (x - z) * (y * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 4.8e-75) tmp = Float64(y * Float64(Float64(x - z) * t)); else tmp = Float64(Float64(x - z) * Float64(y * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 4.8e-75)
tmp = y * ((x - z) * t);
else
tmp = (x - z) * (y * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 4.8e-75], N[(y * N[(N[(x - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x - z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.8 \cdot 10^{-75}:\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\end{array}
\end{array}
if t < 4.80000000000000039e-75Initial program 85.0%
distribute-rgt-out--88.0%
associate-*l*97.3%
*-commutative97.3%
Simplified97.3%
if 4.80000000000000039e-75 < t Initial program 90.3%
*-commutative90.3%
distribute-rgt-out--94.9%
associate-*r*97.7%
*-commutative97.7%
Simplified97.7%
Final simplification97.4%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= x -3.8e+154)
(* t (* y x))
(if (or (<= x -2e-186) (not (<= x 6.6e-177)))
(* y (* (- x z) t))
(* (* y t) (- z)))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.8e+154) {
tmp = t * (y * x);
} else if ((x <= -2e-186) || !(x <= 6.6e-177)) {
tmp = y * ((x - z) * t);
} else {
tmp = (y * t) * -z;
}
return tmp;
}
NOTE: x, y, z, 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 <= (-3.8d+154)) then
tmp = t * (y * x)
else if ((x <= (-2d-186)) .or. (.not. (x <= 6.6d-177))) then
tmp = y * ((x - z) * t)
else
tmp = (y * t) * -z
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.8e+154) {
tmp = t * (y * x);
} else if ((x <= -2e-186) || !(x <= 6.6e-177)) {
tmp = y * ((x - z) * t);
} else {
tmp = (y * t) * -z;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if x <= -3.8e+154: tmp = t * (y * x) elif (x <= -2e-186) or not (x <= 6.6e-177): tmp = y * ((x - z) * t) else: tmp = (y * t) * -z return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (x <= -3.8e+154) tmp = Float64(t * Float64(y * x)); elseif ((x <= -2e-186) || !(x <= 6.6e-177)) tmp = Float64(y * Float64(Float64(x - z) * t)); else tmp = Float64(Float64(y * t) * Float64(-z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (x <= -3.8e+154)
tmp = t * (y * x);
elseif ((x <= -2e-186) || ~((x <= 6.6e-177)))
tmp = y * ((x - z) * t);
else
tmp = (y * t) * -z;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[x, -3.8e+154], N[(t * N[(y * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -2e-186], N[Not[LessEqual[x, 6.6e-177]], $MachinePrecision]], N[(y * N[(N[(x - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(y * t), $MachinePrecision] * (-z)), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{+154}:\\
\;\;\;\;t \cdot \left(y \cdot x\right)\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-186} \lor \neg \left(x \leq 6.6 \cdot 10^{-177}\right):\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(-z\right)\\
\end{array}
\end{array}
if x < -3.7999999999999998e154Initial program 79.0%
distribute-rgt-out--82.9%
Simplified82.9%
Taylor expanded in x around inf 82.9%
*-commutative82.9%
Simplified82.9%
if -3.7999999999999998e154 < x < -1.9999999999999998e-186 or 6.5999999999999999e-177 < x Initial program 86.9%
distribute-rgt-out--91.5%
associate-*l*96.2%
*-commutative96.2%
Simplified96.2%
if -1.9999999999999998e-186 < x < 6.5999999999999999e-177Initial program 90.6%
distribute-rgt-out--90.6%
associate-*l*89.7%
*-commutative89.7%
Simplified89.7%
Taylor expanded in x around 0 88.4%
*-commutative88.4%
associate-*r*88.4%
associate-*r*88.4%
neg-mul-188.4%
associate-*l*87.5%
*-commutative87.5%
Simplified87.5%
distribute-lft-neg-out87.5%
add-sqr-sqrt43.2%
sqrt-unprod41.2%
sqr-neg41.2%
sqrt-unprod6.5%
add-sqr-sqrt15.7%
associate-*r*15.7%
*-commutative15.7%
add-sqr-sqrt6.5%
sqrt-unprod42.9%
sqr-neg42.9%
sqrt-unprod49.8%
add-sqr-sqrt97.3%
Applied egg-rr97.3%
Final simplification95.0%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= x -1.3e-74) (not (<= x 1.7e+15))) (* t (* y x)) (* (* y t) (- z))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.3e-74) || !(x <= 1.7e+15)) {
tmp = t * (y * x);
} else {
tmp = (y * t) * -z;
}
return tmp;
}
NOTE: x, y, z, 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 <= (-1.3d-74)) .or. (.not. (x <= 1.7d+15))) then
tmp = t * (y * x)
else
tmp = (y * t) * -z
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.3e-74) || !(x <= 1.7e+15)) {
tmp = t * (y * x);
} else {
tmp = (y * t) * -z;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (x <= -1.3e-74) or not (x <= 1.7e+15): tmp = t * (y * x) else: tmp = (y * t) * -z return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((x <= -1.3e-74) || !(x <= 1.7e+15)) tmp = Float64(t * Float64(y * x)); else tmp = Float64(Float64(y * t) * Float64(-z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((x <= -1.3e-74) || ~((x <= 1.7e+15)))
tmp = t * (y * x);
else
tmp = (y * t) * -z;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.3e-74], N[Not[LessEqual[x, 1.7e+15]], $MachinePrecision]], N[(t * N[(y * x), $MachinePrecision]), $MachinePrecision], N[(N[(y * t), $MachinePrecision] * (-z)), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{-74} \lor \neg \left(x \leq 1.7 \cdot 10^{+15}\right):\\
\;\;\;\;t \cdot \left(y \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(-z\right)\\
\end{array}
\end{array}
if x < -1.3e-74 or 1.7e15 < x Initial program 84.2%
distribute-rgt-out--90.3%
Simplified90.3%
Taylor expanded in x around inf 72.2%
*-commutative72.2%
Simplified72.2%
if -1.3e-74 < x < 1.7e15Initial program 90.5%
distribute-rgt-out--90.5%
associate-*l*94.1%
*-commutative94.1%
Simplified94.1%
Taylor expanded in x around 0 77.9%
*-commutative77.9%
associate-*r*77.9%
associate-*r*77.9%
neg-mul-177.9%
associate-*l*81.9%
*-commutative81.9%
Simplified81.9%
distribute-lft-neg-out81.9%
add-sqr-sqrt36.3%
sqrt-unprod36.8%
sqr-neg36.8%
sqrt-unprod7.6%
add-sqr-sqrt15.8%
associate-*r*15.8%
*-commutative15.8%
add-sqr-sqrt7.7%
sqrt-unprod36.9%
sqr-neg36.9%
sqrt-unprod38.9%
add-sqr-sqrt85.3%
Applied egg-rr85.3%
Final simplification77.6%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 3.45e-93) (* y (* x t)) (* x (* y t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.45e-93) {
tmp = y * (x * t);
} else {
tmp = x * (y * t);
}
return tmp;
}
NOTE: x, y, z, 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 (t <= 3.45d-93) then
tmp = y * (x * t)
else
tmp = x * (y * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.45e-93) {
tmp = y * (x * t);
} else {
tmp = x * (y * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 3.45e-93: tmp = y * (x * t) else: tmp = x * (y * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 3.45e-93) tmp = Float64(y * Float64(x * t)); else tmp = Float64(x * Float64(y * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 3.45e-93)
tmp = y * (x * t);
else
tmp = x * (y * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 3.45e-93], N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.45 \cdot 10^{-93}:\\
\;\;\;\;y \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot t\right)\\
\end{array}
\end{array}
if t < 3.45000000000000015e-93Initial program 84.4%
distribute-rgt-out--87.5%
associate-*l*97.2%
*-commutative97.2%
Simplified97.2%
Taylor expanded in x around inf 57.8%
if 3.45000000000000015e-93 < t Initial program 91.0%
distribute-rgt-out--95.3%
associate-*l*88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in x around inf 52.2%
add-log-exp33.0%
associate-*r*33.0%
exp-prod32.5%
exp-prod24.1%
Applied egg-rr24.1%
log-pow24.1%
log-pow25.4%
rem-log-exp57.0%
*-commutative57.0%
Simplified57.0%
Final simplification57.5%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (* (* y (- x z)) t))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return (y * (x - z)) * t;
}
NOTE: x, y, z, 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 * (x - z)) * t
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return (y * (x - z)) * t;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return (y * (x - z)) * t
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(Float64(y * Float64(x - z)) * t) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = (y * (x - z)) * t;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(N[(y * N[(x - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\left(y \cdot \left(x - z\right)\right) \cdot t
\end{array}
Initial program 86.8%
distribute-rgt-out--90.4%
Simplified90.4%
Final simplification90.4%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (* x (* y t)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return x * (y * t);
}
NOTE: x, y, z, 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 = x * (y * t)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return x * (y * t);
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return x * (y * t)
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(x * Float64(y * t)) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = x * (y * t);
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
x \cdot \left(y \cdot t\right)
\end{array}
Initial program 86.8%
distribute-rgt-out--90.4%
associate-*l*94.1%
*-commutative94.1%
Simplified94.1%
Taylor expanded in x around inf 55.7%
add-log-exp30.5%
associate-*r*30.5%
exp-prod30.5%
exp-prod24.7%
Applied egg-rr24.7%
log-pow25.1%
log-pow26.1%
rem-log-exp56.5%
*-commutative56.5%
Simplified56.5%
Final simplification56.5%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (* t (* y x)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return t * (y * x);
}
NOTE: x, y, z, 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 = t * (y * x)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return t * (y * x);
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return t * (y * x)
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(t * Float64(y * x)) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = t * (y * x);
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(t * N[(y * x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
t \cdot \left(y \cdot x\right)
\end{array}
Initial program 86.8%
distribute-rgt-out--90.4%
Simplified90.4%
Taylor expanded in x around inf 54.4%
*-commutative54.4%
Simplified54.4%
Final simplification54.4%
(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 2024039
(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))