



Bits error versus N
Results
| Original | 14.6 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 14.6
Initial simplification14.6
rmApplied diff-atan13.6
Simplified0.4
Taylor expanded around inf 0.4
Final simplification0.4
herbie shell --seed 2018362
(FPCore (N)
:name "2atan (example 3.5)"
:herbie-target
(atan (/ 1 (+ 1 (* N (+ N 1)))))
(- (atan (+ N 1)) (atan N)))
Time bar (total: 5.1s)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:
| 7.0ms | (- (atan (+ 1 N)) (atan N)) |
| 1.0ms | (atan (+ 1 N)) |
2 calls. Slowest were:
| 13.0ms | (- (atan (+ 1 N)) (atan N)) |
| 3.0ms | (atan (+ 1 N)) |
12 calls. Slowest were:
| 19.0ms | (+ 1 (* (+ 1 N) N)) |
| 19.0ms | (/ (exp (atan (+ 1 N))) (exp (atan N))) |
| 8.0ms | (- (+ 1 N) N) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.1b | (atan2 1 (+ 1 (* (+ 1 N) N))) |
| 0.0b | (* (+ 1 N) N) |
2 calls. Slowest were:
| 3.0ms | (* (+ 1 N) N) |
| 0.0ms | (atan2 1 (+ 1 (* (+ 1 N) N))) |
2 calls. Slowest were:
| 18.0ms | (* (+ 1 N) N) |
| 3.0ms | (atan2 1 (+ 1 (* (+ 1 N) N))) |
10 calls. Slowest were:
| 18.0ms | (* (+ (pow 1 3) (pow N 3)) N) |
| 14.0ms | (* (- (* 1 1) (* N N)) N) |
| 13.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.1b | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 0.0b | (+ N (+ (pow N 2) 1)) |
2 calls. Slowest were:
| 5.0ms | (+ N (+ (pow N 2) 1)) |
| 0.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
2 calls. Slowest were:
| 8.0ms | (+ N (+ (pow N 2) 1)) |
| 3.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
6 calls. Slowest were:
| 26.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 25.0ms | (+ N (+ (pow N 2) 1)) |
| 24.0ms | (+ N (+ (pow N 2) 1)) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 13.8b | (cbrt (* (+ 1 N) N)) |
| 13.8b | (cbrt (* (+ 1 N) N)) |
| 13.8b | (cbrt (* (+ 1 N) N)) |
| 0.5b | (* (cbrt (* (+ 1 N) N)) (cbrt (* (+ 1 N) N))) |
4 calls. Slowest were:
| 13.0ms | (* (cbrt (* (+ 1 N) N)) (cbrt (* (+ 1 N) N))) |
| 2.0ms | (cbrt (* (+ 1 N) N)) |
| 1.0ms | (cbrt (* (+ 1 N) N)) |
4 calls. Slowest were:
| 77.0ms | (* (cbrt (* (+ 1 N) N)) (cbrt (* (+ 1 N) N))) |
| 73.0ms | (cbrt (* (+ 1 N) N)) |
| 69.0ms | (cbrt (* (+ 1 N) N)) |
| 66.0ms | (cbrt (* (+ 1 N) N)) |
49 calls. Slowest were:
| 387.0ms | (* (* (+ 1 N) N) (* (+ 1 N) N)) |
| 371.0ms | (* (* (+ 1 N) N) (* (+ 1 N) N)) |
| 291.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