



Bits error versus i




Bits error versus n
| Original | 47.5 |
|---|---|
| Target | 47.4 |
| Herbie | 17.0 |
if i < -4.796200858382481e+27 or 13.262526716315637 < i Initial program 28.2
rmApplied associate-*r/28.2
if -4.796200858382481e+27 < i < 13.262526716315637Initial program 57.5
Taylor expanded around 0 57.4
Applied simplify26.3
rmApplied *-un-lft-identity26.3
Applied times-frac26.3
Applied add-cube-cbrt26.3
Applied times-frac26.2
Applied simplify11.3
Taylor expanded around 0 11.2
Time bar (total: 2.5m)Debug logProfile
herbie shell --seed '#(1070386091 2509006183 1430610344 1025408621 36622005 1425925650)'
(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))))