
(FPCore (x) :precision binary64 (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
double code(double x) {
return (x / (x + 1.0)) - ((x + 1.0) / (x - 1.0));
}
real(8) function code(x)
real(8), intent (in) :: x
code = (x / (x + 1.0d0)) - ((x + 1.0d0) / (x - 1.0d0))
end function
public static double code(double x) {
return (x / (x + 1.0)) - ((x + 1.0) / (x - 1.0));
}
def code(x): return (x / (x + 1.0)) - ((x + 1.0) / (x - 1.0))
function code(x) return Float64(Float64(x / Float64(x + 1.0)) - Float64(Float64(x + 1.0) / Float64(x - 1.0))) end
function tmp = code(x) tmp = (x / (x + 1.0)) - ((x + 1.0) / (x - 1.0)); end
code[x_] := N[(N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] - N[(N[(x + 1.0), $MachinePrecision] / N[(x - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + 1} - \frac{x + 1}{x - 1}
\end{array}
herbie shell --seed 2024283
(FPCore (x)
:name "Asymptote C"
:precision binary64
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
Please file a bug report with this information.
| eprintf: format string requires 0 arguments, given 1; arguments were: '(#s(si 1 1) #s(si 0 4)) | L | C | |
|---|---|---|---|
| err-lsts->split-indices | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 219 | 0 |
| option-on-expr | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 120 | 0 |
| infer-splitpoints | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 56 | 0 |
| loop | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 41 | 2 |
| make-regime! | /home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt | 350 | 0 |
| extract! | /home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt | 79 | 0 |
| run-improve! | /home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-regimes-old/src/api/sandbox.rkt | 186 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-regimes-old/src/api/sandbox.rkt | 282 | 6 |
| (unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |