



Bits error versus i




Bits error versus n
| Original | 47.5 |
|---|---|
| Target | 47.4 |
| Herbie | 11.0 |
if i < -2.278559406454278e-06Initial program 28.6
rmApplied add-exp-log28.7
Applied pow-exp28.7
Applied simplify5.9
if -2.278559406454278e-06 < i < 423.9432279528851Initial program 57.8
Taylor expanded around 0 57.4
Applied simplify26.0
rmApplied fma-udef26.0
Applied distribute-lft-in26.5
Applied simplify26.0
Applied simplify9.2
if 423.9432279528851 < i < 6.970775378424489e+136Initial program 32.5
rmApplied add-exp-log41.0
Applied pow-exp41.0
Applied expm1-def20.5
if 6.970775378424489e+136 < i Initial program 32.1
rmApplied div-inv32.2
Applied add-cube-cbrt32.2
Applied times-frac32.2
Time bar (total: 2.6m)Debug logProfile
herbie shell --seed '#(1070386091 2509006183 1430610344 1025408621 36622005 1425925650)' +o rules:numerics
(FPCore (i n)
:name "Compound Interest"
:herbie-target
(* 100 (/ (- (exp (* n (if (== (+ 1 (/ i n)) 1) (/ i n) (/ (* (/ i n) (log (+ 1 (/ i n)))) (- (+ (/ i n) 1) 1))))) 1) (/ i n)))
(* 100 (/ (- (pow (+ 1 (/ i n)) n) 1) (/ i n))))