
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* (- 1.0 y) z))))
double code(double x, double y, double z) {
return x * (1.0 - ((1.0 - y) * z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (1.0d0 - ((1.0d0 - y) * z))
end function
public static double code(double x, double y, double z) {
return x * (1.0 - ((1.0 - y) * z));
}
def code(x, y, z): return x * (1.0 - ((1.0 - y) * z))
function code(x, y, z) return Float64(x * Float64(1.0 - Float64(Float64(1.0 - y) * z))) end
function tmp = code(x, y, z) tmp = x * (1.0 - ((1.0 - y) * z)); end
code[x_, y_, z_] := N[(x * N[(1.0 - N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 - \left(1 - y\right) \cdot z\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* (- 1.0 y) z))))
double code(double x, double y, double z) {
return x * (1.0 - ((1.0 - y) * z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (1.0d0 - ((1.0d0 - y) * z))
end function
public static double code(double x, double y, double z) {
return x * (1.0 - ((1.0 - y) * z));
}
def code(x, y, z): return x * (1.0 - ((1.0 - y) * z))
function code(x, y, z) return Float64(x * Float64(1.0 - Float64(Float64(1.0 - y) * z))) end
function tmp = code(x, y, z) tmp = x * (1.0 - ((1.0 - y) * z)); end
code[x_, y_, z_] := N[(x * N[(1.0 - N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 - \left(1 - y\right) \cdot z\right)
\end{array}
(FPCore (x y z) :precision binary64 (if (<= x 3.1e-143) (- x (* z (* x (- 1.0 y)))) (* x (- 1.0 (* z (- 1.0 y))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 3.1e-143) {
tmp = x - (z * (x * (1.0 - y)));
} else {
tmp = x * (1.0 - (z * (1.0 - y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 3.1d-143) then
tmp = x - (z * (x * (1.0d0 - y)))
else
tmp = x * (1.0d0 - (z * (1.0d0 - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 3.1e-143) {
tmp = x - (z * (x * (1.0 - y)));
} else {
tmp = x * (1.0 - (z * (1.0 - y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 3.1e-143: tmp = x - (z * (x * (1.0 - y))) else: tmp = x * (1.0 - (z * (1.0 - y))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 3.1e-143) tmp = Float64(x - Float64(z * Float64(x * Float64(1.0 - y)))); else tmp = Float64(x * Float64(1.0 - Float64(z * Float64(1.0 - y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 3.1e-143) tmp = x - (z * (x * (1.0 - y))); else tmp = x * (1.0 - (z * (1.0 - y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 3.1e-143], N[(x - N[(z * N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.1 \cdot 10^{-143}:\\
\;\;\;\;x - z \cdot \left(x \cdot \left(1 - y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - z \cdot \left(1 - y\right)\right)\\
\end{array}
\end{array}
if x < 3.10000000000000007e-143Initial program 93.6%
distribute-rgt-out--93.6%
*-lft-identity93.6%
cancel-sign-sub-inv93.6%
+-commutative93.6%
distribute-lft-neg-in93.6%
associate-*l*96.4%
fma-def96.4%
neg-sub096.4%
associate--r-96.4%
metadata-eval96.4%
+-commutative96.4%
*-commutative96.4%
Simplified96.4%
fma-udef96.4%
associate-*r*99.9%
Applied egg-rr99.9%
if 3.10000000000000007e-143 < x Initial program 99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* z (- 1.0 y)))) (if (<= t_0 5e+107) (* x (- 1.0 t_0)) (* (+ y -1.0) (* x z)))))
double code(double x, double y, double z) {
double t_0 = z * (1.0 - y);
double tmp;
if (t_0 <= 5e+107) {
tmp = x * (1.0 - t_0);
} else {
tmp = (y + -1.0) * (x * z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z * (1.0d0 - y)
if (t_0 <= 5d+107) then
tmp = x * (1.0d0 - t_0)
else
tmp = (y + (-1.0d0)) * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * (1.0 - y);
double tmp;
if (t_0 <= 5e+107) {
tmp = x * (1.0 - t_0);
} else {
tmp = (y + -1.0) * (x * z);
}
return tmp;
}
def code(x, y, z): t_0 = z * (1.0 - y) tmp = 0 if t_0 <= 5e+107: tmp = x * (1.0 - t_0) else: tmp = (y + -1.0) * (x * z) return tmp
function code(x, y, z) t_0 = Float64(z * Float64(1.0 - y)) tmp = 0.0 if (t_0 <= 5e+107) tmp = Float64(x * Float64(1.0 - t_0)); else tmp = Float64(Float64(y + -1.0) * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (1.0 - y); tmp = 0.0; if (t_0 <= 5e+107) tmp = x * (1.0 - t_0); else tmp = (y + -1.0) * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+107], N[(x * N[(1.0 - t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(y + -1.0), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(1 - y\right)\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{+107}:\\
\;\;\;\;x \cdot \left(1 - t_0\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y + -1\right) \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if (*.f64 (-.f64 1 y) z) < 5.0000000000000002e107Initial program 98.1%
if 5.0000000000000002e107 < (*.f64 (-.f64 1 y) z) Initial program 88.5%
Taylor expanded in z around inf 99.9%
*-commutative99.9%
associate-*l*99.9%
sub-neg99.9%
metadata-eval99.9%
*-commutative99.9%
Simplified99.9%
Final simplification98.5%
(FPCore (x y z) :precision binary64 (if (or (<= z -1.14e-26) (not (<= z 54000000000.0))) (* (+ y -1.0) (* x z)) (* x (- 1.0 z))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -1.14e-26) || !(z <= 54000000000.0)) {
tmp = (y + -1.0) * (x * z);
} else {
tmp = x * (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-1.14d-26)) .or. (.not. (z <= 54000000000.0d0))) then
tmp = (y + (-1.0d0)) * (x * z)
else
tmp = x * (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -1.14e-26) || !(z <= 54000000000.0)) {
tmp = (y + -1.0) * (x * z);
} else {
tmp = x * (1.0 - z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -1.14e-26) or not (z <= 54000000000.0): tmp = (y + -1.0) * (x * z) else: tmp = x * (1.0 - z) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -1.14e-26) || !(z <= 54000000000.0)) tmp = Float64(Float64(y + -1.0) * Float64(x * z)); else tmp = Float64(x * Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -1.14e-26) || ~((z <= 54000000000.0))) tmp = (y + -1.0) * (x * z); else tmp = x * (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -1.14e-26], N[Not[LessEqual[z, 54000000000.0]], $MachinePrecision]], N[(N[(y + -1.0), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.14 \cdot 10^{-26} \lor \neg \left(z \leq 54000000000\right):\\
\;\;\;\;\left(y + -1\right) \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - z\right)\\
\end{array}
\end{array}
if z < -1.1399999999999999e-26 or 5.4e10 < z Initial program 92.1%
Taylor expanded in z around inf 99.0%
*-commutative99.0%
associate-*l*99.0%
sub-neg99.0%
metadata-eval99.0%
*-commutative99.0%
Simplified99.0%
if -1.1399999999999999e-26 < z < 5.4e10Initial program 100.0%
Taylor expanded in y around 0 85.3%
Final simplification92.4%
(FPCore (x y z) :precision binary64 (if (or (<= z -12500.0) (not (<= z 1.0))) (* (+ y -1.0) (* x z)) (+ x (* x (* y z)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -12500.0) || !(z <= 1.0)) {
tmp = (y + -1.0) * (x * z);
} else {
tmp = x + (x * (y * z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-12500.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = (y + (-1.0d0)) * (x * z)
else
tmp = x + (x * (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -12500.0) || !(z <= 1.0)) {
tmp = (y + -1.0) * (x * z);
} else {
tmp = x + (x * (y * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -12500.0) or not (z <= 1.0): tmp = (y + -1.0) * (x * z) else: tmp = x + (x * (y * z)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -12500.0) || !(z <= 1.0)) tmp = Float64(Float64(y + -1.0) * Float64(x * z)); else tmp = Float64(x + Float64(x * Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -12500.0) || ~((z <= 1.0))) tmp = (y + -1.0) * (x * z); else tmp = x + (x * (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -12500.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(N[(y + -1.0), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -12500 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;\left(y + -1\right) \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x + x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -12500 or 1 < z Initial program 92.1%
Taylor expanded in z around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
sub-neg97.8%
metadata-eval97.8%
*-commutative97.8%
Simplified97.8%
if -12500 < z < 1Initial program 100.0%
distribute-rgt-out--100.0%
*-lft-identity100.0%
cancel-sign-sub-inv100.0%
+-commutative100.0%
distribute-lft-neg-in100.0%
associate-*l*95.4%
fma-def95.4%
neg-sub095.4%
associate--r-95.4%
metadata-eval95.4%
+-commutative95.4%
*-commutative95.4%
Simplified95.4%
fma-udef95.4%
associate-*r*95.5%
Applied egg-rr95.5%
Taylor expanded in y around inf 94.8%
associate-*r*99.4%
*-commutative99.4%
*-commutative99.4%
Simplified99.4%
Final simplification98.6%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.1e-24) (not (<= z 3e-27))) (* y (* x z)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.1e-24) || !(z <= 3e-27)) {
tmp = y * (x * z);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-5.1d-24)) .or. (.not. (z <= 3d-27))) then
tmp = y * (x * z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.1e-24) || !(z <= 3e-27)) {
tmp = y * (x * z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.1e-24) or not (z <= 3e-27): tmp = y * (x * z) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.1e-24) || !(z <= 3e-27)) tmp = Float64(y * Float64(x * z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.1e-24) || ~((z <= 3e-27))) tmp = y * (x * z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.1e-24], N[Not[LessEqual[z, 3e-27]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{-24} \lor \neg \left(z \leq 3 \cdot 10^{-27}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -5.10000000000000025e-24 or 3.0000000000000001e-27 < z Initial program 92.4%
Taylor expanded in y around inf 58.4%
if -5.10000000000000025e-24 < z < 3.0000000000000001e-27Initial program 100.0%
Taylor expanded in z around 0 85.5%
Final simplification70.9%
(FPCore (x y z) :precision binary64 (if (<= y -5.4e+48) (* y (* x z)) (if (<= y 1000000.0) (* x (- 1.0 z)) (* z (* x y)))))
double code(double x, double y, double z) {
double tmp;
if (y <= -5.4e+48) {
tmp = y * (x * z);
} else if (y <= 1000000.0) {
tmp = x * (1.0 - z);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= (-5.4d+48)) then
tmp = y * (x * z)
else if (y <= 1000000.0d0) then
tmp = x * (1.0d0 - z)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -5.4e+48) {
tmp = y * (x * z);
} else if (y <= 1000000.0) {
tmp = x * (1.0 - z);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -5.4e+48: tmp = y * (x * z) elif y <= 1000000.0: tmp = x * (1.0 - z) else: tmp = z * (x * y) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -5.4e+48) tmp = Float64(y * Float64(x * z)); elseif (y <= 1000000.0) tmp = Float64(x * Float64(1.0 - z)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -5.4e+48) tmp = y * (x * z); elseif (y <= 1000000.0) tmp = x * (1.0 - z); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -5.4e+48], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1000000.0], N[(x * N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.4 \cdot 10^{+48}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 1000000:\\
\;\;\;\;x \cdot \left(1 - z\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -5.40000000000000007e48Initial program 83.5%
Taylor expanded in y around inf 83.4%
if -5.40000000000000007e48 < y < 1e6Initial program 100.0%
Taylor expanded in y around 0 98.8%
if 1e6 < y Initial program 96.6%
Taylor expanded in y around inf 76.6%
associate-*r*79.4%
*-commutative79.4%
associate-*l*81.0%
Simplified81.0%
Final simplification91.7%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 95.9%
Taylor expanded in z around 0 41.3%
Final simplification41.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 1.0 (* (- 1.0 y) z))))
(t_1 (+ x (* (- 1.0 y) (* (- z) x)))))
(if (< t_0 -1.618195973607049e+50)
t_1
(if (< t_0 3.892237649663903e+134) (- (* (* x y) z) (- (* x z) x)) t_1))))
double code(double x, double y, double z) {
double t_0 = x * (1.0 - ((1.0 - y) * z));
double t_1 = x + ((1.0 - y) * (-z * x));
double tmp;
if (t_0 < -1.618195973607049e+50) {
tmp = t_1;
} else if (t_0 < 3.892237649663903e+134) {
tmp = ((x * y) * z) - ((x * z) - x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x * (1.0d0 - ((1.0d0 - y) * z))
t_1 = x + ((1.0d0 - y) * (-z * x))
if (t_0 < (-1.618195973607049d+50)) then
tmp = t_1
else if (t_0 < 3.892237649663903d+134) then
tmp = ((x * y) * z) - ((x * z) - x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (1.0 - ((1.0 - y) * z));
double t_1 = x + ((1.0 - y) * (-z * x));
double tmp;
if (t_0 < -1.618195973607049e+50) {
tmp = t_1;
} else if (t_0 < 3.892237649663903e+134) {
tmp = ((x * y) * z) - ((x * z) - x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = x * (1.0 - ((1.0 - y) * z)) t_1 = x + ((1.0 - y) * (-z * x)) tmp = 0 if t_0 < -1.618195973607049e+50: tmp = t_1 elif t_0 < 3.892237649663903e+134: tmp = ((x * y) * z) - ((x * z) - x) else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(1.0 - Float64(Float64(1.0 - y) * z))) t_1 = Float64(x + Float64(Float64(1.0 - y) * Float64(Float64(-z) * x))) tmp = 0.0 if (t_0 < -1.618195973607049e+50) tmp = t_1; elseif (t_0 < 3.892237649663903e+134) tmp = Float64(Float64(Float64(x * y) * z) - Float64(Float64(x * z) - x)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (1.0 - ((1.0 - y) * z)); t_1 = x + ((1.0 - y) * (-z * x)); tmp = 0.0; if (t_0 < -1.618195973607049e+50) tmp = t_1; elseif (t_0 < 3.892237649663903e+134) tmp = ((x * y) * z) - ((x * z) - x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(1.0 - N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x + N[(N[(1.0 - y), $MachinePrecision] * N[((-z) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$0, -1.618195973607049e+50], t$95$1, If[Less[t$95$0, 3.892237649663903e+134], N[(N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision] - N[(N[(x * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(1 - \left(1 - y\right) \cdot z\right)\\
t_1 := x + \left(1 - y\right) \cdot \left(\left(-z\right) \cdot x\right)\\
\mathbf{if}\;t_0 < -1.618195973607049 \cdot 10^{+50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 < 3.892237649663903 \cdot 10^{+134}:\\
\;\;\;\;\left(x \cdot y\right) \cdot z - \left(x \cdot z - x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023200
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, J"
:precision binary64
:herbie-target
(if (< (* x (- 1.0 (* (- 1.0 y) z))) -1.618195973607049e+50) (+ x (* (- 1.0 y) (* (- z) x))) (if (< (* x (- 1.0 (* (- 1.0 y) z))) 3.892237649663903e+134) (- (* (* x y) z) (- (* x z) x)) (+ x (* (- 1.0 y) (* (- z) x)))))
(* x (- 1.0 (* (- 1.0 y) z))))