
(FPCore (x) :precision binary64 (atanh x))
double code(double x) {
return atanh(x);
}
def code(x): return math.atanh(x)
function code(x) return atanh(x) end
function tmp = code(x) tmp = atanh(x); end
code[x_] := N[ArcTanh[x], $MachinePrecision]
\begin{array}{l}
\\
\tanh^{-1} x
\end{array}
herbie shell --seed 2024110
(FPCore (x)
:name "Rust f64::atanh"
:precision binary64
(* 0.5 (log1p (/ (* 2.0 x) (- 1.0 x)))))
Please file a bug report with this information.
| first: contract violation expected: (and/c list? (not/c empty?)) given: '#((log1p 16)) | L | C | |
|---|---|---|---|
| regraph-prune-specs | /home/nightlies/herbie/spec-rewriting/src/core/egg-herbie.rkt | 1037 | 0 |
| egraph-run-schedule | /home/nightlies/herbie/spec-rewriting/src/core/egg-herbie.rkt | 1169 | 0 |
| run-egg | /home/nightlies/herbie/spec-rewriting/src/core/egg-herbie.rkt | 1376 | 0 |
| simplify-batch | /home/nightlies/herbie/spec-rewriting/src/core/simplify.rkt | 15 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/contract/private/arrow-higher-order.rkt | 379 | 33 |
| initial-simplify | /home/nightlies/herbie/spec-rewriting/src/preprocess.rkt | 28 | 0 |
| find-preprocessing | /home/nightlies/herbie/spec-rewriting/src/preprocess.rkt | 59 | 0 |
| run-improve! | /home/nightlies/herbie/spec-rewriting/src/mainloop.rkt | 49 | 0 |
| get-alternatives/report | /home/nightlies/herbie/spec-rewriting/src/sandbox.rkt | 171 | 0 |
| (unnamed) | /home/nightlies/herbie/spec-rewriting/src/sandbox.rkt | 266 | 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 |