



Bits error versus N
| Original | 14.6 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 14.6
Initial simplification14.6
rmApplied diff-atan13.6
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2018362 +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: 4.9s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 10.9b
Found 2 expressions with local error:
| 0.9b | (- (atan (+ 1 N)) (atan N)) |
| 0.0b | (atan (+ 1 N)) |
2 calls. Slowest were:
| 8.0ms | (- (atan (+ 1 N)) (atan N)) |
| 1.0ms | (atan (+ 1 N)) |
2 calls. Slowest were:
| 12.0ms | (- (atan (+ 1 N)) (atan N)) |
| 3.0ms | (atan (+ 1 N)) |
32 calls. Slowest were:
| 42.0ms | (fma (* (cbrt (atan (+ 1 N))) (cbrt (atan (+ 1 N)))) (cbrt (atan (+ 1 N))) (- (* (cbrt (atan N)) (* (cbrt (atan N)) (cbrt (atan N)))))) |
| 36.0ms | (fma (sqrt (atan (+ 1 N))) (sqrt (atan (+ 1 N))) (- (* (sqrt (atan N)) (sqrt (atan N))))) |
| 33.0ms | (fma 1 (atan (+ 1 N)) (- (* (atan N) 1))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.1b
Found 1 expressions with local error:
| 0.1b | (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:
| 26.0ms | (atan2 1 (fma N (+ N 1) 1)) |
| 22.0ms | (atan2 1 (fma N (+ N 1) 1)) |
| 21.0ms | (atan2 1 (fma N (+ N 1) 1)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 13.5b | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 13.5b | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 0.7b | (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 0.1b | (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:
| 16.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
| 12.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:
| 60.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))))) |
| 41.0ms | (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1)))) |
| 41.0ms | (sqrt (cbrt (atan2 1 (fma N (+ N 1) 1)))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 13.9b | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 13.9b | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 13.9b | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 13.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:
| 199.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 194.0ms | (cbrt (* (sqrt (atan2 1 (fma N (+ N 1) 1))) (sqrt (atan2 1 (fma N (+ N 1) 1))))) |
| 146.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:
| 39.0ms | (sqrt (* (cbrt (atan2 1 (fma N (+ N 1) 1))) (cbrt (atan2 1 (fma N (+ N 1) 1))))) |
| 32.0ms | (pow (atan2 1 (fma N (+ N 1) 1)) 1/3) |
| 32.0ms | (sqrt (atan2 1 (fma N (+ N 1) 1))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.1b
0% (0.0b remaining)
Error of 0.4b against oracle of 0.4b and baseline of 0.4b