



Bits error versus N
| Original | 14.9 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 14.9
Initial simplification14.9
rmApplied diff-atan13.8
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2018365 +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: 3.4s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.8b
Found 1 expressions with local error:
| 1.1b | (- (atan (+ 1 N)) (atan N)) |
1 calls. Slowest were:
| 4.0ms | (- (atan (+ 1 N)) (atan N)) |
1 calls. Slowest were:
| 11.0ms | (- (atan (+ 1 N)) (atan N)) |
29 calls. Slowest were:
| 31.0ms | (fma 1 (atan (+ 1 N)) (- (* (atan N) 1))) |
| 28.0ms | (fma (- (cbrt (atan N))) (* (cbrt (atan N)) (cbrt (atan N))) (* (cbrt (atan N)) (* (cbrt (atan N)) (cbrt (atan N))))) |
| 25.0ms | (fma (- (cbrt (atan N))) (* (cbrt (atan N)) (cbrt (atan N))) (* (cbrt (atan N)) (* (cbrt (atan N)) (cbrt (atan N))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.5b
Found 1 expressions with local error:
| 0.5b | (atan2 1 (fma N (+ N 1) 1)) |
1 calls. Slowest were:
| 0.0ms | (atan2 1 (fma N (+ N 1) 1)) |
1 calls. Slowest were:
| 4.0ms | (atan2 1 (fma N (+ N 1) 1)) |
3 calls. Slowest were:
| 16.0ms | (atan2 1 (fma N (+ N 1) 1)) |
| 12.0ms | (atan2 1 (fma N (+ N 1) 1)) |
| 11.0ms | (atan2 1 (fma N (+ N 1) 1)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.5b
Found 4 expressions with local error:
| 17.5b | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 17.5b | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 0.6b | (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 0.5b | (atan2 1 (fma N (+ N 1) 1)) |
4 calls. Slowest were:
| 9.0ms | (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 2.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 1.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
4 calls. Slowest were:
| 18.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 11.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 2.0ms | (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 2.0ms | (atan2 1 (fma N (+ N 1) 1)) |
42 calls. Slowest were:
| 37.0ms | (sqrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 33.0ms | (* (* (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (* (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 30.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 18.1b | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 18.1b | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 18.1b | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 17.5b | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
4 calls. Slowest were:
| 3.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 3.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 3.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
4 calls. Slowest were:
| 131.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 129.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 129.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 11.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
19 calls. Slowest were:
| 20.0ms | (sqrt (* (cbrt (atan2 1 (fma N (+ N 1) 1))) (cbrt (atan2 1 (fma N (+ N 1) 1))))) |
| 19.0ms | (cbrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 19.0ms | (cbrt (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.4b
0% (0.0b remaining)
Error of 0.4b against oracle of 0.3b and baseline of 0.4b