



Bits error versus i




Bits error versus n
| Original | 47.5 |
|---|---|
| Target | 47.2 |
| Herbie | 16.2 |
if (log (+ 1 (* 1/2 i))) < 12.76141262437896Initial program 57.8
Taylor expanded around 0 57.4
Applied simplify25.2
rmApplied *-un-lft-identity25.2
Applied times-frac25.2
Applied add-cube-cbrt25.2
Applied times-frac25.1
Applied simplify9.4
Taylor expanded around 0 9.4
rmApplied add-cube-cbrt9.4
if 12.76141262437896 < (log (+ 1 (* 1/2 i))) < 340.18920259497804 or 700.1159411623439 < (log (+ 1 (* 1/2 i))) Initial program 28.6
rmApplied associate-*r/28.6
if 340.18920259497804 < (log (+ 1 (* 1/2 i))) < 700.1159411623439Initial program 30.5
Taylor expanded around inf 28.4
Applied simplify28.4
Time bar (total: 2.3m)Debug logProfile
herbie shell --seed '#(1070578969 3140398606 632207097 462683394 1189254563 964980650)'
(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))))