#12524: Elliptic Curve latex method can create new latex commands by accident
----------------------+-----------------------------------------------------
Reporter: was | Owner: jason
Type: defect | Status: new
Priority: minor | Milestone: sage-5.0
Component: misc | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
----------------------+-----------------------------------------------------
Comment(by kcrisman):
This is not a problem about `latex()`.
{{{
sage: var('phi,y')
(phi, y)
sage: phi*y
phi*y
sage: latex(phi*y)
\phi y
}}}
It's a problem in `E.latex()`:
{{{
elif b[2]:
s += "+ %sy "%a[2]
}}}
Umm, yeah. Probably the intended use case is
{{{
sage: L.<z>=NumberField(x^2-x-1)
sage: b = z
sage: F = EllipticCurve([0,0,b,27*b-43,-80*b+128])
sage: latex(F)
y^2 + zy = x^3 + \left(27 z - 43\right)x + \left(-80 z + 128\right)
}}}
So do you think that a one-whitespace change would fix this? (Actually,
there are a few similar places.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12524#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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-trac?hl=en.