


Bits error versus x



Bits error versus n
if (* (+ (* (/ (log x) n) (/ 1/4 (* n x))) (* (/ (/ 1 n) x) (- 1/2 (/ 1/4 x)))) (+ (sqrt (pow x (/ 1 n))) (sqrt (pow (+ 1 x) (/ 1 n))))) < -inf.0Initial program 24.0
rmApplied add-sqr-sqrt24.0
if -inf.0 < (* (+ (* (/ (log x) n) (/ 1/4 (* n x))) (* (/ (/ 1 n) x) (- 1/2 (/ 1/4 x)))) (+ (sqrt (pow x (/ 1 n))) (sqrt (pow (+ 1 x) (/ 1 n))))) < -6.79254651959102e-196 or 7.9932758823026e-68 < (* (+ (* (/ (log x) n) (/ 1/4 (* n x))) (* (/ (/ 1 n) x) (- 1/2 (/ 1/4 x)))) (+ (sqrt (pow x (/ 1 n))) (sqrt (pow (+ 1 x) (/ 1 n))))) < +inf.0Initial program 56.6
Taylor expanded around inf 59.5
Applied simplify11.2
if -6.79254651959102e-196 < (* (+ (* (/ (log x) n) (/ 1/4 (* n x))) (* (/ (/ 1 n) x) (- 1/2 (/ 1/4 x)))) (+ (sqrt (pow x (/ 1 n))) (sqrt (pow (+ 1 x) (/ 1 n))))) < 7.9932758823026e-68Initial program 21.6
rmApplied add-sqr-sqrt21.7
Applied add-sqr-sqrt21.6
Applied difference-of-squares21.6
Taylor expanded around inf 11.1
Applied simplify4.9
if +inf.0 < (* (+ (* (/ (log x) n) (/ 1/4 (* n x))) (* (/ (/ 1 n) x) (- 1/2 (/ 1/4 x)))) (+ (sqrt (pow x (/ 1 n))) (sqrt (pow (+ 1 x) (/ 1 n))))) Initial program 0
rmApplied add-sqr-sqrt0
Time bar (total: 1.7m)Debug logProfile
herbie shell --seed '#(1071948828 1180510430 2986424009 997076509 406109801 420189285)'
(FPCore (x n)
:name "2nthrt (problem 3.4.6)"
(- (pow (+ x 1) (/ 1 n)) (pow x (/ 1 n))))