>
> You might also note that Sage has some rather sophisticated interval
> arithmetic capabilities:
>
> sage: myinterval= RIF((1,3))
> sage: myinterval
> 2.?
> sage: myinterval.str(style='brackets')
> '[1.0000000000000000 .. 3.0000000000000000]'
> sage: 2.3 in myinterval
> True
> sage: myinterval.intersection(RIF(2,5)).str(style='brackets')
> '[2.0000000000000000 .. 3.0000000000000000]'
> sage: sin(myinterval).str(style='brackets')
> '[0.14112000805986721 .. 1.0000000000000000]'
> sage: (myinterval^2+2*myinterval+2).str(style='brackets')
> '[5.0000000000000000 .. 17.000000000000000]'
>
> also:
>
> sage: RIF((1,oo))
> [1.0000000000000000 .. +infinity]
>
But can you do half-open intervals with that?
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---