



Bits error versus i




Bits error versus n
Results
| Original | 46.9 |
|---|---|
| Target | 46.5 |
| Herbie | 17.2 |
if i < -0.04885614718136047Initial program 27.5
rmApplied add-log-exp27.5
if -0.04885614718136047 < i < 1.3527856789294112e-17Initial program 57.4
Taylor expanded around 0 57.2
Applied simplify25.9
rmApplied *-un-lft-identity25.9
Applied times-frac25.9
Applied add-cube-cbrt25.9
Applied times-frac25.8
Applied simplify25.8
Applied simplify9.6
if 1.3527856789294112e-17 < i Initial program 33.6
Taylor expanded around 0 56.1
Applied simplify40.5
rmApplied add-log-exp33.2
Applied simplify33.0
Time bar (total: 2.0m)Debug logProfile
herbie shell --seed 2018214
(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))))