On 14 March 2011 14:58, rjf <[email protected]> wrote: > At the risk of pointing out the obvious, there are 2 well known > tests for the closeness of two numbers. > > relative error and absolute error. > > abs( (a-b)/a) is relative error [assume a [or b] is not zero) and > abs( a-b ) is absolute error. > > Defining another error measurement by "how many digits are the same > when you print" > is probably not very useful except if you are doing some kind of > "look at me, let's be friends because we have the same color hair" > test.
I understand that, but the way the doctests work in Sage is quite different. I'm very unimpressed with the way they are implemented personally, but they look for a string, and ignore the significance of that string. Stupid in my opinion, but that's how it is. Dave -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
