Ah, I see:

dummy1 = RealField(8)(0.1);dummy1
0.10

dummy2 = RealField(16)(0.1);dummy2
0.1000

latex(x*dummy1)
{0.1001 x}

latex(x*dummy2)
{0.1 x}

This is not quite what one would expect. However, the behaviour before
the fix was not much better in my opinion, as the precision was not
obvious from the latex output, either:

sage: dummy1 = RealField(8)(0.1);dummy1
0.10
sage: dummy2 = RealField(16)(0.1);dummy2
0.1000
sage: latex(x*dummy1)
{0.100100000000000 x}
sage: latex(x*dummy2)
{0.100000000000000 x}

Obviously, the fix does not fix all the problems, but it does make
latex output much more useful. Would you agree?

Stan




On Nov 18, 12:44 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> The side effect is that now real numbers of different precisions all  
> print the same, so I'm not sure that this would be considered a "fix"  
> as the trailing zeros are intentional. There should be print modes  
> that one can set (globally, on the ring, or with contexts).
>
> - Robert
>
> On Nov 17, 2008, at 11:29 PM, Stan Schymanski wrote:
>
>
>
> > Hi Mike,
>
> > This is great, it does exactly what I wanted. Thanks a lot! Are there
> > any potentially undesired side-effects of the changes in real_mpfr.pyx
> > or could this fix be included in future versions of sage?
>
> > Stan
>
> > On Nov 18, 8:14 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> >> Hello,
>
> >> On Mon, Nov 17, 2008 at 11:11 PM, Stan Schymanski  
> >> <[EMAIL PROTECTED]> wrote:
>
> >>> Dear Mike,
>
> >>> Thanks a lot for that, this looks very promising. However, after
> >>> making the suggested change, the behaviour of latex() did not  
> >>> change.
> >>> Do I need to restart sage for the changes to take effect?
>
> >> You need to run "sage -br" to compile the new changes.
>
> >> --Mike
>
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to