



Bits error versus i




Bits error versus n
| Original | 46.5 |
|---|---|
| Target | 46.6 |
| Herbie | 17.0 |
if i < -3.2878578978392e-13Initial program 28.1
rmApplied add-sqr-sqrt29.2
Applied add-cube-cbrt29.2
Applied times-frac29.2
if -3.2878578978392e-13 < i < 5.438449256675861e-09Initial program 57.6
Taylor expanded around 0 57.5
Applied simplify25.2
rmApplied *-un-lft-identity25.2
Applied times-frac25.2
Applied add-cube-cbrt25.2
Applied times-frac25.1
Applied simplify25.1
Applied simplify8.7
Taylor expanded around 0 8.7
if 5.438449256675861e-09 < i < 1.2409059569580941e+265 or 1.6874311066677622e+292 < i Initial program 30.9
rmApplied div-inv30.9
Applied associate-/r*30.9
if 1.2409059569580941e+265 < i < 1.6874311066677622e+292Initial program 33.2
Taylor expanded around 0 63.2
Applied simplify31.4
rmApplied add-cube-cbrt31.4
Applied associate-/l*31.4
Time bar (total: 2.3m)Debug logProfile
herbie shell --seed '#(1071821486 549052472 3784827256 1559736200 3548510075 881134285)'
(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))))