



Bits error versus i




Bits error versus n
| Original | 46.8 |
|---|---|
| Target | 46.9 |
| Herbie | 17.7 |
if i < -6.855479943427418e+30Initial program 25.2
rmApplied associate-*r/25.2
if -6.855479943427418e+30 < i < 8.496982974491598e-12Initial program 57.0
Taylor expanded around 0 57.2
Applied simplify27.3
rmApplied *-un-lft-identity27.3
Applied times-frac27.3
Applied add-cube-cbrt27.3
Applied times-frac27.2
Applied simplify27.2
Applied simplify11.7
Taylor expanded around 0 11.6
Taylor expanded around 0 11.6
if 8.496982974491598e-12 < i Initial program 33.3
rmApplied div-inv33.4
Applied add-cube-cbrt33.4
Applied times-frac33.4
Applied associate-*r*33.4
Time bar (total: 1.7m)Debug logProfile
herbie shell --seed '#(1071725047 233389029 2036512464 3988615230 2972226563 1111574017)'
(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))))