Hi Michel,


> I was contemplating discussing something like an interval testing 
> function.  But I also notice that testing something like
>
> 2.3 in [1 .. 3, step = .1]
>
> produces False.

I feel it's about rounding computation :
On my sage I test :

1.0+0.1+0.1+0.1+0.1   # displays 1.4
1.4 == 1.4  # return true, of corse
1.0+0.1+0.1+0.1+0.1  ==1.4 # return false
(1.0+0.1+0.1+0.1+0.1) -1.4 # return 4.4..e-16, very small ! but differ 
from 0.

Computer Algebra with fraction is right...

F. in France

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to