
(FPCore (x y z) :precision binary64 (+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))
double code(double x, double y, double z) {
return x + (y / ((1.1283791670955126 * exp(z)) - (x * 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 + (y / ((1.1283791670955126d0 * exp(z)) - (x * y)))
end function
public static double code(double x, double y, double z) {
return x + (y / ((1.1283791670955126 * Math.exp(z)) - (x * y)));
}
def code(x, y, z): return x + (y / ((1.1283791670955126 * math.exp(z)) - (x * y)))
function code(x, y, z) return Float64(x + Float64(y / Float64(Float64(1.1283791670955126 * exp(z)) - Float64(x * y)))) end
function tmp = code(x, y, z) tmp = x + (y / ((1.1283791670955126 * exp(z)) - (x * y))); end
code[x_, y_, z_] := N[(x + N[(y / N[(N[(1.1283791670955126 * N[Exp[z], $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))
double code(double x, double y, double z) {
return x + (y / ((1.1283791670955126 * exp(z)) - (x * 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 + (y / ((1.1283791670955126d0 * exp(z)) - (x * y)))
end function
public static double code(double x, double y, double z) {
return x + (y / ((1.1283791670955126 * Math.exp(z)) - (x * y)));
}
def code(x, y, z): return x + (y / ((1.1283791670955126 * math.exp(z)) - (x * y)))
function code(x, y, z) return Float64(x + Float64(y / Float64(Float64(1.1283791670955126 * exp(z)) - Float64(x * y)))) end
function tmp = code(x, y, z) tmp = x + (y / ((1.1283791670955126 * exp(z)) - (x * y))); end
code[x_, y_, z_] := N[(x + N[(y / N[(N[(1.1283791670955126 * N[Exp[z], $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}
\end{array}
(FPCore (x y z) :precision binary64 (if (<= (exp z) 0.0) (+ x (/ -1.0 x)) (- x (/ y (fma x y (* (exp z) -1.1283791670955126))))))
double code(double x, double y, double z) {
double tmp;
if (exp(z) <= 0.0) {
tmp = x + (-1.0 / x);
} else {
tmp = x - (y / fma(x, y, (exp(z) * -1.1283791670955126)));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (exp(z) <= 0.0) tmp = Float64(x + Float64(-1.0 / x)); else tmp = Float64(x - Float64(y / fma(x, y, Float64(exp(z) * -1.1283791670955126)))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[Exp[z], $MachinePrecision], 0.0], N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(x * y + N[(N[Exp[z], $MachinePrecision] * -1.1283791670955126), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;e^{z} \leq 0:\\
\;\;\;\;x + \frac{-1}{x}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\mathsf{fma}\left(x, y, e^{z} \cdot -1.1283791670955126\right)}\\
\end{array}
\end{array}
if (exp.f64 z) < 0.0Initial program 86.3%
Taylor expanded in y around inf 100.0%
if 0.0 < (exp.f64 z) Initial program 97.4%
remove-double-neg97.4%
distribute-frac-neg97.4%
unsub-neg97.4%
distribute-frac-neg97.4%
distribute-neg-frac297.4%
neg-sub097.4%
associate--r-97.4%
neg-sub097.4%
+-commutative97.4%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(if (<= (exp z) 0.0)
(+ x (/ -1.0 x))
(if (<= (exp z) 2.0)
(-
x
(/
y
(-
(+
(* x y)
(*
z
(-
(* z (- (* z -0.18806319451591877) 0.5641895835477563))
1.1283791670955126)))
1.1283791670955126)))
x)))
double code(double x, double y, double z) {
double tmp;
if (exp(z) <= 0.0) {
tmp = x + (-1.0 / x);
} else if (exp(z) <= 2.0) {
tmp = x - (y / (((x * y) + (z * ((z * ((z * -0.18806319451591877) - 0.5641895835477563)) - 1.1283791670955126))) - 1.1283791670955126));
} 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 (exp(z) <= 0.0d0) then
tmp = x + ((-1.0d0) / x)
else if (exp(z) <= 2.0d0) then
tmp = x - (y / (((x * y) + (z * ((z * ((z * (-0.18806319451591877d0)) - 0.5641895835477563d0)) - 1.1283791670955126d0))) - 1.1283791670955126d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (Math.exp(z) <= 0.0) {
tmp = x + (-1.0 / x);
} else if (Math.exp(z) <= 2.0) {
tmp = x - (y / (((x * y) + (z * ((z * ((z * -0.18806319451591877) - 0.5641895835477563)) - 1.1283791670955126))) - 1.1283791670955126));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if math.exp(z) <= 0.0: tmp = x + (-1.0 / x) elif math.exp(z) <= 2.0: tmp = x - (y / (((x * y) + (z * ((z * ((z * -0.18806319451591877) - 0.5641895835477563)) - 1.1283791670955126))) - 1.1283791670955126)) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (exp(z) <= 0.0) tmp = Float64(x + Float64(-1.0 / x)); elseif (exp(z) <= 2.0) tmp = Float64(x - Float64(y / Float64(Float64(Float64(x * y) + Float64(z * Float64(Float64(z * Float64(Float64(z * -0.18806319451591877) - 0.5641895835477563)) - 1.1283791670955126))) - 1.1283791670955126))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (exp(z) <= 0.0) tmp = x + (-1.0 / x); elseif (exp(z) <= 2.0) tmp = x - (y / (((x * y) + (z * ((z * ((z * -0.18806319451591877) - 0.5641895835477563)) - 1.1283791670955126))) - 1.1283791670955126)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[Exp[z], $MachinePrecision], 0.0], N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Exp[z], $MachinePrecision], 2.0], N[(x - N[(y / N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(N[(z * N[(N[(z * -0.18806319451591877), $MachinePrecision] - 0.5641895835477563), $MachinePrecision]), $MachinePrecision] - 1.1283791670955126), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.1283791670955126), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;e^{z} \leq 0:\\
\;\;\;\;x + \frac{-1}{x}\\
\mathbf{elif}\;e^{z} \leq 2:\\
\;\;\;\;x - \frac{y}{\left(x \cdot y + z \cdot \left(z \cdot \left(z \cdot -0.18806319451591877 - 0.5641895835477563\right) - 1.1283791670955126\right)\right) - 1.1283791670955126}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if (exp.f64 z) < 0.0Initial program 86.3%
Taylor expanded in y around inf 100.0%
if 0.0 < (exp.f64 z) < 2Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 99.9%
if 2 < (exp.f64 z) Initial program 92.4%
Taylor expanded in x around inf 100.0%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (+ x (/ y (- (* (exp z) 1.1283791670955126) (* x y)))))) (if (<= t_0 5e+249) t_0 (+ x (/ -1.0 x)))))
double code(double x, double y, double z) {
double t_0 = x + (y / ((exp(z) * 1.1283791670955126) - (x * y)));
double tmp;
if (t_0 <= 5e+249) {
tmp = t_0;
} else {
tmp = x + (-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) :: t_0
real(8) :: tmp
t_0 = x + (y / ((exp(z) * 1.1283791670955126d0) - (x * y)))
if (t_0 <= 5d+249) then
tmp = t_0
else
tmp = x + ((-1.0d0) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x + (y / ((Math.exp(z) * 1.1283791670955126) - (x * y)));
double tmp;
if (t_0 <= 5e+249) {
tmp = t_0;
} else {
tmp = x + (-1.0 / x);
}
return tmp;
}
def code(x, y, z): t_0 = x + (y / ((math.exp(z) * 1.1283791670955126) - (x * y))) tmp = 0 if t_0 <= 5e+249: tmp = t_0 else: tmp = x + (-1.0 / x) return tmp
function code(x, y, z) t_0 = Float64(x + Float64(y / Float64(Float64(exp(z) * 1.1283791670955126) - Float64(x * y)))) tmp = 0.0 if (t_0 <= 5e+249) tmp = t_0; else tmp = Float64(x + Float64(-1.0 / x)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x + (y / ((exp(z) * 1.1283791670955126) - (x * y))); tmp = 0.0; if (t_0 <= 5e+249) tmp = t_0; else tmp = x + (-1.0 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(y / N[(N[(N[Exp[z], $MachinePrecision] * 1.1283791670955126), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+249], t$95$0, N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x + \frac{y}{e^{z} \cdot 1.1283791670955126 - x \cdot y}\\
\mathbf{if}\;t\_0 \leq 5 \cdot 10^{+249}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x + \frac{-1}{x}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 y (-.f64 (*.f64 #s(literal 5641895835477563/5000000000000000 binary64) (exp.f64 z)) (*.f64 x y)))) < 4.9999999999999996e249Initial program 99.5%
if 4.9999999999999996e249 < (+.f64 x (/.f64 y (-.f64 (*.f64 #s(literal 5641895835477563/5000000000000000 binary64) (exp.f64 z)) (*.f64 x y)))) Initial program 53.1%
Taylor expanded in y around inf 100.0%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= z -16200000000.0)
(+ x (/ -1.0 x))
(if (<= z 7.2e-25)
(+
x
(/
y
(+
(- (* z (- 1.1283791670955126 (* z -0.5641895835477563))) (* x y))
1.1283791670955126)))
x)))
double code(double x, double y, double z) {
double tmp;
if (z <= -16200000000.0) {
tmp = x + (-1.0 / x);
} else if (z <= 7.2e-25) {
tmp = x + (y / (((z * (1.1283791670955126 - (z * -0.5641895835477563))) - (x * y)) + 1.1283791670955126));
} 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 <= (-16200000000.0d0)) then
tmp = x + ((-1.0d0) / x)
else if (z <= 7.2d-25) then
tmp = x + (y / (((z * (1.1283791670955126d0 - (z * (-0.5641895835477563d0)))) - (x * y)) + 1.1283791670955126d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -16200000000.0) {
tmp = x + (-1.0 / x);
} else if (z <= 7.2e-25) {
tmp = x + (y / (((z * (1.1283791670955126 - (z * -0.5641895835477563))) - (x * y)) + 1.1283791670955126));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -16200000000.0: tmp = x + (-1.0 / x) elif z <= 7.2e-25: tmp = x + (y / (((z * (1.1283791670955126 - (z * -0.5641895835477563))) - (x * y)) + 1.1283791670955126)) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -16200000000.0) tmp = Float64(x + Float64(-1.0 / x)); elseif (z <= 7.2e-25) tmp = Float64(x + Float64(y / Float64(Float64(Float64(z * Float64(1.1283791670955126 - Float64(z * -0.5641895835477563))) - Float64(x * y)) + 1.1283791670955126))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -16200000000.0) tmp = x + (-1.0 / x); elseif (z <= 7.2e-25) tmp = x + (y / (((z * (1.1283791670955126 - (z * -0.5641895835477563))) - (x * y)) + 1.1283791670955126)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -16200000000.0], N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-25], N[(x + N[(y / N[(N[(N[(z * N[(1.1283791670955126 - N[(z * -0.5641895835477563), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] + 1.1283791670955126), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16200000000:\\
\;\;\;\;x + \frac{-1}{x}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-25}:\\
\;\;\;\;x + \frac{y}{\left(z \cdot \left(1.1283791670955126 - z \cdot -0.5641895835477563\right) - x \cdot y\right) + 1.1283791670955126}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.62e10Initial program 85.8%
Taylor expanded in y around inf 100.0%
if -1.62e10 < z < 7.1999999999999998e-25Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 99.8%
if 7.1999999999999998e-25 < z Initial program 92.8%
Taylor expanded in x around inf 100.0%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(if (<= z -16200000000.0)
(+ x (/ -1.0 x))
(if (<= z 7.2e-25)
(+ x (/ y (- 1.1283791670955126 (+ (* x y) (* z -1.1283791670955126)))))
x)))
double code(double x, double y, double z) {
double tmp;
if (z <= -16200000000.0) {
tmp = x + (-1.0 / x);
} else if (z <= 7.2e-25) {
tmp = x + (y / (1.1283791670955126 - ((x * y) + (z * -1.1283791670955126))));
} 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 <= (-16200000000.0d0)) then
tmp = x + ((-1.0d0) / x)
else if (z <= 7.2d-25) then
tmp = x + (y / (1.1283791670955126d0 - ((x * y) + (z * (-1.1283791670955126d0)))))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -16200000000.0) {
tmp = x + (-1.0 / x);
} else if (z <= 7.2e-25) {
tmp = x + (y / (1.1283791670955126 - ((x * y) + (z * -1.1283791670955126))));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -16200000000.0: tmp = x + (-1.0 / x) elif z <= 7.2e-25: tmp = x + (y / (1.1283791670955126 - ((x * y) + (z * -1.1283791670955126)))) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -16200000000.0) tmp = Float64(x + Float64(-1.0 / x)); elseif (z <= 7.2e-25) tmp = Float64(x + Float64(y / Float64(1.1283791670955126 - Float64(Float64(x * y) + Float64(z * -1.1283791670955126))))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -16200000000.0) tmp = x + (-1.0 / x); elseif (z <= 7.2e-25) tmp = x + (y / (1.1283791670955126 - ((x * y) + (z * -1.1283791670955126)))); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -16200000000.0], N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-25], N[(x + N[(y / N[(1.1283791670955126 - N[(N[(x * y), $MachinePrecision] + N[(z * -1.1283791670955126), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16200000000:\\
\;\;\;\;x + \frac{-1}{x}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-25}:\\
\;\;\;\;x + \frac{y}{1.1283791670955126 - \left(x \cdot y + z \cdot -1.1283791670955126\right)}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.62e10Initial program 85.8%
Taylor expanded in y around inf 100.0%
if -1.62e10 < z < 7.1999999999999998e-25Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 99.6%
if 7.1999999999999998e-25 < z Initial program 92.8%
Taylor expanded in x around inf 100.0%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ x (/ -1.0 x))))
(if (<= z -16200000000.0)
t_0
(if (<= z 2.6e-166)
(- x (* 0.8862269254527579 (- (* z y) y)))
(if (<= z 2.8e-47) t_0 x)))))
double code(double x, double y, double z) {
double t_0 = x + (-1.0 / x);
double tmp;
if (z <= -16200000000.0) {
tmp = t_0;
} else if (z <= 2.6e-166) {
tmp = x - (0.8862269254527579 * ((z * y) - y));
} else if (z <= 2.8e-47) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = x + ((-1.0d0) / x)
if (z <= (-16200000000.0d0)) then
tmp = t_0
else if (z <= 2.6d-166) then
tmp = x - (0.8862269254527579d0 * ((z * y) - y))
else if (z <= 2.8d-47) then
tmp = t_0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x + (-1.0 / x);
double tmp;
if (z <= -16200000000.0) {
tmp = t_0;
} else if (z <= 2.6e-166) {
tmp = x - (0.8862269254527579 * ((z * y) - y));
} else if (z <= 2.8e-47) {
tmp = t_0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): t_0 = x + (-1.0 / x) tmp = 0 if z <= -16200000000.0: tmp = t_0 elif z <= 2.6e-166: tmp = x - (0.8862269254527579 * ((z * y) - y)) elif z <= 2.8e-47: tmp = t_0 else: tmp = x return tmp
function code(x, y, z) t_0 = Float64(x + Float64(-1.0 / x)) tmp = 0.0 if (z <= -16200000000.0) tmp = t_0; elseif (z <= 2.6e-166) tmp = Float64(x - Float64(0.8862269254527579 * Float64(Float64(z * y) - y))); elseif (z <= 2.8e-47) tmp = t_0; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x + (-1.0 / x); tmp = 0.0; if (z <= -16200000000.0) tmp = t_0; elseif (z <= 2.6e-166) tmp = x - (0.8862269254527579 * ((z * y) - y)); elseif (z <= 2.8e-47) tmp = t_0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -16200000000.0], t$95$0, If[LessEqual[z, 2.6e-166], N[(x - N[(0.8862269254527579 * N[(N[(z * y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-47], t$95$0, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x + \frac{-1}{x}\\
\mathbf{if}\;z \leq -16200000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-166}:\\
\;\;\;\;x - 0.8862269254527579 \cdot \left(z \cdot y - y\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-47}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.62e10 or 2.59999999999999989e-166 < z < 2.79999999999999993e-47Initial program 89.8%
Taylor expanded in y around inf 94.1%
if -1.62e10 < z < 2.59999999999999989e-166Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around 0 73.2%
associate-*r/73.2%
Simplified73.2%
Taylor expanded in z around 0 74.9%
+-commutative74.9%
Simplified74.9%
Taylor expanded in z around 0 74.9%
+-commutative74.9%
metadata-eval74.9%
cancel-sign-sub-inv74.9%
distribute-lft-out--74.9%
Simplified74.9%
if 2.79999999999999993e-47 < z Initial program 93.5%
Taylor expanded in x around inf 95.0%
Final simplification86.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ x (/ -1.0 x))))
(if (<= z -7.2e-24)
t_0
(if (<= z 5e-168)
(- x (/ y -1.1283791670955126))
(if (<= z 4.8e-47) t_0 x)))))
double code(double x, double y, double z) {
double t_0 = x + (-1.0 / x);
double tmp;
if (z <= -7.2e-24) {
tmp = t_0;
} else if (z <= 5e-168) {
tmp = x - (y / -1.1283791670955126);
} else if (z <= 4.8e-47) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = x + ((-1.0d0) / x)
if (z <= (-7.2d-24)) then
tmp = t_0
else if (z <= 5d-168) then
tmp = x - (y / (-1.1283791670955126d0))
else if (z <= 4.8d-47) then
tmp = t_0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x + (-1.0 / x);
double tmp;
if (z <= -7.2e-24) {
tmp = t_0;
} else if (z <= 5e-168) {
tmp = x - (y / -1.1283791670955126);
} else if (z <= 4.8e-47) {
tmp = t_0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): t_0 = x + (-1.0 / x) tmp = 0 if z <= -7.2e-24: tmp = t_0 elif z <= 5e-168: tmp = x - (y / -1.1283791670955126) elif z <= 4.8e-47: tmp = t_0 else: tmp = x return tmp
function code(x, y, z) t_0 = Float64(x + Float64(-1.0 / x)) tmp = 0.0 if (z <= -7.2e-24) tmp = t_0; elseif (z <= 5e-168) tmp = Float64(x - Float64(y / -1.1283791670955126)); elseif (z <= 4.8e-47) tmp = t_0; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x + (-1.0 / x); tmp = 0.0; if (z <= -7.2e-24) tmp = t_0; elseif (z <= 5e-168) tmp = x - (y / -1.1283791670955126); elseif (z <= 4.8e-47) tmp = t_0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e-24], t$95$0, If[LessEqual[z, 5e-168], N[(x - N[(y / -1.1283791670955126), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-47], t$95$0, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x + \frac{-1}{x}\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{-24}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-168}:\\
\;\;\;\;x - \frac{y}{-1.1283791670955126}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-47}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -7.2000000000000002e-24 or 5.00000000000000001e-168 < z < 4.7999999999999999e-47Initial program 91.0%
Taylor expanded in y around inf 91.4%
if -7.2000000000000002e-24 < z < 5.00000000000000001e-168Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 99.9%
Taylor expanded in x around 0 74.7%
if 4.7999999999999999e-47 < z Initial program 93.5%
Taylor expanded in x around inf 95.0%
Final simplification86.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ x (/ -1.0 x))))
(if (<= z -7.2e-24)
t_0
(if (<= z 3.2e-163)
(- x (* y -0.8862269254527579))
(if (<= z 5.4e-47) t_0 x)))))
double code(double x, double y, double z) {
double t_0 = x + (-1.0 / x);
double tmp;
if (z <= -7.2e-24) {
tmp = t_0;
} else if (z <= 3.2e-163) {
tmp = x - (y * -0.8862269254527579);
} else if (z <= 5.4e-47) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = x + ((-1.0d0) / x)
if (z <= (-7.2d-24)) then
tmp = t_0
else if (z <= 3.2d-163) then
tmp = x - (y * (-0.8862269254527579d0))
else if (z <= 5.4d-47) then
tmp = t_0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x + (-1.0 / x);
double tmp;
if (z <= -7.2e-24) {
tmp = t_0;
} else if (z <= 3.2e-163) {
tmp = x - (y * -0.8862269254527579);
} else if (z <= 5.4e-47) {
tmp = t_0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): t_0 = x + (-1.0 / x) tmp = 0 if z <= -7.2e-24: tmp = t_0 elif z <= 3.2e-163: tmp = x - (y * -0.8862269254527579) elif z <= 5.4e-47: tmp = t_0 else: tmp = x return tmp
function code(x, y, z) t_0 = Float64(x + Float64(-1.0 / x)) tmp = 0.0 if (z <= -7.2e-24) tmp = t_0; elseif (z <= 3.2e-163) tmp = Float64(x - Float64(y * -0.8862269254527579)); elseif (z <= 5.4e-47) tmp = t_0; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x + (-1.0 / x); tmp = 0.0; if (z <= -7.2e-24) tmp = t_0; elseif (z <= 3.2e-163) tmp = x - (y * -0.8862269254527579); elseif (z <= 5.4e-47) tmp = t_0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e-24], t$95$0, If[LessEqual[z, 3.2e-163], N[(x - N[(y * -0.8862269254527579), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e-47], t$95$0, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x + \frac{-1}{x}\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{-24}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-163}:\\
\;\;\;\;x - y \cdot -0.8862269254527579\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-47}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -7.2000000000000002e-24 or 3.19999999999999988e-163 < z < 5.3999999999999996e-47Initial program 91.0%
Taylor expanded in y around inf 91.4%
if -7.2000000000000002e-24 < z < 3.19999999999999988e-163Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 99.9%
Taylor expanded in y around 0 74.6%
*-commutative74.6%
Simplified74.6%
if 5.3999999999999996e-47 < z Initial program 93.5%
Taylor expanded in x around inf 95.0%
Final simplification86.4%
(FPCore (x y z)
:precision binary64
(if (<= z -5.5e+232)
(/ -1.0 x)
(if (<= z -2.15e+26)
x
(if (<= z 5.5e-25) (- x (* y -0.8862269254527579)) x))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.5e+232) {
tmp = -1.0 / x;
} else if (z <= -2.15e+26) {
tmp = x;
} else if (z <= 5.5e-25) {
tmp = x - (y * -0.8862269254527579);
} 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.5d+232)) then
tmp = (-1.0d0) / x
else if (z <= (-2.15d+26)) then
tmp = x
else if (z <= 5.5d-25) then
tmp = x - (y * (-0.8862269254527579d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.5e+232) {
tmp = -1.0 / x;
} else if (z <= -2.15e+26) {
tmp = x;
} else if (z <= 5.5e-25) {
tmp = x - (y * -0.8862269254527579);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.5e+232: tmp = -1.0 / x elif z <= -2.15e+26: tmp = x elif z <= 5.5e-25: tmp = x - (y * -0.8862269254527579) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.5e+232) tmp = Float64(-1.0 / x); elseif (z <= -2.15e+26) tmp = x; elseif (z <= 5.5e-25) tmp = Float64(x - Float64(y * -0.8862269254527579)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.5e+232) tmp = -1.0 / x; elseif (z <= -2.15e+26) tmp = x; elseif (z <= 5.5e-25) tmp = x - (y * -0.8862269254527579); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.5e+232], N[(-1.0 / x), $MachinePrecision], If[LessEqual[z, -2.15e+26], x, If[LessEqual[z, 5.5e-25], N[(x - N[(y * -0.8862269254527579), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+232}:\\
\;\;\;\;\frac{-1}{x}\\
\mathbf{elif}\;z \leq -2.15 \cdot 10^{+26}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-25}:\\
\;\;\;\;x - y \cdot -0.8862269254527579\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -5.49999999999999997e232Initial program 82.8%
Taylor expanded in y around inf 100.0%
Taylor expanded in x around 0 65.3%
if -5.49999999999999997e232 < z < -2.1499999999999999e26 or 5.50000000000000004e-25 < z Initial program 92.5%
Taylor expanded in x around inf 87.8%
if -2.1499999999999999e26 < z < 5.50000000000000004e-25Initial program 98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
unsub-neg98.4%
distribute-frac-neg98.4%
distribute-neg-frac298.4%
neg-sub098.4%
associate--r-98.4%
neg-sub098.4%
+-commutative98.4%
fma-define98.4%
*-commutative98.4%
distribute-rgt-neg-in98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in z around 0 97.5%
Taylor expanded in y around 0 68.7%
*-commutative68.7%
Simplified68.7%
(FPCore (x y z) :precision binary64 (if (<= z -16200000000.0) (+ x (/ -1.0 x)) (if (<= z 7.2e-25) (- x (/ y (- (* x y) 1.1283791670955126))) x)))
double code(double x, double y, double z) {
double tmp;
if (z <= -16200000000.0) {
tmp = x + (-1.0 / x);
} else if (z <= 7.2e-25) {
tmp = x - (y / ((x * y) - 1.1283791670955126));
} 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 <= (-16200000000.0d0)) then
tmp = x + ((-1.0d0) / x)
else if (z <= 7.2d-25) then
tmp = x - (y / ((x * y) - 1.1283791670955126d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -16200000000.0) {
tmp = x + (-1.0 / x);
} else if (z <= 7.2e-25) {
tmp = x - (y / ((x * y) - 1.1283791670955126));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -16200000000.0: tmp = x + (-1.0 / x) elif z <= 7.2e-25: tmp = x - (y / ((x * y) - 1.1283791670955126)) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -16200000000.0) tmp = Float64(x + Float64(-1.0 / x)); elseif (z <= 7.2e-25) tmp = Float64(x - Float64(y / Float64(Float64(x * y) - 1.1283791670955126))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -16200000000.0) tmp = x + (-1.0 / x); elseif (z <= 7.2e-25) tmp = x - (y / ((x * y) - 1.1283791670955126)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -16200000000.0], N[(x + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-25], N[(x - N[(y / N[(N[(x * y), $MachinePrecision] - 1.1283791670955126), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16200000000:\\
\;\;\;\;x + \frac{-1}{x}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-25}:\\
\;\;\;\;x - \frac{y}{x \cdot y - 1.1283791670955126}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.62e10Initial program 85.8%
Taylor expanded in y around inf 100.0%
if -1.62e10 < z < 7.1999999999999998e-25Initial program 99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
unsub-neg99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
neg-sub099.9%
associate--r-99.9%
neg-sub099.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 99.0%
if 7.1999999999999998e-25 < z Initial program 92.8%
Taylor expanded in x around inf 100.0%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(if (<= x -7e-28)
x
(if (<= x -1.4e-221)
(/ -1.0 x)
(if (<= x 8e-215) (* y 0.8862269254527579) x))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7e-28) {
tmp = x;
} else if (x <= -1.4e-221) {
tmp = -1.0 / x;
} else if (x <= 8e-215) {
tmp = y * 0.8862269254527579;
} 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 (x <= (-7d-28)) then
tmp = x
else if (x <= (-1.4d-221)) then
tmp = (-1.0d0) / x
else if (x <= 8d-215) then
tmp = y * 0.8862269254527579d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7e-28) {
tmp = x;
} else if (x <= -1.4e-221) {
tmp = -1.0 / x;
} else if (x <= 8e-215) {
tmp = y * 0.8862269254527579;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7e-28: tmp = x elif x <= -1.4e-221: tmp = -1.0 / x elif x <= 8e-215: tmp = y * 0.8862269254527579 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7e-28) tmp = x; elseif (x <= -1.4e-221) tmp = Float64(-1.0 / x); elseif (x <= 8e-215) tmp = Float64(y * 0.8862269254527579); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7e-28) tmp = x; elseif (x <= -1.4e-221) tmp = -1.0 / x; elseif (x <= 8e-215) tmp = y * 0.8862269254527579; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7e-28], x, If[LessEqual[x, -1.4e-221], N[(-1.0 / x), $MachinePrecision], If[LessEqual[x, 8e-215], N[(y * 0.8862269254527579), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-28}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-221}:\\
\;\;\;\;\frac{-1}{x}\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-215}:\\
\;\;\;\;y \cdot 0.8862269254527579\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -6.9999999999999999e-28 or 8.00000000000000033e-215 < x Initial program 95.9%
Taylor expanded in x around inf 84.0%
if -6.9999999999999999e-28 < x < -1.4000000000000001e-221Initial program 93.9%
Taylor expanded in y around inf 46.2%
Taylor expanded in x around 0 46.2%
if -1.4000000000000001e-221 < x < 8.00000000000000033e-215Initial program 91.4%
remove-double-neg91.4%
distribute-frac-neg91.4%
unsub-neg91.4%
distribute-frac-neg91.4%
distribute-neg-frac291.4%
neg-sub091.2%
associate--r-91.2%
neg-sub091.7%
+-commutative91.7%
fma-define91.7%
*-commutative91.7%
distribute-rgt-neg-in91.7%
metadata-eval91.7%
Simplified91.7%
Taylor expanded in z around 0 59.4%
Taylor expanded in x around 0 52.8%
Final simplification72.6%
(FPCore (x y z) :precision binary64 (if (<= x -1.6e-213) x (if (<= x 5.5e-215) (* y 0.8862269254527579) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.6e-213) {
tmp = x;
} else if (x <= 5.5e-215) {
tmp = y * 0.8862269254527579;
} 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 (x <= (-1.6d-213)) then
tmp = x
else if (x <= 5.5d-215) then
tmp = y * 0.8862269254527579d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.6e-213) {
tmp = x;
} else if (x <= 5.5e-215) {
tmp = y * 0.8862269254527579;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.6e-213: tmp = x elif x <= 5.5e-215: tmp = y * 0.8862269254527579 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.6e-213) tmp = x; elseif (x <= 5.5e-215) tmp = Float64(y * 0.8862269254527579); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.6e-213) tmp = x; elseif (x <= 5.5e-215) tmp = y * 0.8862269254527579; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.6e-213], x, If[LessEqual[x, 5.5e-215], N[(y * 0.8862269254527579), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{-213}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-215}:\\
\;\;\;\;y \cdot 0.8862269254527579\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.59999999999999986e-213 or 5.50000000000000004e-215 < x Initial program 95.8%
Taylor expanded in x around inf 73.8%
if -1.59999999999999986e-213 < x < 5.50000000000000004e-215Initial program 90.1%
remove-double-neg90.1%
distribute-frac-neg90.1%
unsub-neg90.1%
distribute-frac-neg90.1%
distribute-neg-frac290.1%
neg-sub089.7%
associate--r-89.7%
neg-sub090.3%
+-commutative90.3%
fma-define90.3%
*-commutative90.3%
distribute-rgt-neg-in90.3%
metadata-eval90.3%
Simplified90.3%
Taylor expanded in z around 0 62.1%
Taylor expanded in x around 0 51.3%
Final simplification70.4%
(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 94.9%
Taylor expanded in x around inf 65.6%
(FPCore (x y z) :precision binary64 (+ x (/ 1.0 (- (* (/ 1.1283791670955126 y) (exp z)) x))))
double code(double x, double y, double z) {
return x + (1.0 / (((1.1283791670955126 / y) * exp(z)) - 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 + (1.0d0 / (((1.1283791670955126d0 / y) * exp(z)) - x))
end function
public static double code(double x, double y, double z) {
return x + (1.0 / (((1.1283791670955126 / y) * Math.exp(z)) - x));
}
def code(x, y, z): return x + (1.0 / (((1.1283791670955126 / y) * math.exp(z)) - x))
function code(x, y, z) return Float64(x + Float64(1.0 / Float64(Float64(Float64(1.1283791670955126 / y) * exp(z)) - x))) end
function tmp = code(x, y, z) tmp = x + (1.0 / (((1.1283791670955126 / y) * exp(z)) - x)); end
code[x_, y_, z_] := N[(x + N[(1.0 / N[(N[(N[(1.1283791670955126 / y), $MachinePrecision] * N[Exp[z], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{1}{\frac{1.1283791670955126}{y} \cdot e^{z} - x}
\end{array}
herbie shell --seed 2024185
(FPCore (x y z)
:name "Numeric.SpecFunctions:invErfc from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (+ x (/ 1 (- (* (/ 5641895835477563/5000000000000000 y) (exp z)) x))))
(+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))