On Tuesday, April 18, 2017 at 5:15:12 AM UTC+8, Jens Axel Søgaard wrote: > 2017-04-17 22:56 GMT+02:00 Vincent St-Amour <stam...@eecs.northwestern.edu>: > (For people following along, the issue is that there exists a value `x` > > such that `(= (+ x 1e-17) x)`, and that the iteration reaches that `x` > > as its state at some point, then loops.) > > > > What is the smallest y such that no x exists such that (= (+ x y) x) ?
This depends on how big X is. Since floating point values are stored as doubles, at 2^54, the smallest number you need to add to get a different number is 4; at 2^55, the smallest number you need to add is 8. Putting a lower limit on the step size is not realistic. Alex. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.