



Bits error versus i




Bits error versus n
| Original | 50.9 |
|---|---|
| Comparison | 50.4 |
| Herbie | 10.4 |
if i < -0.058764479831025576Initial program 27.7
rmApplied flip3-- 27.7
Applied simplify 27.7
Applied simplify 27.7
if -0.058764479831025576 < i < 4.370354623930509e-12Initial program 61.7
Applied taylor 14.5
Taylor expanded around 0 14.5
Applied taylor 0.0
Taylor expanded around 0 0.0
Applied simplify 0.0
rmApplied add-exp-log 0.0
Applied simplify 0.0
if 4.370354623930509e-12 < i Initial program 32.8
rmApplied div-sub 32.8
Applied simplify 35.7
Time bar (total: 27.7s) Debug logProfile
Please include this information when filing a bug report:
herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (i n)
:name "Compound Interest"
: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))))