
(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 8 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
(let* ((t_0 (- 1.0 (/ x y))))
(if (<= y -260000000000.0)
t_0
(if (<= y 1.2e-56)
(/ x (- 1.0 y))
(if (<= y 950.0) (/ y (+ y -1.0)) t_0)))))
double code(double x, double y) {
double t_0 = 1.0 - (x / y);
double tmp;
if (y <= -260000000000.0) {
tmp = t_0;
} else if (y <= 1.2e-56) {
tmp = x / (1.0 - y);
} else if (y <= 950.0) {
tmp = y / (y + -1.0);
} 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 <= (-260000000000.0d0)) then
tmp = t_0
else if (y <= 1.2d-56) then
tmp = x / (1.0d0 - y)
else if (y <= 950.0d0) then
tmp = y / (y + (-1.0d0))
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 <= -260000000000.0) {
tmp = t_0;
} else if (y <= 1.2e-56) {
tmp = x / (1.0 - y);
} else if (y <= 950.0) {
tmp = y / (y + -1.0);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = 1.0 - (x / y) tmp = 0 if y <= -260000000000.0: tmp = t_0 elif y <= 1.2e-56: tmp = x / (1.0 - y) elif y <= 950.0: tmp = y / (y + -1.0) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(1.0 - Float64(x / y)) tmp = 0.0 if (y <= -260000000000.0) tmp = t_0; elseif (y <= 1.2e-56) tmp = Float64(x / Float64(1.0 - y)); elseif (y <= 950.0) tmp = Float64(y / Float64(y + -1.0)); 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 <= -260000000000.0) tmp = t_0; elseif (y <= 1.2e-56) tmp = x / (1.0 - y); elseif (y <= 950.0) tmp = y / (y + -1.0); 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, -260000000000.0], t$95$0, If[LessEqual[y, 1.2e-56], N[(x / N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 950.0], N[(y / N[(y + -1.0), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 - \frac{x}{y}\\
\mathbf{if}\;y \leq -260000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-56}:\\
\;\;\;\;\frac{x}{1 - y}\\
\mathbf{elif}\;y \leq 950:\\
\;\;\;\;\frac{y}{y + -1}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -2.6e11 or 950 < y Initial program 100.0%
Taylor expanded in x around -inf 87.2%
mul-1-neg87.2%
*-commutative87.2%
distribute-rgt-neg-in87.2%
sub-neg87.2%
associate-/r*75.3%
distribute-neg-frac75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in x around inf 87.2%
neg-mul-187.2%
neg-sub087.2%
associate-+l-87.2%
sub-neg87.2%
*-rgt-identity87.2%
times-frac75.2%
neg-mul-175.2%
distribute-rgt-in75.2%
neg-sub075.2%
associate-*l/75.3%
*-lft-identity75.3%
distribute-neg-frac275.3%
+-commutative75.3%
neg-sub075.3%
associate--r-75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in y around inf 74.9%
Taylor expanded in x around 0 99.5%
mul-1-neg99.5%
unsub-neg99.5%
Simplified99.5%
if -2.6e11 < y < 1.2e-56Initial program 100.0%
Taylor expanded in x around inf 80.6%
if 1.2e-56 < y < 950Initial program 100.0%
Taylor expanded in x around 0 66.3%
neg-mul-166.3%
distribute-neg-frac266.3%
neg-sub066.3%
associate--r-66.3%
metadata-eval66.3%
Simplified66.3%
Final simplification89.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (- 1.0 (/ x y))))
(if (<= y -0.18)
t_0
(if (<= y 6e-57) (* x (+ y 1.0)) (if (<= y 1.0) (- y) t_0)))))
double code(double x, double y) {
double t_0 = 1.0 - (x / y);
double tmp;
if (y <= -0.18) {
tmp = t_0;
} else if (y <= 6e-57) {
tmp = x * (y + 1.0);
} else if (y <= 1.0) {
tmp = -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 <= (-0.18d0)) then
tmp = t_0
else if (y <= 6d-57) then
tmp = x * (y + 1.0d0)
else if (y <= 1.0d0) then
tmp = -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 <= -0.18) {
tmp = t_0;
} else if (y <= 6e-57) {
tmp = x * (y + 1.0);
} else if (y <= 1.0) {
tmp = -y;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = 1.0 - (x / y) tmp = 0 if y <= -0.18: tmp = t_0 elif y <= 6e-57: tmp = x * (y + 1.0) elif y <= 1.0: tmp = -y else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(1.0 - Float64(x / y)) tmp = 0.0 if (y <= -0.18) tmp = t_0; elseif (y <= 6e-57) tmp = Float64(x * Float64(y + 1.0)); elseif (y <= 1.0) tmp = Float64(-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 <= -0.18) tmp = t_0; elseif (y <= 6e-57) tmp = x * (y + 1.0); elseif (y <= 1.0) tmp = -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, -0.18], t$95$0, If[LessEqual[y, 6e-57], N[(x * N[(y + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.0], (-y), t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 - \frac{x}{y}\\
\mathbf{if}\;y \leq -0.18:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-57}:\\
\;\;\;\;x \cdot \left(y + 1\right)\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;-y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -0.17999999999999999 or 1 < y Initial program 100.0%
Taylor expanded in x around -inf 87.3%
mul-1-neg87.3%
*-commutative87.3%
distribute-rgt-neg-in87.3%
sub-neg87.3%
associate-/r*75.5%
distribute-neg-frac75.5%
metadata-eval75.5%
Simplified75.5%
Taylor expanded in x around inf 87.3%
neg-mul-187.3%
neg-sub087.3%
associate-+l-87.3%
sub-neg87.3%
*-rgt-identity87.3%
times-frac75.4%
neg-mul-175.4%
distribute-rgt-in75.4%
neg-sub075.4%
associate-*l/75.5%
*-lft-identity75.5%
distribute-neg-frac275.5%
+-commutative75.5%
neg-sub075.5%
associate--r-75.5%
metadata-eval75.5%
Simplified75.5%
Taylor expanded in y around inf 74.9%
Taylor expanded in x around 0 99.3%
mul-1-neg99.3%
unsub-neg99.3%
Simplified99.3%
if -0.17999999999999999 < y < 6.00000000000000001e-57Initial program 100.0%
Taylor expanded in x around inf 80.4%
Taylor expanded in y around 0 80.1%
*-commutative80.1%
distribute-rgt1-in80.1%
Applied egg-rr80.1%
if 6.00000000000000001e-57 < y < 1Initial program 100.0%
Taylor expanded in x around 0 66.3%
neg-mul-166.3%
distribute-neg-frac266.3%
neg-sub066.3%
associate--r-66.3%
metadata-eval66.3%
Simplified66.3%
Taylor expanded in y around 0 57.4%
neg-mul-157.4%
Simplified57.4%
Final simplification88.5%
(FPCore (x y) :precision binary64 (if (<= y -0.8) 1.0 (if (<= y 7.2e-57) (* x (+ y 1.0)) (if (<= y 5.8e+15) (- y) 1.0))))
double code(double x, double y) {
double tmp;
if (y <= -0.8) {
tmp = 1.0;
} else if (y <= 7.2e-57) {
tmp = x * (y + 1.0);
} else if (y <= 5.8e+15) {
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 <= (-0.8d0)) then
tmp = 1.0d0
else if (y <= 7.2d-57) then
tmp = x * (y + 1.0d0)
else if (y <= 5.8d+15) 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 <= -0.8) {
tmp = 1.0;
} else if (y <= 7.2e-57) {
tmp = x * (y + 1.0);
} else if (y <= 5.8e+15) {
tmp = -y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -0.8: tmp = 1.0 elif y <= 7.2e-57: tmp = x * (y + 1.0) elif y <= 5.8e+15: tmp = -y else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -0.8) tmp = 1.0; elseif (y <= 7.2e-57) tmp = Float64(x * Float64(y + 1.0)); elseif (y <= 5.8e+15) tmp = Float64(-y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -0.8) tmp = 1.0; elseif (y <= 7.2e-57) tmp = x * (y + 1.0); elseif (y <= 5.8e+15) tmp = -y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -0.8], 1.0, If[LessEqual[y, 7.2e-57], N[(x * N[(y + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+15], (-y), 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.8:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-57}:\\
\;\;\;\;x \cdot \left(y + 1\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+15}:\\
\;\;\;\;-y\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -0.80000000000000004 or 5.8e15 < y Initial program 100.0%
Taylor expanded in y around inf 80.7%
if -0.80000000000000004 < y < 7.2000000000000005e-57Initial program 100.0%
Taylor expanded in x around inf 80.4%
Taylor expanded in y around 0 80.1%
*-commutative80.1%
distribute-rgt1-in80.1%
Applied egg-rr80.1%
if 7.2000000000000005e-57 < y < 5.8e15Initial program 100.0%
Taylor expanded in x around 0 56.5%
neg-mul-156.5%
distribute-neg-frac256.5%
neg-sub056.5%
associate--r-56.5%
metadata-eval56.5%
Simplified56.5%
Taylor expanded in y around 0 49.8%
neg-mul-149.8%
Simplified49.8%
Final simplification78.0%
(FPCore (x y) :precision binary64 (if (<= y -260000000000.0) 1.0 (if (<= y 1.9e-56) x (if (<= y 5.8e+15) (- y) 1.0))))
double code(double x, double y) {
double tmp;
if (y <= -260000000000.0) {
tmp = 1.0;
} else if (y <= 1.9e-56) {
tmp = x;
} else if (y <= 5.8e+15) {
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 <= (-260000000000.0d0)) then
tmp = 1.0d0
else if (y <= 1.9d-56) then
tmp = x
else if (y <= 5.8d+15) 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 <= -260000000000.0) {
tmp = 1.0;
} else if (y <= 1.9e-56) {
tmp = x;
} else if (y <= 5.8e+15) {
tmp = -y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -260000000000.0: tmp = 1.0 elif y <= 1.9e-56: tmp = x elif y <= 5.8e+15: tmp = -y else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (y <= -260000000000.0) tmp = 1.0; elseif (y <= 1.9e-56) tmp = x; elseif (y <= 5.8e+15) tmp = Float64(-y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -260000000000.0) tmp = 1.0; elseif (y <= 1.9e-56) tmp = x; elseif (y <= 5.8e+15) tmp = -y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -260000000000.0], 1.0, If[LessEqual[y, 1.9e-56], x, If[LessEqual[y, 5.8e+15], (-y), 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -260000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-56}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+15}:\\
\;\;\;\;-y\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.6e11 or 5.8e15 < y Initial program 100.0%
Taylor expanded in y around inf 81.3%
if -2.6e11 < y < 1.9000000000000001e-56Initial program 100.0%
Taylor expanded in y around 0 79.2%
if 1.9000000000000001e-56 < y < 5.8e15Initial program 100.0%
Taylor expanded in x around 0 56.5%
neg-mul-156.5%
distribute-neg-frac256.5%
neg-sub056.5%
associate--r-56.5%
metadata-eval56.5%
Simplified56.5%
Taylor expanded in y around 0 49.8%
neg-mul-149.8%
Simplified49.8%
(FPCore (x y) :precision binary64 (if (or (<= y -260000000000.0) (not (<= y 5.8e+15))) (- 1.0 (/ x y)) (/ x (- 1.0 y))))
double code(double x, double y) {
double tmp;
if ((y <= -260000000000.0) || !(y <= 5.8e+15)) {
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 <= (-260000000000.0d0)) .or. (.not. (y <= 5.8d+15))) 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 <= -260000000000.0) || !(y <= 5.8e+15)) {
tmp = 1.0 - (x / y);
} else {
tmp = x / (1.0 - y);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -260000000000.0) or not (y <= 5.8e+15): tmp = 1.0 - (x / y) else: tmp = x / (1.0 - y) return tmp
function code(x, y) tmp = 0.0 if ((y <= -260000000000.0) || !(y <= 5.8e+15)) 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 <= -260000000000.0) || ~((y <= 5.8e+15))) tmp = 1.0 - (x / y); else tmp = x / (1.0 - y); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -260000000000.0], N[Not[LessEqual[y, 5.8e+15]], $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 -260000000000 \lor \neg \left(y \leq 5.8 \cdot 10^{+15}\right):\\
\;\;\;\;1 - \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - y}\\
\end{array}
\end{array}
if y < -2.6e11 or 5.8e15 < y Initial program 100.0%
Taylor expanded in x around -inf 86.9%
mul-1-neg86.9%
*-commutative86.9%
distribute-rgt-neg-in86.9%
sub-neg86.9%
associate-/r*74.7%
distribute-neg-frac74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in x around inf 86.9%
neg-mul-186.9%
neg-sub086.9%
associate-+l-86.9%
sub-neg86.9%
*-rgt-identity86.9%
times-frac74.7%
neg-mul-174.7%
distribute-rgt-in74.7%
neg-sub074.7%
associate-*l/74.8%
*-lft-identity74.8%
distribute-neg-frac274.8%
+-commutative74.8%
neg-sub074.8%
associate--r-74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in y around inf 74.6%
Taylor expanded in x around 0 99.8%
mul-1-neg99.8%
unsub-neg99.8%
Simplified99.8%
if -2.6e11 < y < 5.8e15Initial program 100.0%
Taylor expanded in x around inf 74.6%
Final simplification87.2%
(FPCore (x y) :precision binary64 (if (<= y -260000000000.0) 1.0 (if (<= y 1.0) x 1.0)))
double code(double x, double y) {
double tmp;
if (y <= -260000000000.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 <= (-260000000000.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 <= -260000000000.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 <= -260000000000.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 <= -260000000000.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 <= -260000000000.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, -260000000000.0], 1.0, If[LessEqual[y, 1.0], x, 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -260000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.6e11 or 1 < y Initial program 100.0%
Taylor expanded in y around inf 79.5%
if -2.6e11 < y < 1Initial program 100.0%
Taylor expanded in y around 0 72.5%
(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 42.4%
herbie shell --seed 2024163
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, C"
:precision binary64
(/ (- x y) (- 1.0 y)))