Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Sage2LaTeX: is it an error?

2 views
Skip to first unread message

adriatikus

unread,
Sep 6, 2010, 5:16:18 AM9/6/10
to sage-support
Hi.

I have the following Sage code:

var('l')
var('r')
x = (r+l)/(r-l)
latex(x)

And the output is:
\frac{-l + r}{l - r}

Shouldn't it be instead
\frac{-(l + r)}{l - r}



Thank you.

Minh Nguyen

unread,
Sep 6, 2010, 5:58:11 AM9/6/10
to sage-s...@googlegroups.com, adriatikus
Hi,

On Mon, Sep 6, 2010 at 7:16 PM, adriatikus <adria...@gmail.com> wrote:
> Shouldn't it be instead
> \frac{-(l + r)}{l - r}

Thank you for your bug report. I can confirm this problem with Sage 4.5.2:

sage: version()
'Sage Version 4.5.2, Release Date: 2010-08-05'
sage: var('l'); var('r');
sage: x = (r+l)/(r-l)
sage: latex(x)


\frac{-l + r}{l - r}

sage: x
-(l + r)/(l - r)

The relevant bug tracking tickets are #9394 [1] and #9834 [2].

[1] http://trac.sagemath.org/sage_trac/ticket/9394

[2] http://trac.sagemath.org/sage_trac/ticket/9834

--
Regards
Minh Van Nguyen

adriatikus

unread,
Sep 6, 2010, 6:10:22 AM9/6/10
to sage-support
Thank you for your reply. It is indeed 4.5.2 (for OSX). The online
version has it too.

On Sep 6, 12:58 pm, Minh Nguyen <nguyenmi...@gmail.com> wrote:
> Hi,
>
Reply all
Reply to author
Forward
0 new messages