
(FPCore (f n) :precision binary64 (/ (- (+ f n)) (- f n)))
double code(double f, double n) {
return -(f + n) / (f - n);
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
code = -(f + n) / (f - n)
end function
public static double code(double f, double n) {
return -(f + n) / (f - n);
}
def code(f, n): return -(f + n) / (f - n)
function code(f, n) return Float64(Float64(-Float64(f + n)) / Float64(f - n)) end
function tmp = code(f, n) tmp = -(f + n) / (f - n); end
code[f_, n_] := N[((-N[(f + n), $MachinePrecision]) / N[(f - n), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-\left(f + n\right)}{f - n}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (f n) :precision binary64 (/ (- (+ f n)) (- f n)))
double code(double f, double n) {
return -(f + n) / (f - n);
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
code = -(f + n) / (f - n)
end function
public static double code(double f, double n) {
return -(f + n) / (f - n);
}
def code(f, n): return -(f + n) / (f - n)
function code(f, n) return Float64(Float64(-Float64(f + n)) / Float64(f - n)) end
function tmp = code(f, n) tmp = -(f + n) / (f - n); end
code[f_, n_] := N[((-N[(f + n), $MachinePrecision]) / N[(f - n), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-\left(f + n\right)}{f - n}
\end{array}
(FPCore (f n) :precision binary64 (/ (+ f n) (- n f)))
double code(double f, double n) {
return (f + n) / (n - f);
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
code = (f + n) / (n - f)
end function
public static double code(double f, double n) {
return (f + n) / (n - f);
}
def code(f, n): return (f + n) / (n - f)
function code(f, n) return Float64(Float64(f + n) / Float64(n - f)) end
function tmp = code(f, n) tmp = (f + n) / (n - f); end
code[f_, n_] := N[(N[(f + n), $MachinePrecision] / N[(n - f), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{f + n}{n - f}
\end{array}
Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
(FPCore (f n) :precision binary64 (if (or (<= n -1.65e-12) (not (<= n 5e-103))) (+ 1.0 (* 2.0 (/ f n))) (+ (* -2.0 (/ n f)) -1.0)))
double code(double f, double n) {
double tmp;
if ((n <= -1.65e-12) || !(n <= 5e-103)) {
tmp = 1.0 + (2.0 * (f / n));
} else {
tmp = (-2.0 * (n / f)) + -1.0;
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if ((n <= (-1.65d-12)) .or. (.not. (n <= 5d-103))) then
tmp = 1.0d0 + (2.0d0 * (f / n))
else
tmp = ((-2.0d0) * (n / f)) + (-1.0d0)
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if ((n <= -1.65e-12) || !(n <= 5e-103)) {
tmp = 1.0 + (2.0 * (f / n));
} else {
tmp = (-2.0 * (n / f)) + -1.0;
}
return tmp;
}
def code(f, n): tmp = 0 if (n <= -1.65e-12) or not (n <= 5e-103): tmp = 1.0 + (2.0 * (f / n)) else: tmp = (-2.0 * (n / f)) + -1.0 return tmp
function code(f, n) tmp = 0.0 if ((n <= -1.65e-12) || !(n <= 5e-103)) tmp = Float64(1.0 + Float64(2.0 * Float64(f / n))); else tmp = Float64(Float64(-2.0 * Float64(n / f)) + -1.0); end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if ((n <= -1.65e-12) || ~((n <= 5e-103))) tmp = 1.0 + (2.0 * (f / n)); else tmp = (-2.0 * (n / f)) + -1.0; end tmp_2 = tmp; end
code[f_, n_] := If[Or[LessEqual[n, -1.65e-12], N[Not[LessEqual[n, 5e-103]], $MachinePrecision]], N[(1.0 + N[(2.0 * N[(f / n), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-2.0 * N[(n / f), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.65 \cdot 10^{-12} \lor \neg \left(n \leq 5 \cdot 10^{-103}\right):\\
\;\;\;\;1 + 2 \cdot \frac{f}{n}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{n}{f} + -1\\
\end{array}
\end{array}
if n < -1.65e-12 or 4.99999999999999966e-103 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around 0 79.5%
if -1.65e-12 < n < 4.99999999999999966e-103Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in n around 0 79.4%
Final simplification79.5%
(FPCore (f n) :precision binary64 (if (or (<= n -2.3e-12) (not (<= n 6.8e-106))) (+ 1.0 (* 2.0 (/ f n))) (/ f (- n f))))
double code(double f, double n) {
double tmp;
if ((n <= -2.3e-12) || !(n <= 6.8e-106)) {
tmp = 1.0 + (2.0 * (f / n));
} else {
tmp = f / (n - f);
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if ((n <= (-2.3d-12)) .or. (.not. (n <= 6.8d-106))) then
tmp = 1.0d0 + (2.0d0 * (f / n))
else
tmp = f / (n - f)
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if ((n <= -2.3e-12) || !(n <= 6.8e-106)) {
tmp = 1.0 + (2.0 * (f / n));
} else {
tmp = f / (n - f);
}
return tmp;
}
def code(f, n): tmp = 0 if (n <= -2.3e-12) or not (n <= 6.8e-106): tmp = 1.0 + (2.0 * (f / n)) else: tmp = f / (n - f) return tmp
function code(f, n) tmp = 0.0 if ((n <= -2.3e-12) || !(n <= 6.8e-106)) tmp = Float64(1.0 + Float64(2.0 * Float64(f / n))); else tmp = Float64(f / Float64(n - f)); end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if ((n <= -2.3e-12) || ~((n <= 6.8e-106))) tmp = 1.0 + (2.0 * (f / n)); else tmp = f / (n - f); end tmp_2 = tmp; end
code[f_, n_] := If[Or[LessEqual[n, -2.3e-12], N[Not[LessEqual[n, 6.8e-106]], $MachinePrecision]], N[(1.0 + N[(2.0 * N[(f / n), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(f / N[(n - f), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -2.3 \cdot 10^{-12} \lor \neg \left(n \leq 6.8 \cdot 10^{-106}\right):\\
\;\;\;\;1 + 2 \cdot \frac{f}{n}\\
\mathbf{else}:\\
\;\;\;\;\frac{f}{n - f}\\
\end{array}
\end{array}
if n < -2.29999999999999989e-12 or 6.79999999999999965e-106 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around 0 79.5%
if -2.29999999999999989e-12 < n < 6.79999999999999965e-106Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 79.1%
Final simplification79.3%
(FPCore (f n) :precision binary64 (if (or (<= n -2.4e-12) (not (<= n 4.6e-101))) (/ (+ f n) n) (/ f (- n f))))
double code(double f, double n) {
double tmp;
if ((n <= -2.4e-12) || !(n <= 4.6e-101)) {
tmp = (f + n) / n;
} else {
tmp = f / (n - f);
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if ((n <= (-2.4d-12)) .or. (.not. (n <= 4.6d-101))) then
tmp = (f + n) / n
else
tmp = f / (n - f)
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if ((n <= -2.4e-12) || !(n <= 4.6e-101)) {
tmp = (f + n) / n;
} else {
tmp = f / (n - f);
}
return tmp;
}
def code(f, n): tmp = 0 if (n <= -2.4e-12) or not (n <= 4.6e-101): tmp = (f + n) / n else: tmp = f / (n - f) return tmp
function code(f, n) tmp = 0.0 if ((n <= -2.4e-12) || !(n <= 4.6e-101)) tmp = Float64(Float64(f + n) / n); else tmp = Float64(f / Float64(n - f)); end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if ((n <= -2.4e-12) || ~((n <= 4.6e-101))) tmp = (f + n) / n; else tmp = f / (n - f); end tmp_2 = tmp; end
code[f_, n_] := If[Or[LessEqual[n, -2.4e-12], N[Not[LessEqual[n, 4.6e-101]], $MachinePrecision]], N[(N[(f + n), $MachinePrecision] / n), $MachinePrecision], N[(f / N[(n - f), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -2.4 \cdot 10^{-12} \lor \neg \left(n \leq 4.6 \cdot 10^{-101}\right):\\
\;\;\;\;\frac{f + n}{n}\\
\mathbf{else}:\\
\;\;\;\;\frac{f}{n - f}\\
\end{array}
\end{array}
if n < -2.39999999999999987e-12 or 4.5999999999999999e-101 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around inf 77.6%
Taylor expanded in f around 0 78.7%
if -2.39999999999999987e-12 < n < 4.5999999999999999e-101Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 79.1%
Final simplification78.9%
(FPCore (f n) :precision binary64 (if (or (<= n -1.26e-12) (not (<= n 8e-104))) (/ n (- n f)) (/ f (- n f))))
double code(double f, double n) {
double tmp;
if ((n <= -1.26e-12) || !(n <= 8e-104)) {
tmp = n / (n - f);
} else {
tmp = f / (n - f);
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if ((n <= (-1.26d-12)) .or. (.not. (n <= 8d-104))) then
tmp = n / (n - f)
else
tmp = f / (n - f)
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if ((n <= -1.26e-12) || !(n <= 8e-104)) {
tmp = n / (n - f);
} else {
tmp = f / (n - f);
}
return tmp;
}
def code(f, n): tmp = 0 if (n <= -1.26e-12) or not (n <= 8e-104): tmp = n / (n - f) else: tmp = f / (n - f) return tmp
function code(f, n) tmp = 0.0 if ((n <= -1.26e-12) || !(n <= 8e-104)) tmp = Float64(n / Float64(n - f)); else tmp = Float64(f / Float64(n - f)); end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if ((n <= -1.26e-12) || ~((n <= 8e-104))) tmp = n / (n - f); else tmp = f / (n - f); end tmp_2 = tmp; end
code[f_, n_] := If[Or[LessEqual[n, -1.26e-12], N[Not[LessEqual[n, 8e-104]], $MachinePrecision]], N[(n / N[(n - f), $MachinePrecision]), $MachinePrecision], N[(f / N[(n - f), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.26 \cdot 10^{-12} \lor \neg \left(n \leq 8 \cdot 10^{-104}\right):\\
\;\;\;\;\frac{n}{n - f}\\
\mathbf{else}:\\
\;\;\;\;\frac{f}{n - f}\\
\end{array}
\end{array}
if n < -1.26000000000000008e-12 or 7.99999999999999941e-104 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around 0 78.4%
if -1.26000000000000008e-12 < n < 7.99999999999999941e-104Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 79.1%
Final simplification78.7%
(FPCore (f n) :precision binary64 (if (<= n -1.4e-12) 1.0 (if (<= n 5.4e-102) (/ f (- n f)) 1.0)))
double code(double f, double n) {
double tmp;
if (n <= -1.4e-12) {
tmp = 1.0;
} else if (n <= 5.4e-102) {
tmp = f / (n - f);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if (n <= (-1.4d-12)) then
tmp = 1.0d0
else if (n <= 5.4d-102) then
tmp = f / (n - f)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if (n <= -1.4e-12) {
tmp = 1.0;
} else if (n <= 5.4e-102) {
tmp = f / (n - f);
} else {
tmp = 1.0;
}
return tmp;
}
def code(f, n): tmp = 0 if n <= -1.4e-12: tmp = 1.0 elif n <= 5.4e-102: tmp = f / (n - f) else: tmp = 1.0 return tmp
function code(f, n) tmp = 0.0 if (n <= -1.4e-12) tmp = 1.0; elseif (n <= 5.4e-102) tmp = Float64(f / Float64(n - f)); else tmp = 1.0; end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if (n <= -1.4e-12) tmp = 1.0; elseif (n <= 5.4e-102) tmp = f / (n - f); else tmp = 1.0; end tmp_2 = tmp; end
code[f_, n_] := If[LessEqual[n, -1.4e-12], 1.0, If[LessEqual[n, 5.4e-102], N[(f / N[(n - f), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.4 \cdot 10^{-12}:\\
\;\;\;\;1\\
\mathbf{elif}\;n \leq 5.4 \cdot 10^{-102}:\\
\;\;\;\;\frac{f}{n - f}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if n < -1.4000000000000001e-12 or 5.4e-102 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around 0 78.0%
if -1.4000000000000001e-12 < n < 5.4e-102Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 79.1%
(FPCore (f n) :precision binary64 (if (<= n -2.2e-12) 1.0 (if (<= n 4.6e-101) (- -1.0 (/ n f)) 1.0)))
double code(double f, double n) {
double tmp;
if (n <= -2.2e-12) {
tmp = 1.0;
} else if (n <= 4.6e-101) {
tmp = -1.0 - (n / f);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if (n <= (-2.2d-12)) then
tmp = 1.0d0
else if (n <= 4.6d-101) then
tmp = (-1.0d0) - (n / f)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if (n <= -2.2e-12) {
tmp = 1.0;
} else if (n <= 4.6e-101) {
tmp = -1.0 - (n / f);
} else {
tmp = 1.0;
}
return tmp;
}
def code(f, n): tmp = 0 if n <= -2.2e-12: tmp = 1.0 elif n <= 4.6e-101: tmp = -1.0 - (n / f) else: tmp = 1.0 return tmp
function code(f, n) tmp = 0.0 if (n <= -2.2e-12) tmp = 1.0; elseif (n <= 4.6e-101) tmp = Float64(-1.0 - Float64(n / f)); else tmp = 1.0; end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if (n <= -2.2e-12) tmp = 1.0; elseif (n <= 4.6e-101) tmp = -1.0 - (n / f); else tmp = 1.0; end tmp_2 = tmp; end
code[f_, n_] := If[LessEqual[n, -2.2e-12], 1.0, If[LessEqual[n, 4.6e-101], N[(-1.0 - N[(n / f), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -2.2 \cdot 10^{-12}:\\
\;\;\;\;1\\
\mathbf{elif}\;n \leq 4.6 \cdot 10^{-101}:\\
\;\;\;\;-1 - \frac{n}{f}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if n < -2.19999999999999992e-12 or 4.5999999999999999e-101 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around 0 78.0%
if -2.19999999999999992e-12 < n < 4.5999999999999999e-101Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 79.1%
Taylor expanded in f around inf 79.1%
neg-mul-179.1%
neg-sub079.1%
associate--r+79.1%
+-commutative79.1%
associate--r+79.1%
metadata-eval79.1%
Simplified79.1%
(FPCore (f n) :precision binary64 (if (<= n -2.2e-12) 1.0 (if (<= n 5e-109) -1.0 1.0)))
double code(double f, double n) {
double tmp;
if (n <= -2.2e-12) {
tmp = 1.0;
} else if (n <= 5e-109) {
tmp = -1.0;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
real(8) :: tmp
if (n <= (-2.2d-12)) then
tmp = 1.0d0
else if (n <= 5d-109) then
tmp = -1.0d0
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double f, double n) {
double tmp;
if (n <= -2.2e-12) {
tmp = 1.0;
} else if (n <= 5e-109) {
tmp = -1.0;
} else {
tmp = 1.0;
}
return tmp;
}
def code(f, n): tmp = 0 if n <= -2.2e-12: tmp = 1.0 elif n <= 5e-109: tmp = -1.0 else: tmp = 1.0 return tmp
function code(f, n) tmp = 0.0 if (n <= -2.2e-12) tmp = 1.0; elseif (n <= 5e-109) tmp = -1.0; else tmp = 1.0; end return tmp end
function tmp_2 = code(f, n) tmp = 0.0; if (n <= -2.2e-12) tmp = 1.0; elseif (n <= 5e-109) tmp = -1.0; else tmp = 1.0; end tmp_2 = tmp; end
code[f_, n_] := If[LessEqual[n, -2.2e-12], 1.0, If[LessEqual[n, 5e-109], -1.0, 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -2.2 \cdot 10^{-12}:\\
\;\;\;\;1\\
\mathbf{elif}\;n \leq 5 \cdot 10^{-109}:\\
\;\;\;\;-1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if n < -2.19999999999999992e-12 or 5.0000000000000002e-109 < n Initial program 99.9%
distribute-frac-neg99.9%
distribute-neg-frac299.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
Simplified99.9%
Taylor expanded in f around 0 78.0%
if -2.19999999999999992e-12 < n < 5.0000000000000002e-109Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 78.5%
(FPCore (f n) :precision binary64 -1.0)
double code(double f, double n) {
return -1.0;
}
real(8) function code(f, n)
real(8), intent (in) :: f
real(8), intent (in) :: n
code = -1.0d0
end function
public static double code(double f, double n) {
return -1.0;
}
def code(f, n): return -1.0
function code(f, n) return -1.0 end
function tmp = code(f, n) tmp = -1.0; end
code[f_, n_] := -1.0
\begin{array}{l}
\\
-1
\end{array}
Initial program 100.0%
distribute-frac-neg100.0%
distribute-neg-frac2100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in f around inf 44.0%
herbie shell --seed 2024186
(FPCore (f n)
:name "subtraction fraction"
:precision binary64
(/ (- (+ f n)) (- f n)))