


Bits error versus x
Results
Initial program 58.6
Simplified58.6
Taylor expanded around 0 0.2
Final simplification0.2
herbie shell --seed 2019002
(FPCore (x)
:name "Hyperbolic arc-(co)tangent"
(* (/ 1 2) (log (/ (+ 1 x) (- 1 x)))))
Time bar (total: 15.4s)Debug log
1 calls. Slowest were:
| 119.0ms | (* (/ 1 2) (log (/ (+ 1 x) (- 1 x)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 59.3b
Found 2 expressions with local error:
| 5.2b | (log (/ (+ x 1) (- 1 x))) |
| 0.0b | (/ (+ x 1) (- 1 x)) |
2 calls. Slowest were:
| 3.0ms | (/ (+ x 1) (- 1 x)) |
| 1.0ms | (log (/ (+ x 1) (- 1 x))) |
2 calls. Slowest were:
| 84.0ms | (log (/ (+ x 1) (- 1 x))) |
| 16.0ms | (/ (+ x 1) (- 1 x)) |
53 calls. Slowest were:
| 366.0ms | (/ (* (cbrt (+ x 1)) (cbrt (+ x 1))) (* (cbrt (- 1 x)) (cbrt (- 1 x)))) |
| 361.0ms | (/ (* (* (+ x 1) (+ x 1)) (+ x 1)) (* (* (- 1 x) (- 1 x)) (- 1 x))) |
| 155.0ms | (- (+ (* 2 (/ 1 (pow x 2))) (+ (* 2 (/ 1 x)) 1))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.1b | (* 2/3 (pow x 3)) |
| 0.1b | (* 2/5 (pow x 5)) |
| 0.0b | (+ (* 2/3 (pow x 3)) (* 2/5 (pow x 5))) |
3 calls. Slowest were:
| 3.0ms | (+ (* 2/3 (pow x 3)) (* 2/5 (pow x 5))) |
| 1.0ms | (* 2/3 (pow x 3)) |
| 1.0ms | (* 2/5 (pow x 5)) |
3 calls. Slowest were:
| 51.0ms | (+ (* 2/3 (pow x 3)) (* 2/5 (pow x 5))) |
| 22.0ms | (* 2/3 (pow x 3)) |
| 20.0ms | (* 2/5 (pow x 5)) |
17 calls. Slowest were:
| 21.0ms | (+ (* 2/3 (pow x 3)) (* 2/5 (pow x 5))) |
| 20.0ms | (+ (* 2/3 (pow x 3)) (* 2/5 (pow x 5))) |
| 17.0ms | (* (exp (* 2/3 (pow x 3))) (exp (* 2/5 (pow x 5)))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 5.3b | (log (sqrt (/ (+ x 1) (- 1 x)))) |
| 5.3b | (log (sqrt (/ (+ x 1) (- 1 x)))) |
| 0.0b | (sqrt (/ (+ x 1) (- 1 x))) |
| 0.0b | (sqrt (/ (+ x 1) (- 1 x))) |
4 calls. Slowest were:
| 3.0ms | (log (sqrt (/ (+ x 1) (- 1 x)))) |
| 2.0ms | (log (sqrt (/ (+ x 1) (- 1 x)))) |
| 2.0ms | (sqrt (/ (+ x 1) (- 1 x))) |
4 calls. Slowest were:
| 114.0ms | (log (sqrt (/ (+ x 1) (- 1 x)))) |
| 80.0ms | (log (sqrt (/ (+ x 1) (- 1 x)))) |
| 24.0ms | (sqrt (/ (+ x 1) (- 1 x))) |
| 23.0ms | (sqrt (/ (+ x 1) (- 1 x))) |
88 calls. Slowest were:
| 419.0ms | (- (log (sqrt -1)) (+ (/ 1 (* (pow x 2) (pow (sqrt -1) 2))) (+ (/ 1 (* (pow x 2) (pow (sqrt -1) 4))) (/ 1 (* x (pow (sqrt -1) 2)))))) |
| 366.0ms | (- (log (sqrt -1)) (+ (/ 1 (* (pow x 2) (pow (sqrt -1) 2))) (+ (/ 1 (* (pow x 2) (pow (sqrt -1) 4))) (/ 1 (* x (pow (sqrt -1) 2)))))) |
| 364.0ms | (- (log (sqrt -1)) (+ (/ 1 (* (pow x 2) (pow (sqrt -1) 2))) (+ (/ 1 (* (pow x 2) (pow (sqrt -1) 4))) (/ 1 (* x (pow (sqrt -1) 2)))))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0.0b
0% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b