



Bits error versus i




Bits error versus n
| Original | 47.5 |
|---|---|
| Target | 47.1 |
| Herbie | 17.6 |
if i < -4.3730030050425e-14Initial program 29.2
rmApplied *-un-lft-identity29.2
Applied add-sqr-sqrt29.2
Applied unpow-prod-down29.3
Applied difference-of-sqr-129.3
Applied times-frac29.3
Applied associate-*r*29.3
if -4.3730030050425e-14 < i < 3.252761626681501Initial program 57.7
Taylor expanded around 0 57.4
Applied simplify25.5
Taylor expanded around 0 9.2
Applied simplify9.2
if 3.252761626681501 < i < 3.354860243102428e+51Initial program 33.4
rmApplied associate-/r/33.4
Applied associate-*r*33.4
if 3.354860243102428e+51 < i Initial program 32.7
Taylor expanded around inf 36.7
Time bar (total: 2.7m)Debug logProfile
herbie shell --seed '#(1064269945 2896236262 301053905 1701069080 1701464310 1614783279)'
(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))))