
(FPCore (x y) :precision binary64 (/ (+ x y) (+ y 1.0)))
double code(double x, double y) {
return (x + y) / (y + 1.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x + y) / (y + 1.0d0)
end function
public static double code(double x, double y) {
return (x + y) / (y + 1.0);
}
def code(x, y): return (x + y) / (y + 1.0)
function code(x, y) return Float64(Float64(x + y) / Float64(y + 1.0)) end
function tmp = code(x, y) tmp = (x + y) / (y + 1.0); end
code[x_, y_] := N[(N[(x + y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y}{y + 1}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (/ (+ x y) (+ y 1.0)))
double code(double x, double y) {
return (x + y) / (y + 1.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x + y) / (y + 1.0d0)
end function
public static double code(double x, double y) {
return (x + y) / (y + 1.0);
}
def code(x, y): return (x + y) / (y + 1.0)
function code(x, y) return Float64(Float64(x + y) / Float64(y + 1.0)) end
function tmp = code(x, y) tmp = (x + y) / (y + 1.0); end
code[x_, y_] := N[(N[(x + y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y}{y + 1}
\end{array}
(FPCore (x y) :precision binary64 (/ (+ x y) (+ y 1.0)))
double code(double x, double y) {
return (x + y) / (y + 1.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x + y) / (y + 1.0d0)
end function
public static double code(double x, double y) {
return (x + y) / (y + 1.0);
}
def code(x, y): return (x + y) / (y + 1.0)
function code(x, y) return Float64(Float64(x + y) / Float64(y + 1.0)) end
function tmp = code(x, y) tmp = (x + y) / (y + 1.0); end
code[x_, y_] := N[(N[(x + y), $MachinePrecision] / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + y}{y + 1}
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ x (+ y 1.0))))
(if (<= y -4.9e+65)
1.0
(if (<= y 1.55e-75)
t_0
(if (<= y 5.3e-33) y (if (<= y 2.2e+19) t_0 1.0))))))
double code(double x, double y) {
double t_0 = x / (y + 1.0);
double tmp;
if (y <= -4.9e+65) {
tmp = 1.0;
} else if (y <= 1.55e-75) {
tmp = t_0;
} else if (y <= 5.3e-33) {
tmp = y;
} else if (y <= 2.2e+19) {
tmp = t_0;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = x / (y + 1.0d0)
if (y <= (-4.9d+65)) then
tmp = 1.0d0
else if (y <= 1.55d-75) then
tmp = t_0
else if (y <= 5.3d-33) then
tmp = y
else if (y <= 2.2d+19) then
tmp = t_0
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x / (y + 1.0);
double tmp;
if (y <= -4.9e+65) {
tmp = 1.0;
} else if (y <= 1.55e-75) {
tmp = t_0;
} else if (y <= 5.3e-33) {
tmp = y;
} else if (y <= 2.2e+19) {
tmp = t_0;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): t_0 = x / (y + 1.0) tmp = 0 if y <= -4.9e+65: tmp = 1.0 elif y <= 1.55e-75: tmp = t_0 elif y <= 5.3e-33: tmp = y elif y <= 2.2e+19: tmp = t_0 else: tmp = 1.0 return tmp
function code(x, y) t_0 = Float64(x / Float64(y + 1.0)) tmp = 0.0 if (y <= -4.9e+65) tmp = 1.0; elseif (y <= 1.55e-75) tmp = t_0; elseif (y <= 5.3e-33) tmp = y; elseif (y <= 2.2e+19) tmp = t_0; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) t_0 = x / (y + 1.0); tmp = 0.0; if (y <= -4.9e+65) tmp = 1.0; elseif (y <= 1.55e-75) tmp = t_0; elseif (y <= 5.3e-33) tmp = y; elseif (y <= 2.2e+19) tmp = t_0; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.9e+65], 1.0, If[LessEqual[y, 1.55e-75], t$95$0, If[LessEqual[y, 5.3e-33], y, If[LessEqual[y, 2.2e+19], t$95$0, 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y + 1}\\
\mathbf{if}\;y \leq -4.9 \cdot 10^{+65}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{-33}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+19}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -4.89999999999999956e65 or 2.2e19 < y Initial program 100.0%
Taylor expanded in y around inf 80.6%
if -4.89999999999999956e65 < y < 1.55000000000000003e-75 or 5.29999999999999968e-33 < y < 2.2e19Initial program 100.0%
Taylor expanded in x around inf 78.2%
+-commutative78.2%
Simplified78.2%
if 1.55000000000000003e-75 < y < 5.29999999999999968e-33Initial program 100.0%
Taylor expanded in x around 0 70.2%
+-commutative70.2%
Simplified70.2%
Taylor expanded in y around 0 70.2%
Final simplification78.8%
(FPCore (x y)
:precision binary64
(if (<= y -6e+66)
1.0
(if (<= y 4.2e-76)
(/ x (+ y 1.0))
(if (<= y 5.6e+101) (/ y (+ y 1.0)) (if (<= y 1.15e+142) (/ x y) 1.0)))))
double code(double x, double y) {
double tmp;
if (y <= -6e+66) {
tmp = 1.0;
} else if (y <= 4.2e-76) {
tmp = x / (y + 1.0);
} else if (y <= 5.6e+101) {
tmp = y / (y + 1.0);
} else if (y <= 1.15e+142) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-6d+66)) then
tmp = 1.0d0
else if (y <= 4.2d-76) then
tmp = x / (y + 1.0d0)
else if (y <= 5.6d+101) then
tmp = y / (y + 1.0d0)
else if (y <= 1.15d+142) then
tmp = x / y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -6e+66) {
tmp = 1.0;
} else if (y <= 4.2e-76) {
tmp = x / (y + 1.0);
} else if (y <= 5.6e+101) {
tmp = y / (y + 1.0);
} else if (y <= 1.15e+142) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -6e+66: tmp = 1.0 elif y <= 4.2e-76: tmp = x / (y + 1.0) elif y <= 5.6e+101: tmp = y / (y + 1.0) elif y <= 1.15e+142: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -6e+66) tmp = 1.0; elseif (y <= 4.2e-76) tmp = Float64(x / Float64(y + 1.0)); elseif (y <= 5.6e+101) tmp = Float64(y / Float64(y + 1.0)); elseif (y <= 1.15e+142) tmp = Float64(x / y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -6e+66) tmp = 1.0; elseif (y <= 4.2e-76) tmp = x / (y + 1.0); elseif (y <= 5.6e+101) tmp = y / (y + 1.0); elseif (y <= 1.15e+142) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -6e+66], 1.0, If[LessEqual[y, 4.2e-76], N[(x / N[(y + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e+101], N[(y / N[(y + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e+142], N[(x / y), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+66}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-76}:\\
\;\;\;\;\frac{x}{y + 1}\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+101}:\\
\;\;\;\;\frac{y}{y + 1}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+142}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -6.00000000000000005e66 or 1.15000000000000001e142 < y Initial program 100.0%
Taylor expanded in y around inf 88.2%
if -6.00000000000000005e66 < y < 4.19999999999999985e-76Initial program 100.0%
Taylor expanded in x around inf 79.6%
+-commutative79.6%
Simplified79.6%
if 4.19999999999999985e-76 < y < 5.59999999999999962e101Initial program 100.0%
Taylor expanded in x around 0 70.0%
+-commutative70.0%
Simplified70.0%
if 5.59999999999999962e101 < y < 1.15000000000000001e142Initial program 100.0%
Taylor expanded in x around inf 79.9%
+-commutative79.9%
Simplified79.9%
Taylor expanded in y around inf 79.9%
Final simplification80.6%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ y (+ y 1.0))))
(if (<= y -3.9e-5)
t_0
(if (<= y 0.000185)
(+ x (* y (- 1.0 x)))
(if (<= y 4.7e+101) t_0 (if (<= y 1.15e+142) (/ x y) 1.0))))))
double code(double x, double y) {
double t_0 = y / (y + 1.0);
double tmp;
if (y <= -3.9e-5) {
tmp = t_0;
} else if (y <= 0.000185) {
tmp = x + (y * (1.0 - x));
} else if (y <= 4.7e+101) {
tmp = t_0;
} else if (y <= 1.15e+142) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y / (y + 1.0d0)
if (y <= (-3.9d-5)) then
tmp = t_0
else if (y <= 0.000185d0) then
tmp = x + (y * (1.0d0 - x))
else if (y <= 4.7d+101) then
tmp = t_0
else if (y <= 1.15d+142) then
tmp = x / y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y / (y + 1.0);
double tmp;
if (y <= -3.9e-5) {
tmp = t_0;
} else if (y <= 0.000185) {
tmp = x + (y * (1.0 - x));
} else if (y <= 4.7e+101) {
tmp = t_0;
} else if (y <= 1.15e+142) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): t_0 = y / (y + 1.0) tmp = 0 if y <= -3.9e-5: tmp = t_0 elif y <= 0.000185: tmp = x + (y * (1.0 - x)) elif y <= 4.7e+101: tmp = t_0 elif y <= 1.15e+142: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y) t_0 = Float64(y / Float64(y + 1.0)) tmp = 0.0 if (y <= -3.9e-5) tmp = t_0; elseif (y <= 0.000185) tmp = Float64(x + Float64(y * Float64(1.0 - x))); elseif (y <= 4.7e+101) tmp = t_0; elseif (y <= 1.15e+142) tmp = Float64(x / y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) t_0 = y / (y + 1.0); tmp = 0.0; if (y <= -3.9e-5) tmp = t_0; elseif (y <= 0.000185) tmp = x + (y * (1.0 - x)); elseif (y <= 4.7e+101) tmp = t_0; elseif (y <= 1.15e+142) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y / N[(y + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.9e-5], t$95$0, If[LessEqual[y, 0.000185], N[(x + N[(y * N[(1.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e+101], t$95$0, If[LessEqual[y, 1.15e+142], N[(x / y), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{y + 1}\\
\mathbf{if}\;y \leq -3.9 \cdot 10^{-5}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 0.000185:\\
\;\;\;\;x + y \cdot \left(1 - x\right)\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{+101}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+142}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -3.8999999999999999e-5 or 1.85e-4 < y < 4.69999999999999971e101Initial program 100.0%
Taylor expanded in x around 0 74.7%
+-commutative74.7%
Simplified74.7%
if -3.8999999999999999e-5 < y < 1.85e-4Initial program 100.0%
Taylor expanded in y around 0 100.0%
if 4.69999999999999971e101 < y < 1.15000000000000001e142Initial program 100.0%
Taylor expanded in x around inf 79.9%
+-commutative79.9%
Simplified79.9%
Taylor expanded in y around inf 79.9%
if 1.15000000000000001e142 < y Initial program 100.0%
Taylor expanded in y around inf 90.8%
Final simplification90.1%
(FPCore (x y) :precision binary64 (if (<= y -1.0) 1.0 (if (<= y 6.5e-76) x (if (<= y 1.22e-12) y 1.0))))
double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = 1.0;
} else if (y <= 6.5e-76) {
tmp = x;
} else if (y <= 1.22e-12) {
tmp = y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.0d0)) then
tmp = 1.0d0
else if (y <= 6.5d-76) then
tmp = x
else if (y <= 1.22d-12) then
tmp = y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = 1.0;
} else if (y <= 6.5e-76) {
tmp = x;
} else if (y <= 1.22e-12) {
tmp = y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.0: tmp = 1.0 elif y <= 6.5e-76: tmp = x elif y <= 1.22e-12: tmp = y else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -1.0) tmp = 1.0; elseif (y <= 6.5e-76) tmp = x; elseif (y <= 1.22e-12) tmp = y; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.0) tmp = 1.0; elseif (y <= 6.5e-76) tmp = x; elseif (y <= 1.22e-12) tmp = y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.0], 1.0, If[LessEqual[y, 6.5e-76], x, If[LessEqual[y, 1.22e-12], y, 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-76}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{-12}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1 or 1.2200000000000001e-12 < y Initial program 100.0%
Taylor expanded in y around inf 73.0%
if -1 < y < 6.5e-76Initial program 100.0%
Taylor expanded in y around 0 82.6%
if 6.5e-76 < y < 1.2200000000000001e-12Initial program 100.0%
Taylor expanded in x around 0 70.2%
+-commutative70.2%
Simplified70.2%
Taylor expanded in y around 0 70.2%
Final simplification77.4%
(FPCore (x y) :precision binary64 (if (<= y -1.0) 1.0 (if (<= y 1.45e-75) (* x (- 1.0 y)) (if (<= y 1.22e-12) y 1.0))))
double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = 1.0;
} else if (y <= 1.45e-75) {
tmp = x * (1.0 - y);
} else if (y <= 1.22e-12) {
tmp = y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.0d0)) then
tmp = 1.0d0
else if (y <= 1.45d-75) then
tmp = x * (1.0d0 - y)
else if (y <= 1.22d-12) then
tmp = y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = 1.0;
} else if (y <= 1.45e-75) {
tmp = x * (1.0 - y);
} else if (y <= 1.22e-12) {
tmp = y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.0: tmp = 1.0 elif y <= 1.45e-75: tmp = x * (1.0 - y) elif y <= 1.22e-12: tmp = y else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -1.0) tmp = 1.0; elseif (y <= 1.45e-75) tmp = Float64(x * Float64(1.0 - y)); elseif (y <= 1.22e-12) tmp = y; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.0) tmp = 1.0; elseif (y <= 1.45e-75) tmp = x * (1.0 - y); elseif (y <= 1.22e-12) tmp = y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.0], 1.0, If[LessEqual[y, 1.45e-75], N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.22e-12], y, 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-75}:\\
\;\;\;\;x \cdot \left(1 - y\right)\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{-12}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1 or 1.2200000000000001e-12 < y Initial program 100.0%
Taylor expanded in y around inf 73.0%
if -1 < y < 1.4500000000000001e-75Initial program 100.0%
Taylor expanded in x around inf 82.9%
+-commutative82.9%
Simplified82.9%
Taylor expanded in y around 0 82.9%
+-commutative82.9%
mul-1-neg82.9%
remove-double-neg82.9%
distribute-neg-out82.9%
neg-mul-182.9%
*-commutative82.9%
distribute-lft-in82.9%
distribute-rgt-neg-in82.9%
sub0-neg82.9%
metadata-eval82.9%
sub-neg82.9%
associate-+l-82.9%
neg-sub082.9%
+-commutative82.9%
unsub-neg82.9%
Simplified82.9%
if 1.4500000000000001e-75 < y < 1.2200000000000001e-12Initial program 100.0%
Taylor expanded in x around 0 70.2%
+-commutative70.2%
Simplified70.2%
Taylor expanded in y around 0 70.2%
Final simplification77.5%
(FPCore (x y) :precision binary64 (if (<= y -1.0) 1.0 (if (<= y 0.027) x 1.0)))
double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = 1.0;
} else if (y <= 0.027) {
tmp = x;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.0d0)) then
tmp = 1.0d0
else if (y <= 0.027d0) then
tmp = x
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.0) {
tmp = 1.0;
} else if (y <= 0.027) {
tmp = x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.0: tmp = 1.0 elif y <= 0.027: tmp = x else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -1.0) tmp = 1.0; elseif (y <= 0.027) tmp = x; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.0) tmp = 1.0; elseif (y <= 0.027) tmp = x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.0], 1.0, If[LessEqual[y, 0.027], x, 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 0.027:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1 or 0.0269999999999999997 < y Initial program 100.0%
Taylor expanded in y around inf 73.5%
if -1 < y < 0.0269999999999999997Initial program 100.0%
Taylor expanded in y around 0 77.8%
Final simplification75.7%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 100.0%
Taylor expanded in y around inf 36.6%
Final simplification36.6%
herbie shell --seed 2024089
(FPCore (x y)
:name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
:precision binary64
(/ (+ x y) (+ y 1.0)))