



Bits error versus N
Results
| Original | 15.2 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 15.2
rmApplied diff-atan14.0
Simplified0.4
Taylor expanded around inf 0.4
Final simplification0.4
herbie shell --seed 2019002
(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:
| 4.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:
| 3.0ms | (- (atan (+ N 1)) (atan N)) |
1 calls. Slowest were:
| 7.0ms | (- (atan (+ N 1)) (atan N)) |
9 calls. Slowest were:
| 26.0ms | (/ (exp (atan (+ N 1))) (exp (atan N))) |
| 21.0ms | (+ 1 (* (+ N 1) N)) |
| 18.0ms | (- (+ N 1) N) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.4b
Found 2 expressions with local error:
| 0.4b | (atan2 1 (+ 1 (* (+ N 1) N))) |
| 0.0b | (* (+ N 1) N) |
2 calls. Slowest were:
| 2.0ms | (* (+ N 1) N) |
| 0.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
2 calls. Slowest were:
| 31.0ms | (* (+ N 1) N) |
| 3.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
10 calls. Slowest were:
| 105.0ms | (* (- (* N N) (* 1 1)) N) |
| 30.0ms | (* (+ (pow N 3) (pow 1 3)) N) |
| 15.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.3b
Found 1 expressions with local error:
| 0.4b | (atan2 1 (+ 1 (+ N (pow N 2)))) |
1 calls. Slowest were:
| 0.0ms | (atan2 1 (+ 1 (+ N (pow N 2)))) |
1 calls. Slowest were:
| 4.0ms | (atan2 1 (+ 1 (+ N (pow N 2)))) |
3 calls. Slowest were:
| 16.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 13.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 12.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 14.3b | (cbrt (* (+ N 1) N)) |
| 14.3b | (cbrt (* (+ N 1) N)) |
| 14.3b | (cbrt (* (+ N 1) N)) |
| 0.5b | (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) |
4 calls. Slowest were:
| 9.0ms | (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) |
| 2.0ms | (cbrt (* (+ N 1) N)) |
| 1.0ms | (cbrt (* (+ N 1) N)) |
4 calls. Slowest were:
| 56.0ms | (cbrt (* (+ N 1) N)) |
| 55.0ms | (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) |
| 43.0ms | (cbrt (* (+ N 1) N)) |
| 43.0ms | (cbrt (* (+ N 1) N)) |
49 calls. Slowest were:
| 385.0ms | (- (+ (* (pow (pow N 4) 1/3) (pow (cbrt -1) 2)) (* 2/3 (* (pow N 1/3) (pow (cbrt -1) 2)))) (* 1/9 (* (pow (/ 1 (pow N 2)) 1/3) (pow (cbrt -1) 2)))) |
| 341.0ms | (* (* (+ N 1) N) (* (+ N 1) N)) |
| 326.0ms | (* (* (+ N 1) N) (* (+ N 1) N)) |
5 alts after pruning (3 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