



Bits error versus N
Results
| Original | 15.3 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 15.3
rmApplied diff-atan14.2
Simplified0.4
Taylor expanded around inf 0.4
Final simplification0.4
herbie shell --seed 2019005
(FPCore (N)
:name "2atan (example 3.5)"
:herbie-target
(atan (/ 1 (+ 1 (* N (+ N 1)))))
(- (atan (+ N 1)) (atan N)))
Time bar (total: 7.2s)Debug log
1 calls. Slowest were:
| 8.0ms | (- (atan (+ N 1)) (atan N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.9b
Found 2 expressions with local error:
| 1.2b | (- (atan (+ N 1)) (atan N)) |
| 0.0b | (atan (+ N 1)) |
2 calls. Slowest were:
| 3.0ms | (- (atan (+ N 1)) (atan N)) |
| 1.0ms | (atan (+ N 1)) |
2 calls. Slowest were:
| 7.0ms | (- (atan (+ N 1)) (atan N)) |
| 2.0ms | (atan (+ N 1)) |
12 calls. Slowest were:
| 459.0ms | (- (+ N 1) N) |
| 36.0ms | (+ 1 (* (+ N 1) N)) |
| 13.0ms | (/ (exp (atan (+ N 1))) (exp (atan N))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.2b
Found 2 expressions with local error:
| 0.2b | (atan2 1 (+ 1 (* (+ N 1) N))) |
| 0.0b | (* (+ N 1) N) |
2 calls. Slowest were:
| 3.0ms | (* (+ N 1) N) |
| 0.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
2 calls. Slowest were:
| 27.0ms | (* (+ N 1) N) |
| 2.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
10 calls. Slowest were:
| 99.0ms | (* (- (* N N) (* 1 1)) N) |
| 27.0ms | (* (+ (pow N 3) (pow 1 3)) N) |
| 26.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.2b | (atan2 1 (+ 1 (+ N (pow N 2)))) |
| 0.0b | (+ N (pow N 2)) |
2 calls. Slowest were:
| 1.0ms | (+ N (pow N 2)) |
| 0.0ms | (atan2 1 (+ 1 (+ N (pow N 2)))) |
2 calls. Slowest were:
| 18.0ms | (+ N (pow N 2)) |
| 3.0ms | (atan2 1 (+ 1 (+ N (pow N 2)))) |
6 calls. Slowest were:
| 24.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 19.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 12.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 15.0b | (cbrt (* (+ N 1) N)) |
| 15.0b | (cbrt (* (+ N 1) N)) |
| 15.0b | (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:
| 61.0ms | (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) |
| 59.0ms | (cbrt (* (+ N 1) N)) |
| 51.0ms | (cbrt (* (+ N 1) N)) |
| 40.0ms | (cbrt (* (+ N 1) N)) |
49 calls. Slowest were:
| 387.0ms | (* (* (+ N 1) N) (* (+ N 1) N)) |
| 311.0ms | (* (* (+ N 1) N) (* (+ N 1) N)) |
| 234.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)))) |
7 alts after pruning (5 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