


Bits error versus i
if i < 227.50852513912608Initial program 44.1
Simplified0.0
if 227.50852513912608 < i Initial program 46.4
Simplified31.5
rmApplied *-un-lft-identity31.5
Applied times-frac31.7
Simplified31.7
Simplified31.7
rmApplied div-inv31.7
Applied associate-*r*31.6
Taylor expanded around -inf 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019022 +o rules:numerics
(FPCore (i)
:name "Octave 3.8, jcobi/4, as called"
:pre (and (> i 0))
(/ (/ (* (* i i) (* i i)) (* (* 2 i) (* 2 i))) (- (* (* 2 i) (* 2 i)) 1.0)))
Time bar (total: 6.9s)Debug log
| 22.0ms | 256× | body | 80 | valid |
| 4.0ms | 256× | pre | 80 | true |
| 146.0ms | (/ (/ (* (* i i) (* i i)) (* (* 2 i) (* 2 i))) (- (* (* 2 i) (* 2 i)) 1.0)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 12.2b
Found 1 expressions with local error:
| 12.2b | (/ (* i (/ i 4)) (fma (* i 4) i (- 1.0))) |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | times-frac |
| 3× | *-un-lft-identity |
| 3× | associate-/r* |
| 3× | add-sqr-sqrt |
| 1× | associate-/l/ |
| 1× | add-log-exp |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | associate-*r/ |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 5.0ms | (/ (* i (/ i 4)) (fma (* i 4) i (- 1.0))) |
| 42.0ms | (/ (* i (/ i 4)) (fma (* i 4) i (- 1.0))) |
| 155.0ms | (- (+ (* 0.25 (pow i 2)) (+ (* 1.0 (pow i 4)) (* 4.0 (pow i 6))))) |
| 94.0ms | (- (log (* i (/ i 4))) (log (fma (* i 4) i (- 1.0)))) |
| 67.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
| 63.0ms | (/ (* (* (* i (/ i 4)) (* i (/ i 4))) (* i (/ i 4))) (* (* (fma (* i 4) i (- 1.0)) (fma (* i 4) i (- 1.0))) (fma (* i 4) i (- 1.0)))) |
| 40.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 11.8b | (/ i (fma 16 (* i i) (* -4 1.0))) |
| 0.1b | (* i (/ i (fma 16 (* i i) (* -4 1.0)))) |
| 0.0b | (fma 16 (* i i) (* -4 1.0)) |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | associate-*r* |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 1× | fma-udef |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | frac-2neg |
| 1× | clear-num |
| 2.0ms | (* i (/ i (fma 16 (* i i) (* -4 1.0)))) |
| 1.0ms | (/ i (fma 16 (* i i) (* -4 1.0))) |
| 0.0ms | (fma 16 (* i i) (* -4 1.0)) |
| 47.0ms | (/ i (fma 16 (* i i) (* -4 1.0))) |
| 32.0ms | (fma 16 (* i i) (* -4 1.0)) |
| 25.0ms | (* i (/ i (fma 16 (* i i) (* -4 1.0)))) |
| 262.0ms | (- (+ (* 0.25 i) (+ (* 1.0 (pow i 3)) (* 4.0 (pow i 5))))) |
| 201.0ms | (- (+ (* 0.25 (pow i 2)) (+ (* 1.0 (pow i 4)) (* 4.0 (pow i 6))))) |
| 144.0ms | (+ (* 0.00390625 (/ 1 (pow i 5))) (+ (* 0.015625 (/ 1 (pow i 3))) (* 1/16 (/ 1 i)))) |
| 112.0ms | (+ (* 0.00390625 (/ 1 (pow i 5))) (+ (* 0.015625 (/ 1 (pow i 3))) (* 1/16 (/ 1 i)))) |
| 39.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 12.3b | (* (* i i) (/ 1 (fma 16 (* i i) (* -4 1.0)))) |
| 0.4b | (/ 1 (fma 16 (* i i) (* -4 1.0))) |
| 0.0b | (fma 16 (* i i) (* -4 1.0)) |
| 8× | add-exp-log |
| 6× | pow1 |
| 5× | add-cube-cbrt |
| 5× | add-cbrt-cube |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | associate-*r* |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | associate-/r* |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 2× | prod-exp |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | frac-2neg |
| 1× | clear-num |
| 8.0ms | (* (* i i) (/ 1 (fma 16 (* i i) (* -4 1.0)))) |
| 1.0ms | (/ 1 (fma 16 (* i i) (* -4 1.0))) |
| 0.0ms | (fma 16 (* i i) (* -4 1.0)) |
| 45.0ms | (* (* i i) (/ 1 (fma 16 (* i i) (* -4 1.0)))) |
| 35.0ms | (fma 16 (* i i) (* -4 1.0)) |
| 29.0ms | (/ 1 (fma 16 (* i i) (* -4 1.0))) |
| 300.0ms | (* (* (* (* i i) (* i i)) (* i i)) (* (* (/ 1 (fma 16 (* i i) (* -4 1.0))) (/ 1 (fma 16 (* i i) (* -4 1.0)))) (/ 1 (fma 16 (* i i) (* -4 1.0))))) |
| 188.0ms | (- (+ (* 0.25 (pow i 2)) (+ (* 1.0 (pow i 4)) (* 4.0 (pow i 6))))) |
| 126.0ms | (- (+ (* 1.0 (pow i 2)) (+ (* 4.0 (pow i 4)) 0.25))) |
| 77.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
| 74.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.2b | (fma (/ 0.015625 i) (/ 1 i) 1/16) |
| 0.2b | (/ 0.00390625 (pow i 4)) |
| 0.0b | (+ (fma (/ 0.015625 i) (/ 1 i) 1/16) (/ 0.00390625 (pow i 4))) |
| 7× | *-un-lft-identity |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | add-sqr-sqrt |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | fma-def |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | fma-udef |
| 1× | distribute-lft-out |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sum-log |
| 1× | clear-num |
| 1× | associate-+l+ |
| 1× | +-commutative |
| 11.0ms | (+ (fma (/ 0.015625 i) (/ 1 i) 1/16) (/ 0.00390625 (pow i 4))) |
| 1.0ms | (/ 0.00390625 (pow i 4)) |
| 0.0ms | (fma (/ 0.015625 i) (/ 1 i) 1/16) |
| 30.0ms | (+ (fma (/ 0.015625 i) (/ 1 i) 1/16) (/ 0.00390625 (pow i 4))) |
| 30.0ms | (fma (/ 0.015625 i) (/ 1 i) 1/16) |
| 18.0ms | (/ 0.00390625 (pow i 4)) |
| 103.0ms | (* (exp (fma (/ 0.015625 i) (/ 1 i) 1/16)) (exp (/ 0.00390625 (pow i 4)))) |
| 57.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
| 53.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
| 52.0ms | (* (cbrt (fma (/ 0.015625 i) (/ 1 i) 1/16)) (cbrt (fma (/ 0.015625 i) (/ 1 i) 1/16))) |
| 47.0ms | (+ (* 0.015625 (/ 1 (pow i 2))) (+ 1/16 (* 0.00390625 (/ 1 (pow i 4))))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 15.8b
| 1.1s | 8000× | body | 80 | valid |
| 188.0ms | 8000× | pre | 80 | true |