



Bits error versus i




Bits error versus n
| Original | 47.5 |
|---|---|
| Target | 46.4 |
| Herbie | 16.5 |
if i < -0.3601928303400267Initial program 28.7
rmApplied add-sqr-sqrt28.8
Applied unpow-prod-down28.8
Applied difference-of-sqr-128.8
if -0.3601928303400267 < i < 1.2594309443828245e-10Initial program 57.4
Taylor expanded around 0 57.0
Applied simplify25.4
rmApplied *-un-lft-identity25.4
Applied times-frac25.4
Applied add-cube-cbrt25.4
Applied times-frac25.3
Applied simplify25.3
Applied simplify9.5
if 1.2594309443828245e-10 < i Initial program 33.6
Taylor expanded around inf 28.2
Applied simplify28.1
Time bar (total: 4.1m)Debug logProfile
herbie shell --seed '#(1071246582 2318319007 2683472949 3810440501 3233274817 2724848749)'
(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))))