
(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}
herbie shell --seed 2024157 -o setup:simplify
(FPCore (f n)
:name "subtraction fraction"
:precision binary64
(/ (- (+ f n)) (- f n)))
Please file a bug report with this information.
| f can not be a variable | L | C | |
|---|---|---|---|
| f100 | .../match/compiler.rkt | 559 | 40 |
| f100 | .../match/compiler.rkt | 559 | 40 |
| f100 | .../match/compiler.rkt | 559 | 40 |
| exprs+ctxs->sollya | /home/nightlies/herbie/artem-popl-s-eval/src/run-sollya.rkt | 125 | 0 |
| run-sollya | /home/nightlies/herbie/artem-popl-s-eval/src/run-sollya.rkt | 173 | 0 |
| sample-points | /home/nightlies/herbie/artem-popl-s-eval/src/sampling.rkt | 180 | 0 |
| setup-context! | /home/nightlies/herbie/artem-popl-s-eval/src/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/artem-popl-s-eval/src/sandbox.rkt | 171 | 0 |
| (unnamed) | /home/nightlies/herbie/artem-popl-s-eval/src/sandbox.rkt | 265 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |