
(FPCore (x y) :precision binary64 (/ (- x y) (- 1.0 y)))
double code(double x, double y) {
return (x - y) / (1.0 - y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x - y) / (1.0d0 - y)
end function
public static double code(double x, double y) {
return (x - y) / (1.0 - y);
}
def code(x, y): return (x - y) / (1.0 - y)
function code(x, y) return Float64(Float64(x - y) / Float64(1.0 - y)) end
function tmp = code(x, y) tmp = (x - y) / (1.0 - y); end
code[x_, y_] := N[(N[(x - y), $MachinePrecision] / N[(1.0 - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{1 - y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (/ (- x y) (- 1.0 y)))
double code(double x, double y) {
return (x - y) / (1.0 - y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x - y) / (1.0d0 - y)
end function
public static double code(double x, double y) {
return (x - y) / (1.0 - y);
}
def code(x, y): return (x - y) / (1.0 - y)
function code(x, y) return Float64(Float64(x - y) / Float64(1.0 - y)) end
function tmp = code(x, y) tmp = (x - y) / (1.0 - y); end
code[x_, y_] := N[(N[(x - y), $MachinePrecision] / N[(1.0 - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{1 - y}
\end{array}
(FPCore (x y) :precision binary64 (/ (- x y) (- 1.0 y)))
double code(double x, double y) {
return (x - y) / (1.0 - y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x - y) / (1.0d0 - y)
end function
public static double code(double x, double y) {
return (x - y) / (1.0 - y);
}
def code(x, y): return (x - y) / (1.0 - y)
function code(x, y) return Float64(Float64(x - y) / Float64(1.0 - y)) end
function tmp = code(x, y) tmp = (x - y) / (1.0 - y); end
code[x_, y_] := N[(N[(x - y), $MachinePrecision] / N[(1.0 - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{1 - y}
\end{array}
Initial program 100.0%
(FPCore (x y)
:precision binary64
(if (<= y -5400000.0)
(- 1.0 (/ x y))
(if (<= y -9e-45)
(/ y (+ y -1.0))
(if (<= y 230.0) (/ x (- 1.0 y)) (+ 1.0 (/ (- 1.0 x) y))))))
double code(double x, double y) {
double tmp;
if (y <= -5400000.0) {
tmp = 1.0 - (x / y);
} else if (y <= -9e-45) {
tmp = y / (y + -1.0);
} else if (y <= 230.0) {
tmp = x / (1.0 - y);
} else {
tmp = 1.0 + ((1.0 - x) / y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-5400000.0d0)) then
tmp = 1.0d0 - (x / y)
else if (y <= (-9d-45)) then
tmp = y / (y + (-1.0d0))
else if (y <= 230.0d0) then
tmp = x / (1.0d0 - y)
else
tmp = 1.0d0 + ((1.0d0 - x) / y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -5400000.0) {
tmp = 1.0 - (x / y);
} else if (y <= -9e-45) {
tmp = y / (y + -1.0);
} else if (y <= 230.0) {
tmp = x / (1.0 - y);
} else {
tmp = 1.0 + ((1.0 - x) / y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -5400000.0: tmp = 1.0 - (x / y) elif y <= -9e-45: tmp = y / (y + -1.0) elif y <= 230.0: tmp = x / (1.0 - y) else: tmp = 1.0 + ((1.0 - x) / y) return tmp
function code(x, y) tmp = 0.0 if (y <= -5400000.0) tmp = Float64(1.0 - Float64(x / y)); elseif (y <= -9e-45) tmp = Float64(y / Float64(y + -1.0)); elseif (y <= 230.0) tmp = Float64(x / Float64(1.0 - y)); else tmp = Float64(1.0 + Float64(Float64(1.0 - x) / y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -5400000.0) tmp = 1.0 - (x / y); elseif (y <= -9e-45) tmp = y / (y + -1.0); elseif (y <= 230.0) tmp = x / (1.0 - y); else tmp = 1.0 + ((1.0 - x) / y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -5400000.0], N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9e-45], N[(y / N[(y + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 230.0], N[(x / N[(1.0 - y), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(1.0 - x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5400000:\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-45}:\\
\;\;\;\;\frac{y}{y + -1}\\
\mathbf{elif}\;y \leq 230:\\
\;\;\;\;\frac{x}{1 - y}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{1 - x}{y}\\
\end{array}
\end{array}
if y < -5.4e6Initial program 100.0%
Taylor expanded in y around inf 99.9%
Taylor expanded in y around inf 98.6%
neg-mul-198.6%
Simplified98.6%
Taylor expanded in x around 0 98.6%
neg-mul-198.6%
unsub-neg98.6%
Simplified98.6%
if -5.4e6 < y < -8.9999999999999997e-45Initial program 100.0%
Taylor expanded in x around 0 67.0%
neg-mul-167.0%
distribute-neg-frac267.0%
neg-sub067.0%
associate--r-67.0%
metadata-eval67.0%
Simplified67.0%
if -8.9999999999999997e-45 < y < 230Initial program 100.0%
Taylor expanded in x around inf 75.5%
if 230 < y Initial program 100.0%
Taylor expanded in y around inf 99.4%
+-commutative99.4%
mul-1-neg99.4%
sub-neg99.4%
div-sub99.4%
Simplified99.4%
Final simplification85.1%
(FPCore (x y)
:precision binary64
(let* ((t_0 (- 1.0 (/ x y))))
(if (<= y -1500000.0)
t_0
(if (<= y -2.1e-46)
(/ y (+ y -1.0))
(if (<= y 19000.0) (/ x (- 1.0 y)) t_0)))))
double code(double x, double y) {
double t_0 = 1.0 - (x / y);
double tmp;
if (y <= -1500000.0) {
tmp = t_0;
} else if (y <= -2.1e-46) {
tmp = y / (y + -1.0);
} else if (y <= 19000.0) {
tmp = x / (1.0 - y);
} else {
tmp = t_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 = 1.0d0 - (x / y)
if (y <= (-1500000.0d0)) then
tmp = t_0
else if (y <= (-2.1d-46)) then
tmp = y / (y + (-1.0d0))
else if (y <= 19000.0d0) then
tmp = x / (1.0d0 - y)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 - (x / y);
double tmp;
if (y <= -1500000.0) {
tmp = t_0;
} else if (y <= -2.1e-46) {
tmp = y / (y + -1.0);
} else if (y <= 19000.0) {
tmp = x / (1.0 - y);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = 1.0 - (x / y) tmp = 0 if y <= -1500000.0: tmp = t_0 elif y <= -2.1e-46: tmp = y / (y + -1.0) elif y <= 19000.0: tmp = x / (1.0 - y) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(1.0 - Float64(x / y)) tmp = 0.0 if (y <= -1500000.0) tmp = t_0; elseif (y <= -2.1e-46) tmp = Float64(y / Float64(y + -1.0)); elseif (y <= 19000.0) tmp = Float64(x / Float64(1.0 - y)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 - (x / y); tmp = 0.0; if (y <= -1500000.0) tmp = t_0; elseif (y <= -2.1e-46) tmp = y / (y + -1.0); elseif (y <= 19000.0) tmp = x / (1.0 - y); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1500000.0], t$95$0, If[LessEqual[y, -2.1e-46], N[(y / N[(y + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 19000.0], N[(x / N[(1.0 - y), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 - \frac{x}{y}\\
\mathbf{if}\;y \leq -1500000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-46}:\\
\;\;\;\;\frac{y}{y + -1}\\
\mathbf{elif}\;y \leq 19000:\\
\;\;\;\;\frac{x}{1 - y}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -1.5e6 or 19000 < y Initial program 100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in y around inf 98.4%
neg-mul-198.4%
Simplified98.4%
Taylor expanded in x around 0 98.5%
neg-mul-198.5%
unsub-neg98.5%
Simplified98.5%
if -1.5e6 < y < -2.09999999999999987e-46Initial program 100.0%
Taylor expanded in x around 0 67.0%
neg-mul-167.0%
distribute-neg-frac267.0%
neg-sub067.0%
associate--r-67.0%
metadata-eval67.0%
Simplified67.0%
if -2.09999999999999987e-46 < y < 19000Initial program 100.0%
Taylor expanded in x around inf 75.5%
Final simplification84.9%
(FPCore (x y) :precision binary64 (if (<= y -1.18e+86) 1.0 (if (<= y -0.75) (/ x (- y)) (if (<= y 1.0) (+ x (* x y)) 1.0))))
double code(double x, double y) {
double tmp;
if (y <= -1.18e+86) {
tmp = 1.0;
} else if (y <= -0.75) {
tmp = x / -y;
} else if (y <= 1.0) {
tmp = x + (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 <= (-1.18d+86)) then
tmp = 1.0d0
else if (y <= (-0.75d0)) then
tmp = x / -y
else if (y <= 1.0d0) then
tmp = x + (x * y)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.18e+86) {
tmp = 1.0;
} else if (y <= -0.75) {
tmp = x / -y;
} else if (y <= 1.0) {
tmp = x + (x * y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.18e+86: tmp = 1.0 elif y <= -0.75: tmp = x / -y elif y <= 1.0: tmp = x + (x * y) else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -1.18e+86) tmp = 1.0; elseif (y <= -0.75) tmp = Float64(x / Float64(-y)); elseif (y <= 1.0) tmp = Float64(x + Float64(x * y)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.18e+86) tmp = 1.0; elseif (y <= -0.75) tmp = x / -y; elseif (y <= 1.0) tmp = x + (x * y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.18e+86], 1.0, If[LessEqual[y, -0.75], N[(x / (-y)), $MachinePrecision], If[LessEqual[y, 1.0], N[(x + N[(x * y), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.18 \cdot 10^{+86}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -0.75:\\
\;\;\;\;\frac{x}{-y}\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;x + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.18e86 or 1 < y Initial program 100.0%
Taylor expanded in y around inf 78.9%
if -1.18e86 < y < -0.75Initial program 100.0%
Taylor expanded in x around inf 65.3%
Taylor expanded in y around inf 59.1%
associate-*r/59.1%
neg-mul-159.1%
Simplified59.1%
if -0.75 < y < 1Initial program 100.0%
Taylor expanded in x around inf 71.7%
Taylor expanded in y around 0 71.0%
*-commutative71.0%
Simplified71.0%
Final simplification73.0%
(FPCore (x y) :precision binary64 (if (<= y -1.9e+83) 1.0 (if (<= y -1.0) (/ x (- y)) (if (<= y 1.0) x 1.0))))
double code(double x, double y) {
double tmp;
if (y <= -1.9e+83) {
tmp = 1.0;
} else if (y <= -1.0) {
tmp = x / -y;
} else if (y <= 1.0) {
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.9d+83)) then
tmp = 1.0d0
else if (y <= (-1.0d0)) then
tmp = x / -y
else if (y <= 1.0d0) 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.9e+83) {
tmp = 1.0;
} else if (y <= -1.0) {
tmp = x / -y;
} else if (y <= 1.0) {
tmp = x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.9e+83: tmp = 1.0 elif y <= -1.0: tmp = x / -y elif y <= 1.0: tmp = x else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -1.9e+83) tmp = 1.0; elseif (y <= -1.0) tmp = Float64(x / Float64(-y)); elseif (y <= 1.0) tmp = x; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.9e+83) tmp = 1.0; elseif (y <= -1.0) tmp = x / -y; elseif (y <= 1.0) tmp = x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.9e+83], 1.0, If[LessEqual[y, -1.0], N[(x / (-y)), $MachinePrecision], If[LessEqual[y, 1.0], x, 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+83}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -1:\\
\;\;\;\;\frac{x}{-y}\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.9000000000000001e83 or 1 < y Initial program 100.0%
Taylor expanded in y around inf 78.9%
if -1.9000000000000001e83 < y < -1Initial program 100.0%
Taylor expanded in x around inf 65.3%
Taylor expanded in y around inf 59.1%
associate-*r/59.1%
neg-mul-159.1%
Simplified59.1%
if -1 < y < 1Initial program 100.0%
Taylor expanded in y around 0 70.7%
Final simplification72.8%
(FPCore (x y) :precision binary64 (if (or (<= y -920.0) (not (<= y 110.0))) (- 1.0 (/ x y)) (/ x (- 1.0 y))))
double code(double x, double y) {
double tmp;
if ((y <= -920.0) || !(y <= 110.0)) {
tmp = 1.0 - (x / y);
} else {
tmp = x / (1.0 - y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-920.0d0)) .or. (.not. (y <= 110.0d0))) then
tmp = 1.0d0 - (x / y)
else
tmp = x / (1.0d0 - y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -920.0) || !(y <= 110.0)) {
tmp = 1.0 - (x / y);
} else {
tmp = x / (1.0 - y);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -920.0) or not (y <= 110.0): tmp = 1.0 - (x / y) else: tmp = x / (1.0 - y) return tmp
function code(x, y) tmp = 0.0 if ((y <= -920.0) || !(y <= 110.0)) tmp = Float64(1.0 - Float64(x / y)); else tmp = Float64(x / Float64(1.0 - y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -920.0) || ~((y <= 110.0))) tmp = 1.0 - (x / y); else tmp = x / (1.0 - y); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -920.0], N[Not[LessEqual[y, 110.0]], $MachinePrecision]], N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -920 \lor \neg \left(y \leq 110\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - y}\\
\end{array}
\end{array}
if y < -920 or 110 < y Initial program 100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in y around inf 97.3%
neg-mul-197.3%
Simplified97.3%
Taylor expanded in x around 0 97.3%
neg-mul-197.3%
unsub-neg97.3%
Simplified97.3%
if -920 < y < 110Initial program 100.0%
Taylor expanded in x around inf 71.9%
Final simplification83.1%
(FPCore (x y) :precision binary64 (if (or (<= y -0.0112) (not (<= y 1.0))) (- 1.0 (/ x y)) (+ x (* x y))))
double code(double x, double y) {
double tmp;
if ((y <= -0.0112) || !(y <= 1.0)) {
tmp = 1.0 - (x / y);
} else {
tmp = x + (x * y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-0.0112d0)) .or. (.not. (y <= 1.0d0))) then
tmp = 1.0d0 - (x / y)
else
tmp = x + (x * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -0.0112) || !(y <= 1.0)) {
tmp = 1.0 - (x / y);
} else {
tmp = x + (x * y);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -0.0112) or not (y <= 1.0): tmp = 1.0 - (x / y) else: tmp = x + (x * y) return tmp
function code(x, y) tmp = 0.0 if ((y <= -0.0112) || !(y <= 1.0)) tmp = Float64(1.0 - Float64(x / y)); else tmp = Float64(x + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -0.0112) || ~((y <= 1.0))) tmp = 1.0 - (x / y); else tmp = x + (x * y); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -0.0112], N[Not[LessEqual[y, 1.0]], $MachinePrecision]], N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.0112 \lor \neg \left(y \leq 1\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;x + x \cdot y\\
\end{array}
\end{array}
if y < -0.0111999999999999999 or 1 < y Initial program 100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in y around inf 96.7%
neg-mul-196.7%
Simplified96.7%
Taylor expanded in x around 0 96.7%
neg-mul-196.7%
unsub-neg96.7%
Simplified96.7%
if -0.0111999999999999999 < y < 1Initial program 100.0%
Taylor expanded in x around inf 71.7%
Taylor expanded in y around 0 71.0%
*-commutative71.0%
Simplified71.0%
Final simplification82.5%
(FPCore (x y) :precision binary64 (if (<= y -160.0) 1.0 (if (<= y 1.0) x 1.0)))
double code(double x, double y) {
double tmp;
if (y <= -160.0) {
tmp = 1.0;
} else if (y <= 1.0) {
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 <= (-160.0d0)) then
tmp = 1.0d0
else if (y <= 1.0d0) 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 <= -160.0) {
tmp = 1.0;
} else if (y <= 1.0) {
tmp = x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -160.0: tmp = 1.0 elif y <= 1.0: tmp = x else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -160.0) tmp = 1.0; elseif (y <= 1.0) tmp = x; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -160.0) tmp = 1.0; elseif (y <= 1.0) tmp = x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -160.0], 1.0, If[LessEqual[y, 1.0], x, 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -160:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -160 or 1 < y Initial program 100.0%
Taylor expanded in y around inf 71.0%
if -160 < y < 1Initial program 100.0%
Taylor expanded in y around 0 70.3%
(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 33.5%
herbie shell --seed 2024132
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, C"
:precision binary64
(/ (- x y) (- 1.0 y)))