On Monday, May 20, 2013 2:40:57 PM UTC+1, vdelecroix wrote:

> mpfi (on which RIF is based) is implemented in such way that you 
> *always* have a good answer.


A good answer, but not the mathematically correct answer for the image of 
the error interval. For example (I'll leave it as an exercise to write a 
similar unstable function with sin and 1/x:

def unstable(x):
    if x == 0.01:
        return 1
    else: 
        return x

sage: unstable( RIF(0.0, 0.0) )    # correct
0
sage: unstable(0.01)
1
sage: unstable( RIF(-0.1, 0.1) )    # interval contains 0.01, so value 
attains 1 on interval
0.?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to