



Bits error versus N
| Original | 15.2 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 15.2
rmApplied diff-atan14.0
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019002 +o rules:numerics
(FPCore (N)
:name "2atan (example 3.5)"
:herbie-target
(atan (/ 1 (+ 1 (* N (+ N 1)))))
(- (atan (+ N 1)) (atan N)))
Time bar (total: 6.3s)Debug log
1 calls. Slowest were:
| 8.0ms | (- (atan (+ N 1)) (atan N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 13.4b
Found 1 expressions with local error:
| 0.3b | (- (atan (+ N 1)) (atan N)) |
1 calls. Slowest were:
| 8.0ms | (- (atan (+ N 1)) (atan N)) |
1 calls. Slowest were:
| 11.0ms | (- (atan (+ N 1)) (atan N)) |
29 calls. Slowest were:
| 42.0ms | (fma (sqrt (atan (+ N 1))) (sqrt (atan (+ N 1))) (- (* (sqrt (atan N)) (sqrt (atan N))))) |
| 38.0ms | (fma 1 (atan (+ N 1)) (- (* (atan N) 1))) |
| 32.0ms | (fma (- (cbrt (atan N))) (* (cbrt (atan N)) (cbrt (atan N))) (* (cbrt (atan N)) (* (cbrt (atan N)) (cbrt (atan N))))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.4b
Found 2 expressions with local error:
| 0.4b | (atan2 1 (fma N (+ N 1) 1)) |
| 0.0b | (fma N (+ N 1) 1) |
2 calls. Slowest were:
| 0.0ms | (atan2 1 (fma N (+ N 1) 1)) |
| 0.0ms | (fma N (+ N 1) 1) |
2 calls. Slowest were:
| 13.0ms | (fma N (+ N 1) 1) |
| 2.0ms | (atan2 1 (fma N (+ N 1) 1)) |
6 calls. Slowest were:
| 36.0ms | (+ N (+ (pow N 2) 1)) |
| 33.0ms | (+ N (+ (pow N 2) 1)) |
| 33.0ms | (+ N (+ (pow N 2) 1)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
| 0.4b | (atan2 1 (* (* (cbrt (fma N (+ N 1) 1)) (cbrt (fma N (+ N 1) 1))) (cbrt (fma N (+ N 1) 1)))) |
4 calls. Slowest were:
| 1.0ms | (cbrt (fma N (+ N 1) 1)) |
| 1.0ms | (cbrt (fma N (+ N 1) 1)) |
| 1.0ms | (cbrt (fma N (+ N 1) 1)) |
4 calls. Slowest were:
| 60.0ms | (cbrt (fma N (+ N 1) 1)) |
| 56.0ms | (cbrt (fma N (+ N 1) 1)) |
| 40.0ms | (cbrt (fma N (+ N 1) 1)) |
| 2.0ms | (atan2 1 (* (* (cbrt (fma N (+ N 1) 1)) (cbrt (fma N (+ N 1) 1))) (cbrt (fma N (+ N 1) 1)))) |
21 calls. Slowest were:
| 64.0ms | (+ (* 1/3 N) (+ (* 2/9 (pow N 2)) 1)) |
| 48.0ms | (+ (* 1/3 N) (+ (* 2/9 (pow N 2)) 1)) |
| 43.0ms | (+ (* 1/3 N) (+ (* 2/9 (pow N 2)) 1)) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
| 13.9b | (cbrt (fma N (+ N 1) 1)) |
4 calls. Slowest were:
| 1.0ms | (cbrt (fma N (+ N 1) 1)) |
| 1.0ms | (cbrt (fma N (+ N 1) 1)) |
| 1.0ms | (cbrt (fma N (+ N 1) 1)) |
4 calls. Slowest were:
| 61.0ms | (cbrt (fma N (+ N 1) 1)) |
| 57.0ms | (cbrt (fma N (+ N 1) 1)) |
| 57.0ms | (cbrt (fma N (+ N 1) 1)) |
| 56.0ms | (cbrt (fma N (+ N 1) 1)) |
24 calls. Slowest were:
| 70.0ms | (+ (* 1/3 N) (+ (* 2/9 (pow N 2)) 1)) |
| 69.0ms | (+ (* 1/3 N) (+ (* 2/9 (pow N 2)) 1)) |
| 43.0ms | (+ (* 1/3 N) (+ (* 2/9 (pow N 2)) 1)) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.3b
0% (0.0b remaining)
Error of 0.4b against oracle of 0.4b and baseline of 0.4b