On Mon, Jul 27, 2009 at 10:48 PM, David Cournapeau < [email protected]> wrote:
> Charles R Harris wrote: > > > > I'd just look at the difference and see if it exceeded some fraction > > of the expected value. There is the problem of zero, which could be > > handled in the usual way as diff < abserr + relerr. I think abserr > > would need to be a new keyword with a default value. Since the relerr > > is specified by digits you probably need 1/10**digits, but there > > should be no problem with that. Really, only a multiplication should > > be needed to determine the precision to x digits. > > Ok, I will have a shot at this. > > > Nan and +/- inf need to be special cased but I haven't thought about > that. > > They are a constant source of frustration. It is like it defies my > brain, and I end up doing very stupid things after working for too long > with nan and inf, especially when complex numbers are involved :) > Yeah, they leave me boggled too. O_o That's why I haven't thought about them... Chuck
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
