



Bits error versus i




Bits error versus n
| Original | 46.9 |
|---|---|
| Target | 47.1 |
| Herbie | 16.9 |
if i < -917584.4213690867Initial program 27.6
rmApplied flip3--27.6
Applied simplify27.6
Applied simplify27.6
if -917584.4213690867 < i < 1.461246866926758e-11Initial program 57.7
Taylor expanded around 0 57.5
Applied simplify25.6
rmApplied *-un-lft-identity25.6
Applied times-frac25.6
Applied add-cube-cbrt25.6
Applied times-frac25.5
Applied simplify25.5
Applied simplify9.5
Taylor expanded around 0 9.5
if 1.461246866926758e-11 < i Initial program 31.3
rmApplied div-inv31.3
Applied associate-/r*31.3
Time bar (total: 2.0m)Debug logProfile
herbie shell --seed '#(1071979731 1496239409 439705970 2863295848 982327776 189749553)'
(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))))