
(FPCore (x y z) :precision binary64 (/ (* x (+ (- y z) 1.0)) z))
double code(double x, double y, double z) {
return (x * ((y - z) + 1.0)) / 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 * ((y - z) + 1.0d0)) / z
end function
public static double code(double x, double y, double z) {
return (x * ((y - z) + 1.0)) / z;
}
def code(x, y, z): return (x * ((y - z) + 1.0)) / z
function code(x, y, z) return Float64(Float64(x * Float64(Float64(y - z) + 1.0)) / z) end
function tmp = code(x, y, z) tmp = (x * ((y - z) + 1.0)) / z; end
code[x_, y_, z_] := N[(N[(x * N[(N[(y - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(\left(y - z\right) + 1\right)}{z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (* x (+ (- y z) 1.0)) z))
double code(double x, double y, double z) {
return (x * ((y - z) + 1.0)) / 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 * ((y - z) + 1.0d0)) / z
end function
public static double code(double x, double y, double z) {
return (x * ((y - z) + 1.0)) / z;
}
def code(x, y, z): return (x * ((y - z) + 1.0)) / z
function code(x, y, z) return Float64(Float64(x * Float64(Float64(y - z) + 1.0)) / z) end
function tmp = code(x, y, z) tmp = (x * ((y - z) + 1.0)) / z; end
code[x_, y_, z_] := N[(N[(x * N[(N[(y - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(\left(y - z\right) + 1\right)}{z}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= z -4e+20) (not (<= z 4.3e+15))) (- (/ x (/ z y)) x) (* (+ (- y z) 1.0) (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -4e+20) || !(z <= 4.3e+15)) {
tmp = (x / (z / y)) - x;
} else {
tmp = ((y - z) + 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) :: tmp
if ((z <= (-4d+20)) .or. (.not. (z <= 4.3d+15))) then
tmp = (x / (z / y)) - x
else
tmp = ((y - z) + 1.0d0) * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -4e+20) || !(z <= 4.3e+15)) {
tmp = (x / (z / y)) - x;
} else {
tmp = ((y - z) + 1.0) * (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -4e+20) or not (z <= 4.3e+15): tmp = (x / (z / y)) - x else: tmp = ((y - z) + 1.0) * (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -4e+20) || !(z <= 4.3e+15)) tmp = Float64(Float64(x / Float64(z / y)) - x); else tmp = Float64(Float64(Float64(y - z) + 1.0) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -4e+20) || ~((z <= 4.3e+15))) tmp = (x / (z / y)) - x; else tmp = ((y - z) + 1.0) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -4e+20], N[Not[LessEqual[z, 4.3e+15]], $MachinePrecision]], N[(N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] + 1.0), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+20} \lor \neg \left(z \leq 4.3 \cdot 10^{+15}\right):\\
\;\;\;\;\frac{x}{\frac{z}{y}} - x\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y - z\right) + 1\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -4e20 or 4.3e15 < z Initial program 80.5%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
distribute-lft-in99.9%
clear-num99.9%
un-div-inv99.9%
*-commutative99.9%
mul-1-neg99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 99.9%
if -4e20 < z < 4.3e15Initial program 99.8%
*-commutative99.8%
associate-/l*99.8%
+-commutative99.8%
Applied egg-rr99.8%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(if (<= z -160000000.0)
(- x)
(if (<= z -1.1e-10)
(* x (/ y z))
(if (<= z -1.08e-177) (/ x z) (if (<= z 3.9e+24) (* y (/ x z)) (- x))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -160000000.0) {
tmp = -x;
} else if (z <= -1.1e-10) {
tmp = x * (y / z);
} else if (z <= -1.08e-177) {
tmp = x / z;
} else if (z <= 3.9e+24) {
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 <= (-160000000.0d0)) then
tmp = -x
else if (z <= (-1.1d-10)) then
tmp = x * (y / z)
else if (z <= (-1.08d-177)) then
tmp = x / z
else if (z <= 3.9d+24) 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 <= -160000000.0) {
tmp = -x;
} else if (z <= -1.1e-10) {
tmp = x * (y / z);
} else if (z <= -1.08e-177) {
tmp = x / z;
} else if (z <= 3.9e+24) {
tmp = y * (x / z);
} else {
tmp = -x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -160000000.0: tmp = -x elif z <= -1.1e-10: tmp = x * (y / z) elif z <= -1.08e-177: tmp = x / z elif z <= 3.9e+24: tmp = y * (x / z) else: tmp = -x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -160000000.0) tmp = Float64(-x); elseif (z <= -1.1e-10) tmp = Float64(x * Float64(y / z)); elseif (z <= -1.08e-177) tmp = Float64(x / z); elseif (z <= 3.9e+24) tmp = Float64(y * Float64(x / z)); else tmp = Float64(-x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -160000000.0) tmp = -x; elseif (z <= -1.1e-10) tmp = x * (y / z); elseif (z <= -1.08e-177) tmp = x / z; elseif (z <= 3.9e+24) tmp = y * (x / z); else tmp = -x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -160000000.0], (-x), If[LessEqual[z, -1.1e-10], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.08e-177], N[(x / z), $MachinePrecision], If[LessEqual[z, 3.9e+24], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], (-x)]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -160000000:\\
\;\;\;\;-x\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -1.08 \cdot 10^{-177}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+24}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;-x\\
\end{array}
\end{array}
if z < -1.6e8 or 3.8999999999999998e24 < z Initial program 81.3%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 78.7%
neg-mul-178.7%
Simplified78.7%
if -1.6e8 < z < -1.09999999999999995e-10Initial program 99.4%
associate-/l*99.2%
+-commutative99.2%
associate-+r-99.2%
div-sub99.2%
*-inverses99.2%
sub-neg99.2%
metadata-eval99.2%
+-commutative99.2%
Simplified99.2%
Taylor expanded in y around inf 76.5%
associate-/l*76.3%
Simplified76.3%
if -1.09999999999999995e-10 < z < -1.08000000000000004e-177Initial program 99.9%
associate-/l*91.3%
+-commutative91.3%
associate-+r-91.3%
div-sub91.3%
*-inverses91.3%
sub-neg91.3%
metadata-eval91.3%
+-commutative91.3%
Simplified91.3%
Taylor expanded in z around 0 98.4%
Taylor expanded in y around 0 62.5%
if -1.08000000000000004e-177 < z < 3.8999999999999998e24Initial program 99.0%
associate-/l*89.7%
+-commutative89.7%
associate-+r-89.7%
div-sub89.7%
*-inverses89.7%
sub-neg89.7%
metadata-eval89.7%
+-commutative89.7%
Simplified89.7%
Taylor expanded in y around inf 59.6%
*-commutative59.6%
associate-/l*62.3%
Applied egg-rr62.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ -1.0 (/ y z)))))
(if (<= y -3.1)
t_0
(if (<= y 1.0) (- (/ x z) x) (if (<= y 8.8e+192) t_0 (* y (/ x z)))))))
double code(double x, double y, double z) {
double t_0 = x * (-1.0 + (y / z));
double tmp;
if (y <= -3.1) {
tmp = t_0;
} else if (y <= 1.0) {
tmp = (x / z) - x;
} else if (y <= 8.8e+192) {
tmp = t_0;
} else {
tmp = y * (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 = x * ((-1.0d0) + (y / z))
if (y <= (-3.1d0)) then
tmp = t_0
else if (y <= 1.0d0) then
tmp = (x / z) - x
else if (y <= 8.8d+192) then
tmp = t_0
else
tmp = y * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (-1.0 + (y / z));
double tmp;
if (y <= -3.1) {
tmp = t_0;
} else if (y <= 1.0) {
tmp = (x / z) - x;
} else if (y <= 8.8e+192) {
tmp = t_0;
} else {
tmp = y * (x / z);
}
return tmp;
}
def code(x, y, z): t_0 = x * (-1.0 + (y / z)) tmp = 0 if y <= -3.1: tmp = t_0 elif y <= 1.0: tmp = (x / z) - x elif y <= 8.8e+192: tmp = t_0 else: tmp = y * (x / z) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(-1.0 + Float64(y / z))) tmp = 0.0 if (y <= -3.1) tmp = t_0; elseif (y <= 1.0) tmp = Float64(Float64(x / z) - x); elseif (y <= 8.8e+192) tmp = t_0; else tmp = Float64(y * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (-1.0 + (y / z)); tmp = 0.0; if (y <= -3.1) tmp = t_0; elseif (y <= 1.0) tmp = (x / z) - x; elseif (y <= 8.8e+192) tmp = t_0; else tmp = y * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(-1.0 + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1], t$95$0, If[LessEqual[y, 1.0], N[(N[(x / z), $MachinePrecision] - x), $MachinePrecision], If[LessEqual[y, 8.8e+192], t$95$0, N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(-1 + \frac{y}{z}\right)\\
\mathbf{if}\;y \leq -3.1:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;\frac{x}{z} - x\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{+192}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if y < -3.10000000000000009 or 1 < y < 8.8000000000000003e192Initial program 86.7%
associate-/l*93.1%
+-commutative93.1%
associate-+r-93.1%
div-sub93.1%
*-inverses93.1%
sub-neg93.1%
metadata-eval93.1%
+-commutative93.1%
Simplified93.1%
Taylor expanded in y around inf 91.9%
if -3.10000000000000009 < y < 1Initial program 94.6%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.8%
*-inverses99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
distribute-lft-in99.8%
clear-num99.8%
un-div-inv100.0%
*-commutative100.0%
mul-1-neg100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 97.6%
if 8.8000000000000003e192 < y Initial program 94.1%
associate-/l*78.6%
+-commutative78.6%
associate-+r-78.6%
div-sub78.6%
*-inverses78.6%
sub-neg78.6%
metadata-eval78.6%
+-commutative78.6%
Simplified78.6%
Taylor expanded in y around inf 91.1%
*-commutative91.1%
associate-/l*92.2%
Applied egg-rr92.2%
Final simplification94.7%
(FPCore (x y z) :precision binary64 (if (or (<= z -4e-17) (not (<= z 4.3e-104))) (* x (+ (/ (+ y 1.0) z) -1.0)) (* (+ y 1.0) (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -4e-17) || !(z <= 4.3e-104)) {
tmp = x * (((y + 1.0) / z) + -1.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) :: tmp
if ((z <= (-4d-17)) .or. (.not. (z <= 4.3d-104))) then
tmp = x * (((y + 1.0d0) / z) + (-1.0d0))
else
tmp = (y + 1.0d0) * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -4e-17) || !(z <= 4.3e-104)) {
tmp = x * (((y + 1.0) / z) + -1.0);
} else {
tmp = (y + 1.0) * (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -4e-17) or not (z <= 4.3e-104): tmp = x * (((y + 1.0) / z) + -1.0) else: tmp = (y + 1.0) * (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -4e-17) || !(z <= 4.3e-104)) tmp = Float64(x * Float64(Float64(Float64(y + 1.0) / z) + -1.0)); else tmp = Float64(Float64(y + 1.0) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -4e-17) || ~((z <= 4.3e-104))) tmp = x * (((y + 1.0) / z) + -1.0); else tmp = (y + 1.0) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -4e-17], N[Not[LessEqual[z, 4.3e-104]], $MachinePrecision]], N[(x * N[(N[(N[(y + 1.0), $MachinePrecision] / z), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y + 1.0), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{-17} \lor \neg \left(z \leq 4.3 \cdot 10^{-104}\right):\\
\;\;\;\;x \cdot \left(\frac{y + 1}{z} + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y + 1\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -4.00000000000000029e-17 or 4.3000000000000001e-104 < z Initial program 85.5%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.8%
*-inverses99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
if -4.00000000000000029e-17 < z < 4.3000000000000001e-104Initial program 99.9%
associate-/l*87.2%
+-commutative87.2%
associate-+r-87.2%
div-sub87.2%
*-inverses87.2%
sub-neg87.2%
metadata-eval87.2%
+-commutative87.2%
Simplified87.2%
Taylor expanded in z around 0 99.9%
*-commutative99.9%
associate-/l*99.9%
+-commutative99.9%
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (<= z -150000000.0) (- x) (if (<= z -1.4e-10) (* x (/ y z)) (if (<= z 5.1e-8) (/ x z) (- x)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -150000000.0) {
tmp = -x;
} else if (z <= -1.4e-10) {
tmp = x * (y / z);
} else if (z <= 5.1e-8) {
tmp = 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 <= (-150000000.0d0)) then
tmp = -x
else if (z <= (-1.4d-10)) then
tmp = x * (y / z)
else if (z <= 5.1d-8) then
tmp = 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 <= -150000000.0) {
tmp = -x;
} else if (z <= -1.4e-10) {
tmp = x * (y / z);
} else if (z <= 5.1e-8) {
tmp = x / z;
} else {
tmp = -x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -150000000.0: tmp = -x elif z <= -1.4e-10: tmp = x * (y / z) elif z <= 5.1e-8: tmp = x / z else: tmp = -x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -150000000.0) tmp = Float64(-x); elseif (z <= -1.4e-10) tmp = Float64(x * Float64(y / z)); elseif (z <= 5.1e-8) tmp = Float64(x / z); else tmp = Float64(-x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -150000000.0) tmp = -x; elseif (z <= -1.4e-10) tmp = x * (y / z); elseif (z <= 5.1e-8) tmp = x / z; else tmp = -x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -150000000.0], (-x), If[LessEqual[z, -1.4e-10], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.1e-8], N[(x / z), $MachinePrecision], (-x)]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -150000000:\\
\;\;\;\;-x\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 5.1 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;-x\\
\end{array}
\end{array}
if z < -1.5e8 or 5.10000000000000001e-8 < z Initial program 81.8%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 74.9%
neg-mul-174.9%
Simplified74.9%
if -1.5e8 < z < -1.40000000000000008e-10Initial program 99.4%
associate-/l*99.2%
+-commutative99.2%
associate-+r-99.2%
div-sub99.2%
*-inverses99.2%
sub-neg99.2%
metadata-eval99.2%
+-commutative99.2%
Simplified99.2%
Taylor expanded in y around inf 76.5%
associate-/l*76.3%
Simplified76.3%
if -1.40000000000000008e-10 < z < 5.10000000000000001e-8Initial program 99.9%
associate-/l*89.5%
+-commutative89.5%
associate-+r-89.5%
div-sub89.5%
*-inverses89.5%
sub-neg89.5%
metadata-eval89.5%
+-commutative89.5%
Simplified89.5%
Taylor expanded in z around 0 99.1%
Taylor expanded in y around 0 55.8%
(FPCore (x y z) :precision binary64 (if (or (<= z -35.0) (not (<= z 5.1e-8))) (- (/ x (/ z y)) x) (/ (+ x (* x y)) z)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -35.0) || !(z <= 5.1e-8)) {
tmp = (x / (z / y)) - x;
} 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 <= (-35.0d0)) .or. (.not. (z <= 5.1d-8))) then
tmp = (x / (z / y)) - x
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 <= -35.0) || !(z <= 5.1e-8)) {
tmp = (x / (z / y)) - x;
} else {
tmp = (x + (x * y)) / z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -35.0) or not (z <= 5.1e-8): tmp = (x / (z / y)) - x else: tmp = (x + (x * y)) / z return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -35.0) || !(z <= 5.1e-8)) tmp = Float64(Float64(x / Float64(z / y)) - x); else tmp = Float64(Float64(x + Float64(x * y)) / z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -35.0) || ~((z <= 5.1e-8))) tmp = (x / (z / y)) - x; else tmp = (x + (x * y)) / z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -35.0], N[Not[LessEqual[z, 5.1e-8]], $MachinePrecision]], N[(N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(x + N[(x * y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -35 \lor \neg \left(z \leq 5.1 \cdot 10^{-8}\right):\\
\;\;\;\;\frac{x}{\frac{z}{y}} - x\\
\mathbf{else}:\\
\;\;\;\;\frac{x + x \cdot y}{z}\\
\end{array}
\end{array}
if z < -35 or 5.10000000000000001e-8 < z Initial program 82.5%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
distribute-lft-in99.9%
clear-num99.8%
un-div-inv99.9%
*-commutative99.9%
mul-1-neg99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 97.9%
if -35 < z < 5.10000000000000001e-8Initial program 99.9%
distribute-lft-in99.9%
*-rgt-identity99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 98.5%
Final simplification98.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -35.0) (not (<= z 5.1e-8))) (* x (+ -1.0 (/ y z))) (/ (+ x (* x y)) z)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -35.0) || !(z <= 5.1e-8)) {
tmp = x * (-1.0 + (y / 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 <= (-35.0d0)) .or. (.not. (z <= 5.1d-8))) then
tmp = x * ((-1.0d0) + (y / 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 <= -35.0) || !(z <= 5.1e-8)) {
tmp = x * (-1.0 + (y / z));
} else {
tmp = (x + (x * y)) / z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -35.0) or not (z <= 5.1e-8): tmp = x * (-1.0 + (y / z)) else: tmp = (x + (x * y)) / z return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -35.0) || !(z <= 5.1e-8)) tmp = Float64(x * Float64(-1.0 + Float64(y / z))); else tmp = Float64(Float64(x + Float64(x * y)) / z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -35.0) || ~((z <= 5.1e-8))) tmp = x * (-1.0 + (y / z)); else tmp = (x + (x * y)) / z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -35.0], N[Not[LessEqual[z, 5.1e-8]], $MachinePrecision]], N[(x * N[(-1.0 + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(x * y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -35 \lor \neg \left(z \leq 5.1 \cdot 10^{-8}\right):\\
\;\;\;\;x \cdot \left(-1 + \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + x \cdot y}{z}\\
\end{array}
\end{array}
if z < -35 or 5.10000000000000001e-8 < z Initial program 82.5%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around inf 97.8%
if -35 < z < 5.10000000000000001e-8Initial program 99.9%
distribute-lft-in99.9%
*-rgt-identity99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 98.5%
Final simplification98.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -230.0) (not (<= z 5.1e-8))) (* x (+ -1.0 (/ y z))) (* (+ y 1.0) (/ x z))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -230.0) || !(z <= 5.1e-8)) {
tmp = x * (-1.0 + (y / z));
} 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) :: tmp
if ((z <= (-230.0d0)) .or. (.not. (z <= 5.1d-8))) then
tmp = x * ((-1.0d0) + (y / z))
else
tmp = (y + 1.0d0) * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -230.0) || !(z <= 5.1e-8)) {
tmp = x * (-1.0 + (y / z));
} else {
tmp = (y + 1.0) * (x / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -230.0) or not (z <= 5.1e-8): tmp = x * (-1.0 + (y / z)) else: tmp = (y + 1.0) * (x / z) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -230.0) || !(z <= 5.1e-8)) tmp = Float64(x * Float64(-1.0 + Float64(y / z))); else tmp = Float64(Float64(y + 1.0) * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -230.0) || ~((z <= 5.1e-8))) tmp = x * (-1.0 + (y / z)); else tmp = (y + 1.0) * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -230.0], N[Not[LessEqual[z, 5.1e-8]], $MachinePrecision]], N[(x * N[(-1.0 + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y + 1.0), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -230 \lor \neg \left(z \leq 5.1 \cdot 10^{-8}\right):\\
\;\;\;\;x \cdot \left(-1 + \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y + 1\right) \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -230 or 5.10000000000000001e-8 < z Initial program 82.4%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around inf 97.8%
if -230 < z < 5.10000000000000001e-8Initial program 99.8%
associate-/l*89.8%
+-commutative89.8%
associate-+r-89.8%
div-sub89.8%
*-inverses89.8%
sub-neg89.8%
metadata-eval89.8%
+-commutative89.8%
Simplified89.8%
Taylor expanded in z around 0 98.5%
*-commutative98.5%
associate-/l*98.6%
+-commutative98.6%
Applied egg-rr98.6%
Final simplification98.2%
(FPCore (x y z) :precision binary64 (if (or (<= y -3.1) (not (<= y 6.6e+100))) (* y (/ x z)) (- (/ x z) x)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -3.1) || !(y <= 6.6e+100)) {
tmp = y * (x / z);
} else {
tmp = (x / z) - 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 ((y <= (-3.1d0)) .or. (.not. (y <= 6.6d+100))) then
tmp = y * (x / z)
else
tmp = (x / z) - x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -3.1) || !(y <= 6.6e+100)) {
tmp = y * (x / z);
} else {
tmp = (x / z) - x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -3.1) or not (y <= 6.6e+100): tmp = y * (x / z) else: tmp = (x / z) - x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -3.1) || !(y <= 6.6e+100)) tmp = Float64(y * Float64(x / z)); else tmp = Float64(Float64(x / z) - x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -3.1) || ~((y <= 6.6e+100))) tmp = y * (x / z); else tmp = (x / z) - x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -3.1], N[Not[LessEqual[y, 6.6e+100]], $MachinePrecision]], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.1 \lor \neg \left(y \leq 6.6 \cdot 10^{+100}\right):\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} - x\\
\end{array}
\end{array}
if y < -3.10000000000000009 or 6.6000000000000002e100 < y Initial program 90.6%
associate-/l*87.8%
+-commutative87.8%
associate-+r-87.8%
div-sub87.9%
*-inverses87.9%
sub-neg87.9%
metadata-eval87.9%
+-commutative87.9%
Simplified87.9%
Taylor expanded in y around inf 75.5%
*-commutative75.5%
associate-/l*80.0%
Applied egg-rr80.0%
if -3.10000000000000009 < y < 6.6000000000000002e100Initial program 92.1%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.8%
*-inverses99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
distribute-lft-in99.8%
clear-num99.8%
un-div-inv100.0%
*-commutative100.0%
mul-1-neg100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 93.5%
Final simplification87.7%
(FPCore (x y z) :precision binary64 (if (<= x 3.8e-95) (/ (* x (+ (- y z) 1.0)) z) (- (/ x (/ z (+ y 1.0))) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= 3.8e-95) {
tmp = (x * ((y - z) + 1.0)) / z;
} else {
tmp = (x / (z / (y + 1.0))) - 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 (x <= 3.8d-95) then
tmp = (x * ((y - z) + 1.0d0)) / z
else
tmp = (x / (z / (y + 1.0d0))) - x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 3.8e-95) {
tmp = (x * ((y - z) + 1.0)) / z;
} else {
tmp = (x / (z / (y + 1.0))) - x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 3.8e-95: tmp = (x * ((y - z) + 1.0)) / z else: tmp = (x / (z / (y + 1.0))) - x return tmp
function code(x, y, z) tmp = 0.0 if (x <= 3.8e-95) tmp = Float64(Float64(x * Float64(Float64(y - z) + 1.0)) / z); else tmp = Float64(Float64(x / Float64(z / Float64(y + 1.0))) - x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 3.8e-95) tmp = (x * ((y - z) + 1.0)) / z; else tmp = (x / (z / (y + 1.0))) - x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 3.8e-95], N[(N[(x * N[(N[(y - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(N[(x / N[(z / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.8 \cdot 10^{-95}:\\
\;\;\;\;\frac{x \cdot \left(\left(y - z\right) + 1\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{z}{y + 1}} - x\\
\end{array}
\end{array}
if x < 3.7999999999999997e-95Initial program 94.1%
if 3.7999999999999997e-95 < x Initial program 85.6%
associate-/l*99.7%
+-commutative99.7%
associate-+r-99.7%
div-sub99.7%
*-inverses99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
Simplified99.7%
distribute-lft-in99.7%
clear-num99.7%
un-div-inv99.9%
*-commutative99.9%
mul-1-neg99.9%
Applied egg-rr99.9%
Final simplification95.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (+ (- y z) 1.0))) (if (<= x 1.75e-8) (/ (* x t_0) z) (* t_0 (/ x z)))))
double code(double x, double y, double z) {
double t_0 = (y - z) + 1.0;
double tmp;
if (x <= 1.75e-8) {
tmp = (x * t_0) / z;
} else {
tmp = t_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 = (y - z) + 1.0d0
if (x <= 1.75d-8) then
tmp = (x * t_0) / z
else
tmp = t_0 * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (y - z) + 1.0;
double tmp;
if (x <= 1.75e-8) {
tmp = (x * t_0) / z;
} else {
tmp = t_0 * (x / z);
}
return tmp;
}
def code(x, y, z): t_0 = (y - z) + 1.0 tmp = 0 if x <= 1.75e-8: tmp = (x * t_0) / z else: tmp = t_0 * (x / z) return tmp
function code(x, y, z) t_0 = Float64(Float64(y - z) + 1.0) tmp = 0.0 if (x <= 1.75e-8) tmp = Float64(Float64(x * t_0) / z); else tmp = Float64(t_0 * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (y - z) + 1.0; tmp = 0.0; if (x <= 1.75e-8) tmp = (x * t_0) / z; else tmp = t_0 * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(y - z), $MachinePrecision] + 1.0), $MachinePrecision]}, If[LessEqual[x, 1.75e-8], N[(N[(x * t$95$0), $MachinePrecision] / z), $MachinePrecision], N[(t$95$0 * N[(x / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y - z\right) + 1\\
\mathbf{if}\;x \leq 1.75 \cdot 10^{-8}:\\
\;\;\;\;\frac{x \cdot t\_0}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \frac{x}{z}\\
\end{array}
\end{array}
if x < 1.75000000000000012e-8Initial program 94.7%
if 1.75000000000000012e-8 < x Initial program 79.8%
*-commutative79.8%
associate-/l*99.9%
+-commutative99.9%
Applied egg-rr99.9%
Final simplification95.9%
(FPCore (x y z) :precision binary64 (if (or (<= z -35.0) (not (<= z 5.1e-8))) (- x) (/ x z)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -35.0) || !(z <= 5.1e-8)) {
tmp = -x;
} else {
tmp = 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) :: tmp
if ((z <= (-35.0d0)) .or. (.not. (z <= 5.1d-8))) then
tmp = -x
else
tmp = x / z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -35.0) || !(z <= 5.1e-8)) {
tmp = -x;
} else {
tmp = x / z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -35.0) or not (z <= 5.1e-8): tmp = -x else: tmp = x / z return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -35.0) || !(z <= 5.1e-8)) tmp = Float64(-x); else tmp = Float64(x / z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -35.0) || ~((z <= 5.1e-8))) tmp = -x; else tmp = x / z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -35.0], N[Not[LessEqual[z, 5.1e-8]], $MachinePrecision]], (-x), N[(x / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -35 \lor \neg \left(z \leq 5.1 \cdot 10^{-8}\right):\\
\;\;\;\;-x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z}\\
\end{array}
\end{array}
if z < -35 or 5.10000000000000001e-8 < z Initial program 82.5%
associate-/l*99.8%
+-commutative99.8%
associate-+r-99.8%
div-sub99.9%
*-inverses99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 72.2%
neg-mul-172.2%
Simplified72.2%
if -35 < z < 5.10000000000000001e-8Initial program 99.9%
associate-/l*89.7%
+-commutative89.7%
associate-+r-89.7%
div-sub89.7%
*-inverses89.7%
sub-neg89.7%
metadata-eval89.7%
+-commutative89.7%
Simplified89.7%
Taylor expanded in z around 0 98.5%
Taylor expanded in y around 0 54.8%
Final simplification63.2%
(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 Float64(-x) end
function tmp = code(x, y, z) tmp = -x; end
code[x_, y_, z_] := (-x)
\begin{array}{l}
\\
-x
\end{array}
Initial program 91.5%
associate-/l*94.6%
+-commutative94.6%
associate-+r-94.6%
div-sub94.6%
*-inverses94.6%
sub-neg94.6%
metadata-eval94.6%
+-commutative94.6%
Simplified94.6%
Taylor expanded in z around inf 36.9%
neg-mul-136.9%
Simplified36.9%
(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 91.5%
associate-/l*94.6%
+-commutative94.6%
associate-+r-94.6%
div-sub94.6%
*-inverses94.6%
sub-neg94.6%
metadata-eval94.6%
+-commutative94.6%
Simplified94.6%
Taylor expanded in z around inf 36.9%
neg-mul-136.9%
Simplified36.9%
neg-sub036.9%
sub-neg36.9%
add-sqr-sqrt21.1%
sqrt-unprod19.5%
sqr-neg19.5%
sqrt-unprod1.3%
add-sqr-sqrt3.0%
Applied egg-rr3.0%
+-lft-identity3.0%
Simplified3.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* (+ 1.0 y) (/ x z)) x)))
(if (< x -2.71483106713436e-162)
t_0
(if (< x 3.874108816439546e-197)
(* (* x (+ (- y z) 1.0)) (/ 1.0 z))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((1.0 + y) * (x / z)) - x;
double tmp;
if (x < -2.71483106713436e-162) {
tmp = t_0;
} else if (x < 3.874108816439546e-197) {
tmp = (x * ((y - z) + 1.0)) * (1.0 / z);
} else {
tmp = t_0;
}
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 = ((1.0d0 + y) * (x / z)) - x
if (x < (-2.71483106713436d-162)) then
tmp = t_0
else if (x < 3.874108816439546d-197) then
tmp = (x * ((y - z) + 1.0d0)) * (1.0d0 / z)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((1.0 + y) * (x / z)) - x;
double tmp;
if (x < -2.71483106713436e-162) {
tmp = t_0;
} else if (x < 3.874108816439546e-197) {
tmp = (x * ((y - z) + 1.0)) * (1.0 / z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((1.0 + y) * (x / z)) - x tmp = 0 if x < -2.71483106713436e-162: tmp = t_0 elif x < 3.874108816439546e-197: tmp = (x * ((y - z) + 1.0)) * (1.0 / z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(1.0 + y) * Float64(x / z)) - x) tmp = 0.0 if (x < -2.71483106713436e-162) tmp = t_0; elseif (x < 3.874108816439546e-197) tmp = Float64(Float64(x * Float64(Float64(y - z) + 1.0)) * Float64(1.0 / z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((1.0 + y) * (x / z)) - x; tmp = 0.0; if (x < -2.71483106713436e-162) tmp = t_0; elseif (x < 3.874108816439546e-197) tmp = (x * ((y - z) + 1.0)) * (1.0 / z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(1.0 + y), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]}, If[Less[x, -2.71483106713436e-162], t$95$0, If[Less[x, 3.874108816439546e-197], N[(N[(x * N[(N[(y - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 + y\right) \cdot \frac{x}{z} - x\\
\mathbf{if}\;x < -2.71483106713436 \cdot 10^{-162}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 3.874108816439546 \cdot 10^{-197}:\\
\;\;\;\;\left(x \cdot \left(\left(y - z\right) + 1\right)\right) \cdot \frac{1}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024111
(FPCore (x y z)
:name "Diagrams.TwoD.Segment.Bernstein:evaluateBernstein from diagrams-lib-1.3.0.3"
:precision binary64
:alt
(! :herbie-platform default (if (< x -67870776678359/25000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (+ 1 y) (/ x z)) x) (if (< x 1937054408219773/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* (* x (+ (- y z) 1)) (/ 1 z)) (- (* (+ 1 y) (/ x z)) x))))
(/ (* x (+ (- y z) 1.0)) z))