



Bits error versus i




Bits error versus n
| Original | 46.9 |
|---|---|
| Target | 46.8 |
| Herbie | 16.6 |
if i < -0.48234294450906656Initial program 26.3
rmApplied add-cube-cbrt26.5
Applied associate-*r*26.5
if -0.48234294450906656 < i < 6.611841488837997e-10Initial program 57.7
Taylor expanded around 0 57.4
Applied simplify25.1
rmApplied *-un-lft-identity25.1
Applied times-frac25.1
Applied add-cube-cbrt25.1
Applied times-frac25.0
Applied simplify9.2
Taylor expanded around 0 9.2
Taylor expanded around 0 9.2
if 6.611841488837997e-10 < i Initial program 32.7
rmApplied flip3--32.7
Applied associate-/l/32.7
Applied simplify32.7
Time bar (total: 1.9m)Debug logProfile
herbie shell --seed '#(1070833653 108281690 3330367898 3632331308 3494323072 43156186)'
(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))))