2 \cdot \tan^{-1} \left(\sqrt{\frac{1 - x}{1 + x}}\right)double code(double x) {
return ((double) (2.0 * ((double) atan(((double) sqrt(((double) (((double) (1.0 - x)) / ((double) (1.0 + x))))))))));
}
Please include this information when filing a bug report:
herbie shell --seed 2020155
(FPCore (x)
:name "arccos"
:precision binary64
(* 2.0 (atan (sqrt (/ (- 1.0 x) (+ 1.0 x))))))
| hash-ref: no value found for key key: 'x | L | C | |
|---|---|---|---|
| range-table->hyperrects | /data/pavpan/nightlies/herbie/ival-find-range/src/findroot.rkt | 58 | 0 |
| make-sampler | /data/pavpan/nightlies/herbie/ival-find-range/src/points.rkt | 124 | 0 |
| prepare-points-intervals | /data/pavpan/nightlies/herbie/ival-find-range/src/points.rkt | 155 | 0 |
| run-improve47 | /data/pavpan/nightlies/herbie/ival-find-range/src/mainloop.rkt | 365 | 0 |
| .../more-scheme.rkt:261:28 | unknown | ||
| run | /opt/racket-7.5/share/pkgs/profile-lib/main.rkt | 39 | 2 |
| profile-thunk16 | /opt/racket-7.5/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /opt/racket-7.5/collects/racket/private/more-scheme.rkt | 261 | 28 |
herbie shell --seed 2020155
(FPCore (x)
:name "arccos"
:precision binary64
(* 2.0 (atan (sqrt (/ (- 1.0 x) (+ 1.0 x))))))