



Bits error versus N
Results
| Original | 15.5 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 15.5
rmApplied diff-atan14.5
Simplified0.4
Final simplification0.4
herbie shell --seed 323378853
(FPCore (N)
:name "2atan (example 3.5)"
:herbie-target
(atan (/ 1 (+ 1 (* N (+ N 1)))))
(- (atan (+ N 1)) (atan N)))
Time bar (total: 10.2s)Debug log
| 44.0ms | 90× | body | 1280 | valid |
| 13.0ms | 131× | body | 80 | valid |
| 9.0ms | 23× | body | 640 | valid |
| 4.0ms | 12× | body | 320 | valid |
| 9.0ms | (- (atan (+ N 1)) (atan N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 15.9b
Found 2 expressions with local error:
| 0.6b | (- (atan (+ N 1)) (atan N)) |
| 0.0b | (atan (+ N 1)) |
| 4× | add-log-exp |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | diff-atan |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 8.0ms | (- (atan (+ N 1)) (atan N)) |
| 1.0ms | (atan (+ N 1)) |
| 13.0ms | (- (atan (+ N 1)) (atan N)) |
| 3.0ms | (atan (+ N 1)) |
| 40.0ms | (+ 1 (* (+ N 1) N)) |
| 29.0ms | (- (+ N 1) N) |
| 28.0ms | (/ (exp (atan (+ N 1))) (exp (atan N))) |
| 10.0ms | (- (sqrt (atan (+ N 1))) (sqrt (atan N))) |
| 9.0ms | (- (atan (+ N 1)) (atan N)) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.5b
Found 2 expressions with local error:
| 0.5b | (atan2 1 (+ 1 (* (+ N 1) N))) |
| 0.0b | (* (+ N 1) N) |
| 3× | add-cube-cbrt |
| 3× | associate-*l* |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | add-exp-log |
| 2× | associate-*l/ |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | flip-+ |
| 1× | *-commutative |
| 1× | flip3-+ |
| 6.0ms | (* (+ N 1) N) |
| 0.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
| 38.0ms | (* (+ N 1) N) |
| 5.0ms | (atan2 1 (+ 1 (* (+ N 1) N))) |
| 135.0ms | (* (- (* N N) (* 1 1)) N) |
| 30.0ms | (* (+ (pow N 3) (pow 1 3)) N) |
| 28.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 28.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
| 27.0ms | (atan2 1 (+ N (+ (pow N 2) 1))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 14.8b | (cbrt (* (+ N 1) N)) |
| 14.8b | (cbrt (* (+ N 1) N)) |
| 14.8b | (cbrt (* (+ N 1) N)) |
| 0.5b | (atan2 1 (+ 1 (* (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) (cbrt (* (+ N 1) N))))) |
| 6× | associate-*l/ |
| 6× | cbrt-div |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | pow1 |
| 4× | add-sqr-sqrt |
| 3× | flip-+ |
| 3× | pow1/3 |
| 3× | flip3-+ |
| 3× | cbrt-prod |
| 4.0ms | (cbrt (* (+ N 1) N)) |
| 4.0ms | (cbrt (* (+ N 1) N)) |
| 3.0ms | (cbrt (* (+ N 1) N)) |
| 0.0ms | (atan2 1 (+ 1 (* (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) (cbrt (* (+ N 1) N))))) |
| 83.0ms | (cbrt (* (+ N 1) N)) |
| 82.0ms | (cbrt (* (+ N 1) N)) |
| 79.0ms | (cbrt (* (+ N 1) N)) |
| 10.0ms | (atan2 1 (+ 1 (* (* (cbrt (* (+ N 1) N)) (cbrt (* (+ N 1) N))) (cbrt (* (+ N 1) N))))) |
| 238.0ms | (- (+ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (* 1/3 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) N))) (* 1/9 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (pow N 2)))) |
| 234.0ms | (- (+ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (* 1/3 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) N))) (* 1/9 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (pow N 2)))) |
| 233.0ms | (- (+ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (* 1/3 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) N))) (* 1/9 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (pow N 2)))) |
| 140.0ms | (cbrt (* (- (* N N) (* 1 1)) N)) |
| 139.0ms | (cbrt (* (- (* N N) (* 1 1)) N)) |
9 alts after pruning (6 fresh and 3 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 14.8b | (cbrt (* (+ N 1) N)) |
| 14.8b | (cbrt (* (+ N 1) N)) |
| 0.6b | (cbrt N) |
| 0.5b | (atan2 1 (+ 1 (* (* (cbrt (* (+ N 1) N)) (* (cbrt (+ N 1)) (cbrt N))) (cbrt (* (+ N 1) N))))) |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | associate-*l/ |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | cbrt-div |
| 4× | pow1 |
| 4× | add-sqr-sqrt |
| 3× | pow1/3 |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | cbrt-prod |
| 4.0ms | (cbrt (* (+ N 1) N)) |
| 3.0ms | (cbrt (* (+ N 1) N)) |
| 0.0ms | (cbrt N) |
| 0.0ms | (atan2 1 (+ 1 (* (* (cbrt (* (+ N 1) N)) (* (cbrt (+ N 1)) (cbrt N))) (cbrt (* (+ N 1) N))))) |
| 436.0ms | (cbrt N) |
| 84.0ms | (cbrt (* (+ N 1) N)) |
| 81.0ms | (cbrt (* (+ N 1) N)) |
| 10.0ms | (atan2 1 (+ 1 (* (* (cbrt (* (+ N 1) N)) (* (cbrt (+ N 1)) (cbrt N))) (cbrt (* (+ N 1) N))))) |
| 237.0ms | (- (+ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (* 1/3 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) N))) (* 1/9 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (pow N 2)))) |
| 237.0ms | (- (+ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (* 1/3 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) N))) (* 1/9 (/ (* (cbrt -1) (exp (* 1/3 (- (log -1) (* 2 (log (/ -1 N))))))) (pow N 2)))) |
| 140.0ms | (cbrt (* (- (* N N) (* 1 1)) N)) |
| 140.0ms | (cbrt (* (- (* N N) (* 1 1)) N)) |
| 75.0ms | (- (+ (* 1/3 (pow (/ 1 N) 1/3)) (pow (/ 1 N) -2/3)) (* 1/9 (pow (/ 1 (pow N 4)) 1/3))) |
8 alts after pruning (5 fresh and 3 done)
Merged error: 0.4b
0% (0.0b remaining)
Error of 0.4b against oracle of 0.4b and baseline of 0.4b
| 1.6s | 2960× | body | 1280 | valid |
| 501.0ms | 3969× | body | 80 | valid |
| 241.0ms | 609× | body | 640 | valid |
| 101.0ms | 331× | body | 320 | valid |
| 28.0ms | 131× | body | 160 | valid |