
(FPCore (x y z) :precision binary64 (+ x (/ (exp (* y (log (/ y (+ z y))))) y)))
double code(double x, double y, double z) {
return x + (exp((y * log((y / (z + y))))) / y);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + (exp((y * log((y / (z + y))))) / y)
end function
public static double code(double x, double y, double z) {
return x + (Math.exp((y * Math.log((y / (z + y))))) / y);
}
def code(x, y, z): return x + (math.exp((y * math.log((y / (z + y))))) / y)
function code(x, y, z) return Float64(x + Float64(exp(Float64(y * log(Float64(y / Float64(z + y))))) / y)) end
function tmp = code(x, y, z) tmp = x + (exp((y * log((y / (z + y))))) / y); end
code[x_, y_, z_] := N[(x + N[(N[Exp[N[(y * N[Log[N[(y / N[(z + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ x (/ (exp (* y (log (/ y (+ z y))))) y)))
double code(double x, double y, double z) {
return x + (exp((y * log((y / (z + y))))) / y);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + (exp((y * log((y / (z + y))))) / y)
end function
public static double code(double x, double y, double z) {
return x + (Math.exp((y * Math.log((y / (z + y))))) / y);
}
def code(x, y, z): return x + (math.exp((y * math.log((y / (z + y))))) / y)
function code(x, y, z) return Float64(x + Float64(exp(Float64(y * log(Float64(y / Float64(z + y))))) / y)) end
function tmp = code(x, y, z) tmp = x + (exp((y * log((y / (z + y))))) / y); end
code[x_, y_, z_] := N[(x + N[(N[Exp[N[(y * N[Log[N[(y / N[(z + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= y -5e+61) (not (<= y 5e-35))) (+ x (/ (exp (- z)) y)) (+ x (/ (pow (exp y) (log (/ y (+ y z)))) y))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -5e+61) || !(y <= 5e-35)) {
tmp = x + (exp(-z) / y);
} else {
tmp = x + (pow(exp(y), log((y / (y + z)))) / 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 <= (-5d+61)) .or. (.not. (y <= 5d-35))) then
tmp = x + (exp(-z) / y)
else
tmp = x + ((exp(y) ** log((y / (y + z)))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -5e+61) || !(y <= 5e-35)) {
tmp = x + (Math.exp(-z) / y);
} else {
tmp = x + (Math.pow(Math.exp(y), Math.log((y / (y + z)))) / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -5e+61) or not (y <= 5e-35): tmp = x + (math.exp(-z) / y) else: tmp = x + (math.pow(math.exp(y), math.log((y / (y + z)))) / y) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -5e+61) || !(y <= 5e-35)) tmp = Float64(x + Float64(exp(Float64(-z)) / y)); else tmp = Float64(x + Float64((exp(y) ^ log(Float64(y / Float64(y + z)))) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -5e+61) || ~((y <= 5e-35))) tmp = x + (exp(-z) / y); else tmp = x + ((exp(y) ^ log((y / (y + z)))) / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -5e+61], N[Not[LessEqual[y, 5e-35]], $MachinePrecision]], N[(x + N[(N[Exp[(-z)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[Power[N[Exp[y], $MachinePrecision], N[Log[N[(y / N[(y + z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+61} \lor \neg \left(y \leq 5 \cdot 10^{-35}\right):\\
\;\;\;\;x + \frac{e^{-z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{{\left(e^{y}\right)}^{\log \left(\frac{y}{y + z}\right)}}{y}\\
\end{array}
\end{array}
if y < -5.00000000000000018e61 or 4.99999999999999964e-35 < y Initial program 89.8%
*-commutative89.8%
exp-to-pow89.8%
+-commutative89.8%
Simplified89.8%
Taylor expanded in y around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -5.00000000000000018e61 < y < 4.99999999999999964e-35Initial program 88.4%
exp-prod99.8%
+-commutative99.8%
Simplified99.8%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(if (<= z -7.5e+167)
(+ x (/ (+ 1.0 (* z (+ (* z 0.5) -1.0))) y))
(if (<= z -6e+137)
(/ (+ 1.0 (* y x)) y)
(if (<= z -1000.0) (/ (exp (- z)) y) (+ x (/ 1.0 y))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -7.5e+167) {
tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y);
} else if (z <= -6e+137) {
tmp = (1.0 + (y * x)) / y;
} else if (z <= -1000.0) {
tmp = exp(-z) / y;
} else {
tmp = x + (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 (z <= (-7.5d+167)) then
tmp = x + ((1.0d0 + (z * ((z * 0.5d0) + (-1.0d0)))) / y)
else if (z <= (-6d+137)) then
tmp = (1.0d0 + (y * x)) / y
else if (z <= (-1000.0d0)) then
tmp = exp(-z) / y
else
tmp = x + (1.0d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -7.5e+167) {
tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y);
} else if (z <= -6e+137) {
tmp = (1.0 + (y * x)) / y;
} else if (z <= -1000.0) {
tmp = Math.exp(-z) / y;
} else {
tmp = x + (1.0 / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -7.5e+167: tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y) elif z <= -6e+137: tmp = (1.0 + (y * x)) / y elif z <= -1000.0: tmp = math.exp(-z) / y else: tmp = x + (1.0 / y) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -7.5e+167) tmp = Float64(x + Float64(Float64(1.0 + Float64(z * Float64(Float64(z * 0.5) + -1.0))) / y)); elseif (z <= -6e+137) tmp = Float64(Float64(1.0 + Float64(y * x)) / y); elseif (z <= -1000.0) tmp = Float64(exp(Float64(-z)) / y); else tmp = Float64(x + Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -7.5e+167) tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y); elseif (z <= -6e+137) tmp = (1.0 + (y * x)) / y; elseif (z <= -1000.0) tmp = exp(-z) / y; else tmp = x + (1.0 / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -7.5e+167], N[(x + N[(N[(1.0 + N[(z * N[(N[(z * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6e+137], N[(N[(1.0 + N[(y * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, -1000.0], N[(N[Exp[(-z)], $MachinePrecision] / y), $MachinePrecision], N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+167}:\\
\;\;\;\;x + \frac{1 + z \cdot \left(z \cdot 0.5 + -1\right)}{y}\\
\mathbf{elif}\;z \leq -6 \cdot 10^{+137}:\\
\;\;\;\;\frac{1 + y \cdot x}{y}\\
\mathbf{elif}\;z \leq -1000:\\
\;\;\;\;\frac{e^{-z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{y}\\
\end{array}
\end{array}
if z < -7.4999999999999995e167Initial program 66.6%
*-commutative66.6%
exp-to-pow66.6%
+-commutative66.6%
Simplified66.6%
Taylor expanded in y around inf 66.6%
mul-1-neg66.6%
Simplified66.6%
Taylor expanded in z around 0 66.6%
Taylor expanded in y around 0 66.6%
Taylor expanded in z around 0 66.6%
*-commutative66.6%
Simplified66.6%
if -7.4999999999999995e167 < z < -6.0000000000000002e137Initial program 82.7%
exp-prod97.0%
+-commutative97.0%
Simplified97.0%
Taylor expanded in y around inf 73.1%
+-commutative73.1%
Simplified73.1%
Taylor expanded in y around 0 73.1%
*-commutative73.1%
Simplified73.1%
if -6.0000000000000002e137 < z < -1e3Initial program 44.8%
*-commutative44.8%
exp-to-pow44.8%
+-commutative44.8%
Simplified44.8%
Taylor expanded in y around inf 68.9%
mul-1-neg68.9%
Simplified68.9%
Taylor expanded in x around 0 68.9%
if -1e3 < z Initial program 95.5%
exp-prod98.3%
+-commutative98.3%
Simplified98.3%
Taylor expanded in y around inf 97.9%
+-commutative97.9%
Simplified97.9%
Final simplification92.9%
(FPCore (x y z) :precision binary64 (if (or (<= y -6.8) (not (<= y 5e-35))) (+ x (/ (exp (- z)) y)) (/ (+ 1.0 (* y x)) y)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -6.8) || !(y <= 5e-35)) {
tmp = x + (exp(-z) / y);
} else {
tmp = (1.0 + (y * 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 <= (-6.8d0)) .or. (.not. (y <= 5d-35))) then
tmp = x + (exp(-z) / y)
else
tmp = (1.0d0 + (y * x)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -6.8) || !(y <= 5e-35)) {
tmp = x + (Math.exp(-z) / y);
} else {
tmp = (1.0 + (y * x)) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -6.8) or not (y <= 5e-35): tmp = x + (math.exp(-z) / y) else: tmp = (1.0 + (y * x)) / y return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -6.8) || !(y <= 5e-35)) tmp = Float64(x + Float64(exp(Float64(-z)) / y)); else tmp = Float64(Float64(1.0 + Float64(y * x)) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -6.8) || ~((y <= 5e-35))) tmp = x + (exp(-z) / y); else tmp = (1.0 + (y * x)) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -6.8], N[Not[LessEqual[y, 5e-35]], $MachinePrecision]], N[(x + N[(N[Exp[(-z)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(y * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \lor \neg \left(y \leq 5 \cdot 10^{-35}\right):\\
\;\;\;\;x + \frac{e^{-z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + y \cdot x}{y}\\
\end{array}
\end{array}
if y < -6.79999999999999982 or 4.99999999999999964e-35 < y Initial program 90.5%
*-commutative90.5%
exp-to-pow90.5%
+-commutative90.5%
Simplified90.5%
Taylor expanded in y around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -6.79999999999999982 < y < 4.99999999999999964e-35Initial program 87.2%
exp-prod99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 98.4%
+-commutative98.4%
Simplified98.4%
Taylor expanded in y around 0 98.4%
*-commutative98.4%
Simplified98.4%
Final simplification99.4%
(FPCore (x y z) :precision binary64 (if (<= y -6.8) (+ x (/ (+ 1.0 (* z (+ (* z 0.5) -1.0))) y)) (+ x (/ 1.0 y))))
double code(double x, double y, double z) {
double tmp;
if (y <= -6.8) {
tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y);
} else {
tmp = x + (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 (y <= (-6.8d0)) then
tmp = x + ((1.0d0 + (z * ((z * 0.5d0) + (-1.0d0)))) / y)
else
tmp = x + (1.0d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -6.8) {
tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y);
} else {
tmp = x + (1.0 / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -6.8: tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y) else: tmp = x + (1.0 / y) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -6.8) tmp = Float64(x + Float64(Float64(1.0 + Float64(z * Float64(Float64(z * 0.5) + -1.0))) / y)); else tmp = Float64(x + Float64(1.0 / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -6.8) tmp = x + ((1.0 + (z * ((z * 0.5) + -1.0))) / y); else tmp = x + (1.0 / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -6.8], N[(x + N[(N[(1.0 + N[(z * N[(N[(z * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8:\\
\;\;\;\;x + \frac{1 + z \cdot \left(z \cdot 0.5 + -1\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{y}\\
\end{array}
\end{array}
if y < -6.79999999999999982Initial program 92.9%
*-commutative92.9%
exp-to-pow92.9%
+-commutative92.9%
Simplified92.9%
Taylor expanded in y around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
Taylor expanded in z around 0 82.0%
Taylor expanded in y around 0 81.8%
Taylor expanded in z around 0 82.6%
*-commutative82.6%
Simplified82.6%
if -6.79999999999999982 < y Initial program 87.6%
exp-prod94.9%
+-commutative94.9%
Simplified94.9%
Taylor expanded in y around inf 92.6%
+-commutative92.6%
Simplified92.6%
Final simplification89.7%
(FPCore (x y z) :precision binary64 (if (<= y -3.1e+33) x (if (<= y 2.15e-39) (/ 1.0 y) x)))
double code(double x, double y, double z) {
double tmp;
if (y <= -3.1e+33) {
tmp = x;
} else if (y <= 2.15e-39) {
tmp = 1.0 / y;
} 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 (y <= (-3.1d+33)) then
tmp = x
else if (y <= 2.15d-39) then
tmp = 1.0d0 / y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -3.1e+33) {
tmp = x;
} else if (y <= 2.15e-39) {
tmp = 1.0 / y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -3.1e+33: tmp = x elif y <= 2.15e-39: tmp = 1.0 / y else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (y <= -3.1e+33) tmp = x; elseif (y <= 2.15e-39) tmp = Float64(1.0 / y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -3.1e+33) tmp = x; elseif (y <= 2.15e-39) tmp = 1.0 / y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -3.1e+33], x, If[LessEqual[y, 2.15e-39], N[(1.0 / y), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.1 \cdot 10^{+33}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-39}:\\
\;\;\;\;\frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.1e33 or 2.15e-39 < y Initial program 90.3%
exp-prod90.3%
+-commutative90.3%
Simplified90.3%
Taylor expanded in x around inf 73.5%
if -3.1e33 < y < 2.15e-39Initial program 87.5%
exp-prod99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 70.2%
(FPCore (x y z) :precision binary64 (+ x (/ 1.0 y)))
double code(double x, double y, double z) {
return x + (1.0 / y);
}
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 / y)
end function
public static double code(double x, double y, double z) {
return x + (1.0 / y);
}
def code(x, y, z): return x + (1.0 / y)
function code(x, y, z) return Float64(x + Float64(1.0 / y)) end
function tmp = code(x, y, z) tmp = x + (1.0 / y); end
code[x_, y_, z_] := N[(x + N[(1.0 / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{1}{y}
\end{array}
Initial program 89.1%
exp-prod94.3%
+-commutative94.3%
Simplified94.3%
Taylor expanded in y around inf 88.1%
+-commutative88.1%
Simplified88.1%
Final simplification88.1%
(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 89.1%
exp-prod94.3%
+-commutative94.3%
Simplified94.3%
Taylor expanded in x around inf 53.1%
(FPCore (x y z) :precision binary64 (if (< (/ y (+ z y)) 7.11541576e-315) (+ x (/ (exp (/ -1.0 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y))))
double code(double x, double y, double z) {
double tmp;
if ((y / (z + y)) < 7.11541576e-315) {
tmp = x + (exp((-1.0 / z)) / y);
} else {
tmp = x + (exp(log(pow((y / (y + z)), y))) / 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 / (z + y)) < 7.11541576d-315) then
tmp = x + (exp(((-1.0d0) / z)) / y)
else
tmp = x + (exp(log(((y / (y + z)) ** y))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y / (z + y)) < 7.11541576e-315) {
tmp = x + (Math.exp((-1.0 / z)) / y);
} else {
tmp = x + (Math.exp(Math.log(Math.pow((y / (y + z)), y))) / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y / (z + y)) < 7.11541576e-315: tmp = x + (math.exp((-1.0 / z)) / y) else: tmp = x + (math.exp(math.log(math.pow((y / (y + z)), y))) / y) return tmp
function code(x, y, z) tmp = 0.0 if (Float64(y / Float64(z + y)) < 7.11541576e-315) tmp = Float64(x + Float64(exp(Float64(-1.0 / z)) / y)); else tmp = Float64(x + Float64(exp(log((Float64(y / Float64(y + z)) ^ y))) / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y / (z + y)) < 7.11541576e-315) tmp = x + (exp((-1.0 / z)) / y); else tmp = x + (exp(log(((y / (y + z)) ^ y))) / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Less[N[(y / N[(z + y), $MachinePrecision]), $MachinePrecision], 7.11541576e-315], N[(x + N[(N[Exp[N[(-1.0 / z), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[Exp[N[Log[N[Power[N[(y / N[(y + z), $MachinePrecision]), $MachinePrecision], y], $MachinePrecision]], $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y}{z + y} < 7.11541576 \cdot 10^{-315}:\\
\;\;\;\;x + \frac{e^{\frac{-1}{z}}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{e^{\log \left({\left(\frac{y}{y + z}\right)}^{y}\right)}}{y}\\
\end{array}
\end{array}
herbie shell --seed 2024100
(FPCore (x y z)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, G"
:precision binary64
:alt
(if (< (/ y (+ z y)) 7.11541576e-315) (+ x (/ (exp (/ -1.0 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))