#6656: [with patch, needs review] fix latex method for laurent series element
------------------------+---------------------------------------------------
 Reporter:  jhpalmieri  |       Owner:  jhpalmieri   
     Type:  defect      |      Status:  new          
 Priority:  minor       |   Milestone:  sage-4.1.1   
Component:  algebra     |    Keywords:               
 Reviewer:              |      Author:  John Palmieri
   Merged:              |  
------------------------+---------------------------------------------------

Comment(by mvngu):

 Before the patch:
 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.1, Release Date: 2009-07-09                         |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: R.<a,b> = PolynomialRing(QQ)
 sage: T.<x> = LaurentSeriesRing(R)
 sage: y = a*x + b*x
 sage: y._latex_()
 'a + bx'
 sage: latex(y)
 a + bx
 }}}
 After the patch:
 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.1.1.rc0, Release Date: 2009-07-29                   |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: R.<a,b> = PolynomialRing(QQ)
 sage: T.<x> = LaurentSeriesRing(R)
 sage: y = a*x + b*x
 sage: y._latex_()
 '\\left(a + b\\right)x'
 sage: latex(y)
 \left(a + b\right)x
 }}}
 Note that one can also obtain the LaTeX representation of an object
 through the `latex()` function. So I'm attaching a patch on top of John's
 that also calls that function. If John is OK with the patch
 `trac_6656-reviewer.patch`, then the ticket has positive review from me.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6656#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to