



Bits error versus i




Bits error versus n
| Original | 47.1 |
|---|---|
| Target | 47.2 |
| Herbie | 16.8 |
if i < -2.9146089246648186e-15Initial program 29.1
rmApplied add-log-exp29.1
if -2.9146089246648186e-15 < i < 1.0705047652668554e-10Initial program 57.6
Taylor expanded around 0 57.6
Applied simplify25.2
rmApplied *-un-lft-identity25.2
Applied *-un-lft-identity25.2
Applied times-frac25.2
Applied simplify25.2
Applied simplify8.4
if 1.0705047652668554e-10 < i < 1.0030492396149698e+214Initial program 31.9
rmApplied div-inv31.9
Applied add-cube-cbrt31.9
Applied times-frac31.9
Applied associate-*r*31.9
if 1.0030492396149698e+214 < i Initial program 30.9
Taylor expanded around inf 33.2
pow expressions.Time bar (total: 2.9m)Debug logProfile
herbie shell --seed '#(1063185673 2139736501 2393378123 1907444849 1070993796 1007244912)'
(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))))