



Bits error versus N
Results
| Original | 15.1 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 15.1
rmApplied diff-atan14.0
Simplified0.4
Final simplification0.4
herbie shell --seed 2019004
(FPCore (N)
:name "2atan (example 3.5)"
:herbie-target
(atan (/ 1 (+ 1 (* N (+ N 1)))))
(- (atan (+ N 1)) (atan N)))
Time bar (total: 6.5s)Debug log
1 calls. Slowest were:
| 8.0ms | (- (atan (+ N 1)) (atan N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 15.5b
Found 2 expressions with local error:
| 1.6b | (- (atan (+ N 1)) (atan N)) |
| 0.0b | (atan (+ N 1)) |
2 calls. Slowest were:
| 7.0ms | (- (atan (+ N 1)) (atan N)) |
| 1.0ms | (atan (+ N 1)) |
2 calls. Slowest were:
| 11.0ms | (- (atan (+ N 1)) (atan N)) |
| 3.0ms | (atan (+ N 1)) |
12 calls. Slowest were:
| 22.0ms | (+ 1 (* (+ N 1) N)) |
| 15.0ms | (- (+ N 1) N) |
| 13.0ms | (/ (exp (atan (+ N 1))) (exp (atan N))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.5b
Found 1 expressions with local error:
| 0.5b | (atan2 1 (+ 1 (* (+ N 1) N))) |
1 calls. Slowest were:
| 0.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
1 calls. Slowest were:
| 7.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
3 calls. Slowest were:
| 24.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 23.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 22.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 17.6b | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 17.6b | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 0.5b | (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) |
| 0.5b | (atan2 1 (+ 1 (* (+ N 1) N))) |
4 calls. Slowest were:
| 5.0ms | (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) |
| 1.0ms | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 1.0ms | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
4 calls. Slowest were:
| 13.0ms | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 12.0ms | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 4.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
| 3.0ms | (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) |
42 calls. Slowest were:
| 49.0ms | (* (* (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) (* (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))))) |
| 45.0ms | (sqrt (* (cbrt (atan2 1 (+ 1 (* (+ N 1) N)))) (cbrt (atan2 1 (+ 1 (* (+ N 1) N)))))) |
| 45.0ms | (* (cbrt (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) (cbrt (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 17.6b | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 17.6b | (sqrt (atan2 1 (+ N (+ (pow N 2) 1)))) |
| 0.5b | (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ N (+ (pow N 2) 1))))) |
| 0.5b | (atan2 1 (+ N (+ (pow N 2) 1))) |
4 calls. Slowest were:
| 9.0ms | (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ N (+ (pow N 2) 1))))) |
| 1.0ms | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 1.0ms | (sqrt (atan2 1 (+ N (+ (pow N 2) 1)))) |
4 calls. Slowest were:
| 21.0ms | (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) |
| 20.0ms | (sqrt (atan2 1 (+ N (+ (pow N 2) 1)))) |
| 5.0ms | (* (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))) (sqrt (atan2 1 (+ N (+ (pow N 2) 1))))) |
| 5.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
36 calls. Slowest were:
| 49.0ms | (sqrt (* (cbrt (atan2 1 (+ 1 (* (+ N 1) N)))) (cbrt (atan2 1 (+ 1 (* (+ N 1) N)))))) |
| 44.0ms | (* (cbrt (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) (cbrt (sqrt (atan2 1 (+ 1 (* (+ N 1) N)))))) |
| 42.0ms | (sqrt (sqrt (atan2 1 (+ 1 (* (+ N 1) N))))) |
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