[sage-devel] Re: Behavior of solve

2009-09-17 Thread Dirk
iour intended by the SAGE design team?" Dirk --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http:

[sage-devel] Re: Behavior of solve

2009-09-15 Thread Dirk
83732*I), 1; x + (-1.36050567903502 - 1.51880872209965*I), 1; x + (1.33109991787580 - 1.52241655183732*I), 1]x+1+0.*I').factor() Dirk > > Anyway, the reason for this is that the solve routine for multiple > equations in Maxima (which to_poly

[sage-devel] Re: Bug in Rational.__mod__ (and maybe Integer.inverse_mod)

2009-09-15 Thread Dirk
tion is also inconsistent with Python. So change it to n = int(self) return n%d + (self-n) Dirk --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-de

[sage-devel] Bug in Rational.__mod__ (and maybe Integer.inverse_mod)

2009-09-15 Thread Dirk
floor() (except SR) and could appear at a higher level. Dirk --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visi

[sage-devel] Re: Default representation of intervals

2009-09-09 Thread Dirk
On Sep 9, 9:35 pm, Dirk wrote: > Any fixed-point representation is dubious when dealing with bounds > that have no significant digits in common, and nonsensical when they > are not of the same order of magnitude. Maybe automatically revert to > bracket notation as is done for Infi

[sage-devel] Re: Default representation of intervals

2009-09-09 Thread Dirk
Sep 9, 8:29 pm, Jason Grout wrote: > I presume negative numbers would be: > > -3.14? is the interval (-3.15, -3.14] > > Is that what you are thinking? Yes. > > What about intervals that span the origin? What about: sage: z=RIF(-0.001,0.002) sage: z.str(error_digit

[sage-devel] Re: Default representation of intervals

2009-09-09 Thread Dirk
very Pythonic too. Related: if I say "style='brackets'", error_digits is ignored. Why not allow: sage: x.str(error_digits=2,style="brackets") [ 3.1408 .. 3.1429 ] Two error digits might even be the default for brackets. After all, if a number is correct to so

[sage-devel] Re: Default representation of intervals

2009-09-09 Thread Dirk
On Sep 9, 2:42 pm, Jason Grout wrote: > Dirk wrote: > > I do not understand the behaviour below. > > > sage: x=RIF(3+10/71,3+1/7) > > sage: x > > 3.15? > > sage: x.str(style='brackets') > > '[3.1408450704225350 .. 3.1428571428571433]&#x

[sage-devel] Default representation of intervals

2009-09-09 Thread Dirk
I do not understand the behaviour below. sage: x=RIF(3+10/71,3+1/7) sage: x 3.15? sage: x.str(style='brackets') '[3.1408450704225350 .. 3.1428571428571433]' Both endpoints start with 3.14, both endpoints round to 3.14. Surely the display should rath

[sage-devel] Re: base_ring()

2009-09-03 Thread Dirk
1.+sqrt(-1) sage: base_ring(z) Symbolic Ring sage: base_ring(real(z)) Symbolic Ring sage: base_ring(imag(z)) Real Field with 53 bits of precision Dirk --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this g