[sympy] Fix long arrows in Unicode pretty printing. (#1440)

2012-07-24 Thread Sergiu Ivanov
-- * Fix long arrows in Unicode pretty printing of category theoretic classes. -- File Changes -- M sympy/printing/pretty/pretty.py (4) M sympy/printing/pretty/tests/test_pretty.py (16) -- Patch Links -- https://github.com/sympy/sympy/pull/1440.patch https://github.com/sympy/sympy/pull/1440

[sympy] Tr printing, Tr partial trace (#1396)

2012-07-02 Thread Guru Devanla
This PR implements printing operations for Tr operators and partial trace operations. Also cycle permutes are fixed for consistency. Some changes added to Density class to enable partial trace operations. Also, new set of Notebook examples have been provided. @ellisonbg , @flacjacket, could

[sympy] Tr printing, Tr partial trace (#1396)

2012-07-01 Thread Guru Devanla
This PR implements printing operations for Tr operators and partial trace operations. Also cycle permutes are fixed for consistency. Some changes added to Density class to enable partial trace operations. Also, new set of Notebook examples have been provided. You can merge this Pull Request by

Re: Issue 2101 in sympy: latex printing with piecewise function : reversed expr and cond

2012-04-02 Thread sympy
Updates: Status: Fixed Comment #6 on issue 2101 by ness...@gmail.com: latex printing with piecewise function : reversed expr and cond http://code.google.com/p/sympy/issues/detail?id=2101 Fixed: https://github.com/sympy/sympy/pull/1174 -- You received this message because you are

Re: Issue 3183 in sympy: MatMul latex printer not printing integer factors

2012-03-26 Thread sympy
Updates: Status: Fixed Comment #3 on issue 3183 by smi...@gmail.com: MatMul latex printer not printing integer factors http://code.google.com/p/sympy/issues/detail?id=3183 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google

Re: Issue 3183 in sympy: MatMul latex printer not printing integer factors

2012-03-23 Thread sympy
Updates: Status: Started Labels: NeedsReview Comment #2 on issue 3183 by julien.r...@gmail.com: MatMul latex printer not printing integer factors http://code.google.com/p/sympy/issues/detail?id=3183 https://github.com/sympy/sympy/pull/1166 -- You received this message

Re: Issue 3088 in sympy: printing of 0 with low precision leaves off leading digit (and exponent)

2012-02-20 Thread sympy
Updates: Status: Fixed Comment #2 on issue 3088 by smi...@gmail.com: printing of 0 with low precision leaves off leading digit (and exponent) http://code.google.com/p/sympy/issues/detail?id=3088 (No comment was entered for this change.) -- You received this message because you are

Re: Issue 3088 in sympy: printing of 0 with low precision leaves off leading digit (and exponent)

2012-02-20 Thread sympy
Updates: Labels: NeedsReview smichr Comment #1 on issue 3088 by smi...@gmail.com: printing of 0 with low precision leaves off leading digit (and exponent) http://code.google.com/p/sympy/issues/detail?id=3088 fixed in https://github.com/sympy/sympy/pull/1064 -- You received this

Re: Issue 1541 in sympy: Latex Print issue with printing min_, max_

2012-02-17 Thread sympy
Updates: Status: Fixed Comment #3 on issue 1541 by asmeu...@gmail.com: Latex Print issue with printing min_, max_ http://code.google.com/p/sympy/issues/detail?id=1541 This was merged. -- You received this message because you are subscribed to the Google Groups "sympy-patches&q

Re: Issue 3026 in sympy: Latex printing test failure in master

2012-01-24 Thread sympy
Updates: Status: Fixed Comment #3 on issue 3026 by smi...@gmail.com: Latex printing test failure in master http://code.google.com/p/sympy/issues/detail?id=3026 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups

Re: Issue 3026 in sympy: Latex printing test failure in master

2012-01-24 Thread sympy
Updates: Labels: NeedsReview smichr Comment #2 on issue 3026 by smi...@gmail.com: Latex printing test failure in master http://code.google.com/p/sympy/issues/detail?id=3026 https://github.com/smichr/sympy/pull/new/3026 -- You received this message because you are subscribed to the

Re: Issue 2101 in sympy: latex printing with piecewise function : reversed expr and cond

2012-01-22 Thread sympy
Comment #4 on issue 2101 by asmeu...@gmail.com: latex printing with piecewise function : reversed expr and cond http://code.google.com/p/sympy/issues/detail?id=2101 Right. I may have actually forgotten to convert the \\ into \. -- You received this message because you are subscribed to the

Re: Issue 2101 in sympy: latex printing with piecewise function : reversed expr and cond

2012-01-21 Thread sympy
Comment #3 on issue 2101 by sean.v@gmail.com: latex printing with piecewise function : reversed expr and cond http://code.google.com/p/sympy/issues/detail?id=2101 See https://github.com/sympy/sympy/pull/1009 Aaron, what was posted here should have been right, I think you need to

Re: Issue 1541 in sympy: Latex Print issue with printing min_, max_

2012-01-14 Thread sympy
Updates: Labels: NeedsReview Comment #2 on issue 1541 by pr...@goodok.ru: Latex Print issue with printing min_, max_ http://code.google.com/p/sympy/issues/detail?id=1541 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google

Re: Issue 2901 in sympy: printing unevaluate Mul doesn't show power

2011-12-30 Thread sympy
Updates: Status: Fixed Comment #3 on issue 2901 by smi...@gmail.com: printing unevaluate Mul doesn't show power http://code.google.com/p/sympy/issues/detail?id=2901 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google G

Re: Issue 2929 in sympy: unevaluated expression printing

2011-12-30 Thread sympy
Updates: Status: Fixed Comment #3 on issue 2929 by smi...@gmail.com: unevaluated expression printing http://code.google.com/p/sympy/issues/detail?id=2929 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups "

Re: Issue 2929 in sympy: unevaluated expression printing

2011-12-19 Thread sympy
Updates: Labels: NeedsReview smichr Comment #2 on issue 2929 by smi...@gmail.com: unevaluated expression printing http://code.google.com/p/sympy/issues/detail?id=2929 This is fixed in https://github.com/sympy/sympy/pull/828 -- You received this message because you are subscribed to

Re: Issue 2901 in sympy: printing unevaluate Mul doesn't show power

2011-12-07 Thread sympy
Updates: Labels: NeedsReview smichr Comment #2 on issue 2901 by smi...@gmail.com: printing unevaluate Mul doesn't show power http://code.google.com/p/sympy/issues/detail?id=2901 please see https://github.com/sympy/sympy/pull/828 -- You received this message because yo

Re: Issue 1362 in sympy: Expand support for printing derivatives

2011-12-05 Thread sympy
Comment #12 on issue 1362 by ondrej.c...@gmail.com: Expand support for printing derivatives http://code.google.com/p/sympy/issues/detail?id=1362 Let's just apply the patch, and be done with this issue. My only comment is to document what the new option is doing. -- You received

Re: Issue 2653 in sympy: pretty printing an empty matrix is broken

2011-11-24 Thread sympy
Updates: Status: Fixed Comment #2 on issue 2653 by asmeu...@gmail.com: pretty printing an empty matrix is broken http://code.google.com/p/sympy/issues/detail?id=2653 This was fixed. -- You received this message because you are subscribed to the Google Groups "sympy-patches&q

Re: Issue 1362 in sympy: Expand support for printing derivatives

2011-11-15 Thread sympy
Updates: Labels: -Milestone-Release0.7.2 Comment #11 on issue 1362 by asmeu...@gmail.com: Expand support for printing derivatives http://code.google.com/p/sympy/issues/detail?id=1362 (No comment was entered for this change.) -- You received this message because you are subscribed to

Re: Issue 2653 in sympy: pretty printing an empty matrix is broken

2011-10-17 Thread sympy
Updates: Labels: NeedsReview smichr Comment #1 on issue 2653 by smi...@gmail.com: pretty printing an empty matrix is broken http://code.google.com/p/sympy/issues/detail?id=2653 https://github.com/sympy/sympy/pull/666 -- You received this message because you are subscribed to the

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-08-12 Thread sympy
Comment #10 on issue 1457 by matt...@gmail.com: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 I know, but I had to comment on fixes of a few of those issues. -- You received this message because you are subscribed to the Google Groups "sympy-patches&q

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-08-12 Thread sympy
Comment #9 on issue 1457 by asmeurer: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 I might note that since you have administrative privileges in the issue tracker, you can do bulk editing. This makes it easier to close a bunch of issues. Just search

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-08-12 Thread sympy
Updates: Status: Fixed Owner: --- Labels: -NeedsReview PassedReview Comment #8 on issue 1457 by matt...@gmail.com: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 (No comment was entered for this change.) -- You received this message

Re: Issue 2604 in sympy: Pretty printing of Meijer-G

2011-07-25 Thread sympy
Updates: Status: Fixed Labels: PassedReview Comment #3 on issue 2604 by matt...@gmail.com: Pretty printing of Meijer-G http://code.google.com/p/sympy/issues/detail?id=2604 This was fixed in 7f79c87f24ce36f8181228d277b62300a525d985. -- You received this message because you are

Re: Issue 2188 in sympy: Fix printing of CNOT gates

2011-06-26 Thread sympy
Updates: Status: Fixed Labels: -NeedsReview PassedReview Comment #4 on issue 2188 by Vinzent.Steinberg: Fix printing of CNOT gates http://code.google.com/p/sympy/issues/detail?id=2188 Thanks. -- You received this message because you are subscribed to the Google Groups "

Re: Issue 2188 in sympy: Fix printing of CNOT gates

2011-06-26 Thread sympy
Comment #3 on issue 2188 by sean.v@gmail.com: Fix printing of CNOT gates http://code.google.com/p/sympy/issues/detail?id=2188 This has been merged, this can be closed. -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to

Re: Issue 2251 in sympy: quantum.spin.J?Ket ambiguous printing

2011-06-25 Thread sympy
Comment #3 on issue 2251 by krastano...@gmail.com: quantum.spin.J?Ket ambiguous printing http://code.google.com/p/sympy/issues/detail?id=2251 The commit in the previous comment is closed as the approach is bad. -- You received this message because you are subscribed to the Google Groups

Re: Issue 2425 in sympy: Pretty printing bug

2011-05-26 Thread sympy
Updates: Status: Fixed Comment #7 on issue 2425 by smi...@gmail.com: Pretty printing bug http://code.google.com/p/sympy/issues/detail?id=2425 thanks, it's in. -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To pos

Re: Issue 2425 in sympy: Pretty printing bug

2011-05-25 Thread sympy
Updates: Labels: NeedsReview asmeurer Comment #6 on issue 2425 by asmeurer: Pretty printing bug http://code.google.com/p/sympy/issues/detail?id=2425 It comes from (oo**(2 - x)).as_base_exp() returning (0, x - 2). This is because it checks if the base is Rational and flips it if it is

Re: Issue 2354 in sympy: Put all printing orderings in one central location

2011-05-23 Thread sympy
Issue 2354: Put all printing orderings in one central location http://code.google.com/p/sympy/issues/detail?id=2354 This issue is no longer blocking issue 1491. See http://code.google.com/p/sympy/issues/detail?id=1491 -- You received this message because you are listed in the owner or CC fields

Re: Issue 2354 in sympy: Put all printing orderings in one central location

2011-05-23 Thread sympy
Updates: Summary: Put all printing orderings in one central location Labels: -Milestone-Release0.7.0 -NeedsReview PassedReview Comment #8 on issue 2354 by asmeurer: Put all printing orderings in one central location http://code.google.com/p/sympy/issues/detail?id=2354 This

Re: Issue 1491 in sympy: Use nice ordering in printing

2011-05-21 Thread sympy
Updates: Labels: -Priority-High Priority-Critical NeedsReview Comment #27 on issue 1491 by matt...@gmail.com: Use nice ordering in printing http://code.google.com/p/sympy/issues/detail?id=1491 Pull request is here: https://github.com/sympy/sympy/pull/344 -- You received this message

Re: Issue 2373 in sympy: typo in printing/latex.py

2011-05-18 Thread sympy
Updates: Status: Fixed Labels: -NeedsReview PassedReview Comment #3 on issue 2373 by asmeurer: typo in printing/latex.py http://code.google.com/p/sympy/issues/detail?id=2373 This as pushed in. -- You received this message because you are subscribed to the Google Groups "

Re: Issue 2373 in sympy: typo in printing/latex.py

2011-05-14 Thread sympy
Updates: Status: Started Comment #2 on issue 2373 by asmeurer: typo in printing/latex.py http://code.google.com/p/sympy/issues/detail?id=2373 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups "sympy-patches&q

Re: Issue 2373 in sympy: typo in printing/latex.py

2011-05-14 Thread sympy
Updates: Status: Accepted Labels: Printing WrongResult NeedsReview asmeurer Comment #1 on issue 2373 by asmeurer: typo in printing/latex.py http://code.google.com/p/sympy/issues/detail?id=2373 Thanks for the report. I have fixed it. See https://github.com/sympy/sympy/pull/309

Re: Issue 1988 in sympy: Fix printing of matrices with 0 rows or columns

2011-05-03 Thread sympy
Updates: Status: Fixed Comment #8 on issue 1988 by asmeurer: Fix printing of matrices with 0 rows or columns http://code.google.com/p/sympy/issues/detail?id=1988 This was pushed in. -- You received this message because you are subscribed to the Google Groups "sympy-patches&q

Re: Issue 1491 in sympy: implement ordering in printing

2011-04-29 Thread sympy
Comment #14 on issue 1491 by asmeurer: implement ordering in printing http://code.google.com/p/sympy/issues/detail?id=1491 I think we should change the default order in isympy to lex. -- You received this message because you are subscribed to the Google Groups "sympy-patches" grou

Re: Issue 1491 in sympy: implement ordering in printing

2011-04-29 Thread sympy
Updates: Status: Fixed Labels: -NeedsReview PassedReview Comment #13 on issue 1491 by matt...@gmail.com: implement ordering in printing http://code.google.com/p/sympy/issues/detail?id=1491 All this is now in master. By default old ordering is used. If you want to use proper

Re: Issue 2251 in sympy: quantum.spin.J?Ket ambiguous printing

2011-04-11 Thread sympy
Updates: Labels: NeedsReview krastanov.stefan Comment #2 on issue 2251 by asmeurer: quantum.spin.J?Ket ambiguous printing http://code.google.com/p/sympy/issues/detail?id=2251 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google

Re: Issue 1491 in sympy: implement ordering in printing

2011-04-06 Thread sympy
Updates: Status: Started Owner: matt...@gmail.com Labels: Milestone-Release0.7.0 NeedsReview Comment #12 on issue 1491 by matt...@gmail.com: implement ordering in printing http://code.google.com/p/sympy/issues/detail?id=1491 This issue has be fixed in full generality

Re: Issue 2188 in sympy: Fix printing of CNOT gates

2011-03-26 Thread sympy
Updates: Labels: NeedsReview sean.v.775 Comment #2 on issue 2188 by asmeurer: Fix printing of CNOT gates http://code.google.com/p/sympy/issues/detail?id=2188 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups "

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-02-20 Thread sympy
Comment #7 on issue 1457 by smi...@gmail.com: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 feel free to use/modify the branch prettyO at smichr github which makes this change. -- You received this message because you are subscribed to the Google Groups

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-02-20 Thread sympy
Comment #6 on issue 1457 by smi...@gmail.com: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 The line containing `self._print(e.args[0])` should be re-written as `self._print(e.expr)` so if O's arguments get changed this will still work. Otherwise

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-02-20 Thread sympy
Updates: Labels: -NeedsBetterPatch NeedsReview Comment #5 on issue 1457 by asmeurer: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-02-20 Thread sympy
Comment #4 on issue 1457 by astronom...@gmail.com: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 Sure, sorry about that. Attachments: 0001-Big-O-pretty-print-tests-added.patch 2.3 KB -- You received this message because you are subscribed to the

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-02-20 Thread sympy
Updates: Labels: -NeedsReview NeedsBetterPatch Comment #3 on issue 1457 by asmeurer: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 Can you add a test? -- You received this message because you are subscribed to the Google Groups "sympy-patches&q

Re: Issue 1457 in sympy: Pretty printing inside big O

2011-02-20 Thread sympy
Updates: Status: Started Labels: Series NeedsReview AstronomicalCuriosity Comment #2 on issue 1457 by asmeurer: Pretty printing inside big O http://code.google.com/p/sympy/issues/detail?id=1457 (No comment was entered for this change.) -- You received this message because you

Re: Issue 1362 in sympy: Expand support for printing derivatives

2011-01-06 Thread sympy
Updates: Labels: -Milestone-Release0.7.0 Milestone-Release0.7.1 Comment #9 on issue 1362 by asmeurer: Expand support for printing derivatives http://code.google.com/p/sympy/issues/detail?id=1362 (No comment was entered for this change.) -- You received this message because you are

Re: Issue 1642 in sympy: decorators in functions/special/polynomials.py prevent printing in Mul.flatten (and others)

2011-01-06 Thread sympy
Updates: Status: Duplicate Mergedinto: 1154 Comment #6 on issue 1642 by asmeurer: decorators in functions/special/polynomials.py prevent printing in Mul.flatten (and others) http://code.google.com/p/sympy/issues/detail?id=1642 This was actually a duplicate of issue 1154

Re: Issue 2101 in sympy: latex printing with piecewise function : reversed expr and cond

2010-11-15 Thread sympy
Comment #2 on issue 2101 by Maurice.Bremond: latex printing with piecewise function : reversed expr and cond http://code.google.com/p/sympy/issues/detail?id=2101 If I try compiling \\begin{cases} x & \\text{for}\\: x < 0 0 & \\text{for}\\: 0 \\leq x \\end{cases}, I get

Re: Issue 2101 in sympy: latex printing with piecewise function : reversed expr and cond

2010-11-12 Thread sympy
Updates: Status: Accepted Labels: NeedsBetterPatch Maurice.Bremond Printing Comment #1 on issue 2101 by asmeurer: latex printing with piecewise function : reversed expr and cond http://code.google.com/p/sympy/issues/detail?id=2101 If I try compiling \\begin{cases} x & \\

Re: Fixed all but one audit warnings in printing

2010-03-21 Thread Aaron S. Meurer
;> wrote: >>> Hi, >>> >>> There is one warning remaining about a method in the pretty printing code >>> that does not seem to be used anymore. I'm not sure how to handle it. The >>> rest was trivial to fix. >> The patch looks ok to me. I&

Re: Fixed all but one audit warnings in printing

2010-03-21 Thread Toon Verstraelen
Ondrej Certik wrote: On Fri, Mar 19, 2010 at 11:36 PM, Toon Verstraelen wrote: Hi, There is one warning remaining about a method in the pretty printing code that does not seem to be used anymore. I'm not sure how to handle it. The rest was trivial to fix. The patch looks ok to me. I&#

Re: Fixed all but one audit warnings in printing

2010-03-20 Thread Ondrej Certik
On Fri, Mar 19, 2010 at 11:36 PM, Toon Verstraelen wrote: > Hi, > > There is one warning remaining about a method in the pretty printing code > that does not seem to be used anymore. I'm not sure how to handle it. The > rest was trivial to fix. The patch looks ok to me. I&#x

Fixed all but one audit warnings in printing

2010-03-19 Thread Toon Verstraelen
Hi, There is one warning remaining about a method in the pretty printing code that does not seem to be used anymore. I'm not sure how to handle it. The rest was trivial to fix. The audit also revealed a bug in mathml. It is fixed in this patch and a corresponding test is added. Aud

Re: latex matrix printing

2009-06-25 Thread Ondrej Certik
On Thu, Jun 25, 2009 at 10:41 AM, Vinzent Steinberg wrote: > 2009/6/25 Ryan Krauss >> >> OK, so I think my github branch latex_matrix contains a decent solution. >> Basically, in the LatexPrinter __init__ method, if the incoming profile is >> not None and it has inline=False, then I modify the de

Re: latex matrix printing

2009-06-25 Thread Vinzent Steinberg
2009/6/25 Ryan Krauss > OK, so I think my github branch latex_matrix contains a decent solution. > Basically, in the LatexPrinter __init__ method, if the incoming profile is > not None and it has inline=False, then I modify the default _settings before > updating from the profile. This allows di

Re: latex matrix printing

2009-06-24 Thread Ryan Krauss
OK, so I think my github branch latex_matrix contains a decent solution. Basically, in the LatexPrinter __init__ method, if the incoming profile is not None and it has inline=False, then I modify the default _settings before updating from the profile. This allows different default values for mat_s

Re: latex matrix printing

2009-06-24 Thread Ryan Krauss
I think I have a plan. Basically, I want two sets of defaults, one for inline=True and one for inline=False. I think I can handle it without making it too messy. Standby for updated branch push. On Wed, Jun 24, 2009 at 2:25 PM, Ondrej Certik wrote: > > On Wed, Jun 24, 2009 at 1:24 PM, Ryan Kr

Re: latex matrix printing

2009-06-24 Thread Ondrej Certik
On Wed, Jun 24, 2009 at 1:24 PM, Ryan Krauss wrote: > They work fine.  The issue is that I think the defaults should be different > with inline=False.  I don't think that this > '\\begin{equation*}\\left(\\begin{smallmatrix}1 + x & yy & -1 + >   x\\end{smallmatrix}\\right)\\end{equation*}' > i

Re: latex matrix printing

2009-06-24 Thread Ryan Krauss
They work fine. The issue is that I think the defaults should be different with inline=False. I don't think that this '\\begin{equation*}\\left(\\begin{smallmatrix}1 + x & yy & -1 + x\\end{smallmatrix}\\right)\\end{equation*}' is useful Latex. I would not typically want to use smallmatrix

Re: latex matrix printing

2009-06-24 Thread Ondrej Certik
On Wed, Jun 24, 2009 at 12:37 PM, Ryan Krauss wrote: > I have added a feature to allow latex users to specify the matrix type and > delimitter in _print_Matrix.  It is in this branch: > git://github.com/ryanGT/sympy.git > > The approach works for me, but it is no longer as clean to switch from > i

latex matrix printing

2009-06-24 Thread Ryan Krauss
I have added a feature to allow latex users to specify the matrix type and delimitter in _print_Matrix. It is in this branch: git://github.com/ryanGT/sympy.git The approach works for me, but it is no longer as clean to switch from inline=True to inline=False. These options still work, but inline

Re: [PATCH] latex printing: added sorting _print_Add output by the exponents of a main variable mainvar with the option of also printing in descending order of exponents. Both these options are impl

2009-06-03 Thread Ryan Krauss
Here is another non-automated test On Wed, Jun 3, 2009 at 2:34 PM, Ryan Krauss wrote: > [PATCH] latex printing: added sorting _print_Add output by the > exponents of a main variable mainvar with the option of also printing > in descending order of exponents. Both these op

[PATCH] latex printing: added sorting _print_Add output by the exponents of a main variable mainvar with the option of also printing in descending order of exponents. Both these options are implemen

2009-06-03 Thread Ryan Krauss
[PATCH] latex printing: added sorting _print_Add output by the exponents of a main variable mainvar with the option of also printing in descending order of exponents. Both these options are implemented via _settings profile options --~--~-~--~~~---~--~~ You

Re: mathml: fixed printing of inverse trig functions, complex numbers, pi

2009-05-09 Thread Ondrej Certik
I;.  The issue is that I can only run > unescape after toxml() or to toprettyxml() is run on it.  Since the > printing is recursive I have to maintain DOM nodes until the entire > expression is printed. > > I'll work on adding some tests and submit a new patch.  I have done >

Re: mathml: fixed printing of inverse trig functions, complex numbers, pi

2009-05-09 Thread TSidoti
Okay, I don't think its possible to do it that way, I put it there so I could create the text node with 'ⅈ' in it. Without the unescape I get &ImaginaryI;. The issue is that I can only run unescape after toxml() or to toprettyxml() is run on it. Since the printing is

Re: [PATCH 1/1] mathml: fixed printing of inverse trig functions, complex numbers, pi

2009-05-09 Thread Fabian Pedregosa
11875ad03ac1e7f3315d5 Mon Sep 17 00:00:00 2001 >> From: Thomas Sidoti >> Date: Wed, 22 Apr 2009 00:06:52 -0400 >> Subject: [PATCH 1/1] mathml: fixed printing of inverse trig functions, >> complex numbers, pi >> --- >> sympy/printing/mathml.py | 41 +++

Re: [PATCH 1/1] mathml: fixed printing of inverse trig functions, complex numbers, pi

2009-05-08 Thread Ondrej Certik
Date: Wed, 22 Apr 2009 00:06:52 -0400 > Subject: [PATCH 1/1] mathml: fixed printing of inverse trig functions, > complex numbers, pi > --- >  sympy/printing/mathml.py |   41 - >  1 files changed, 36 insertions(+), 5 deletions(-) > diff --

[PATCH 1/1] mathml: fixed printing of inverse trig functions, complex numbers, pi

2009-05-07 Thread Thomas Sidoti
>From cd4af400b0793352fd311875ad03ac1e7f3315d5 Mon Sep 17 00:00:00 2001 From: Thomas Sidoti Date: Wed, 22 Apr 2009 00:06:52 -0400 Subject: [PATCH 1/1] mathml: fixed printing of inverse trig functions, complex numbers, pi --- sympy/printing/mathml.py |

Re: [PATCH 1/1] This fixes issue 1329. Also: printing for math constants

2009-04-09 Thread Fabian Seoane
at (git commit --amend) and I'll push in the patch. > > Cheers, > Tomek > > 2009/4/8 Fabian Seoane : >> looks good, but please put a little description on what issue 1329 was >> about, so we don't have to go to the issue tracker to understand the patch.

Re: [PATCH 1/1] This fixes issue 1329. Also: printing for math constants

2009-04-08 Thread Tomek B
description on what issue 1329 was > about, so we don't have to go to the issue tracker to understand the patch. > > Tomasz Buchert wrote: >> --- >>  sympy/printing/ccode.py            |   21 + >>  sympy/printing/tests/test_ccode.py |   27 +++

Re: [PATCH 1/1] This fixes issue 1329. Also: printing for math constants

2009-04-08 Thread Fabian Seoane
looks good, but please put a little description on what issue 1329 was about, so we don't have to go to the issue tracker to understand the patch. Tomasz Buchert wrote: > --- > sympy/printing/ccode.py| 21 +---- > sympy/printing/tests/test_c

[PATCH 1/1] This fixes issue 1329. Also: printing for math constants

2009-04-07 Thread Tomasz Buchert
--- sympy/printing/ccode.py| 21 + sympy/printing/tests/test_ccode.py | 27 ++- 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/sympy/printing/ccode.py b/sympy/printing/ccode.py index e62786e..a1341b5 100644 --- a/sympy

Re: [PATCH] Add support for printing tuples with the mathml backend

2009-02-03 Thread Ondrej Certik
+1 thanks On Tue, Feb 3, 2009 at 4:06 PM, wrote: > > From: Fabian Seoane > > --- > sympy/printing/mathml.py| 20 ++++ > sympy/printing/tests/test_mathml.py | 14 +- > 2 files changed, 33 insertions(+), 1 deletions(-) > >

[PATCH] Add support for printing tuples with the mathml backend

2009-02-03 Thread fabian . seoane
From: Fabian Seoane --- sympy/printing/mathml.py| 20 sympy/printing/tests/test_mathml.py | 14 +- 2 files changed, 33 insertions(+), 1 deletions(-) diff --git a/sympy/printing/mathml.py b/sympy/printing/mathml.py index ec6c88c..ddae019 100644

Re: [PATCH] Fixes print_gtk example and mathml printing for Limits and Integrals (issue 793).

2008-12-09 Thread Ondrej Certik
+1, thanks! On Mon, Dec 8, 2008 at 10:18 PM, <[EMAIL PROTECTED]> wrote: > > From: Andy R. Terrel <[EMAIL PROTECTED]> > > --- > examples/all.py |2 +- > examples/intermediate/print_gtk.py | 11 +++ > sympy/pri

Re: Fixes print_gtk example and mathml printing for Limits and Integrals (issue 793).

2008-12-08 Thread Andy R. Terrel
Actually it fixes issue 763. =D -- Andy On Dec 8, 3:18 pm, [EMAIL PROTECTED] wrote: > From: Andy R. Terrel <[EMAIL PROTECTED]> > > --- >  examples/all.py                     |    2 +- >  examples/intermediate/print_gtk.py  |   11 +++---- >  sympy/printing/mat

[PATCH] Fixes print_gtk example and mathml printing for Limits and Integrals (issue 793).

2008-12-08 Thread andy . terrel
From: Andy R. Terrel <[EMAIL PROTECTED]> --- examples/all.py |2 +- examples/intermediate/print_gtk.py | 11 +++ sympy/printing/mathml.py| 48 +++--- sympy/printing/tests/test_mathml.py | 18 4 files c

[PATCH] Removed Polynomial from printing tests

2008-11-23 Thread Mateusz Paprocki
--- sympy/printing/tests/test_repr.py |6 +- sympy/printing/tests/test_str.py |6 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/sympy/printing/tests/test_repr.py b/sympy/printing/tests/test_repr.py index 897726e..71f7788 100644 --- a/sympy/printing/tests

Re: Updates ccode printing module according to new printer paradigm.

2008-11-20 Thread Andy R. Terrel
gt; On Thu, Nov 20, 2008 at 12:46 AM, Fabian Seoane <[EMAIL PROTECTED]> > > wrote: > > > > [EMAIL PROTECTED] escribió: > > >> From: Andy R. Terrel <[EMAIL PROTECTED]> > > > >> --- > > >>  sympy/printing/ccode.py            |

Re: [PATCH] Updates ccode printing module according to new printer paradigm.

2008-11-20 Thread Fabian Seoane
2008/11/20 Andy Ray Terrel <[EMAIL PROTECTED]> > > On Thu, Nov 20, 2008 at 12:46 AM, Fabian Seoane <[EMAIL PROTECTED]> > wrote: > > > > [EMAIL PROTECTED] escribió: > >> From: Andy R. Terrel <[EMAIL PROTECTED]> > >> > >> --- >

Re: [PATCH] Updates ccode printing module according to new printer paradigm.

2008-11-20 Thread Andy Ray Terrel
On Thu, Nov 20, 2008 at 12:46 AM, Fabian Seoane <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] escribió: >> From: Andy R. Terrel <[EMAIL PROTECTED]> >> >> --- >> sympy/printing/ccode.py|1 + >> sympy/printing/tests/test_ccode.py |

Re: [PATCH] Updates ccode printing module according to new printer paradigm.

2008-11-19 Thread Fabian Seoane
[EMAIL PROTECTED] escribió: > From: Andy R. Terrel <[EMAIL PROTECTED]> > > --- > sympy/printing/ccode.py|1 + > sympy/printing/tests/test_ccode.py |8 +++- > 2 files changed, 8 insertions(+), 1 deletions(-) > > diff --git a/sympy/prin

[PATCH] Updates ccode printing module according to new printer paradigm.

2008-11-19 Thread andy . terrel
From: Andy R. Terrel <[EMAIL PROTECTED]> --- sympy/printing/ccode.py|1 + sympy/printing/tests/test_ccode.py |8 +++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/sympy/printing/ccode.py b/sympy/printing/ccode.py index e0ef78b..e62786e 100644

[PATCH 03/10] tests: more py.test like traceback printing.

2008-11-09 Thread Ondrej Certik
This affects both exceptions and failures. Now it looks almost identical. The only difference is that we use the standard Python tracaback, but all the "___" lines and the overall feelling should be like with py.test now. --- sympy/utilities/runtests.py | 40 +++-

Re: printing

2008-11-07 Thread Sebastian
Ondrej Certik wrote: >>> +Tries the followingc concepts to print an expression: >>> >> typ0: followingc -> following >> > > > Thanks for noticing. Fixed. > > The printing2.patch is in as well. > > Ondrej > > > > Thanks for pushing it in and thanks for the correction! Sebast

Re: printing

2008-11-06 Thread Ondrej Certik
>> +Tries the followingc concepts to print an expression: > > typ0: followingc -> following Thanks for noticing. Fixed. The printing2.patch is in as well. Ondrej --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: printing

2008-11-06 Thread Andy Ray Terrel
hread/thread/2927bac0810029a0 > , it would be preferable if user could define printing methods for their > own classes without having to patch the printer. > A patch is attached, that implements this proposal in the following way: > Every printer can define a name under Printer.printmethod that will be

Re: printing

2008-11-06 Thread Ondrej Certik
Oops, sorry. It's +1. Please push it in. Ondrej On Thu, Nov 6, 2008 at 7:00 PM, basti <[EMAIL PROTECTED]> wrote: > > Could someone review this patch? It's not really urgent, but I don't > want it to get forgotten. > > Sebastian > > > --~--~-~--~~~---~--~~ You rec

Re: printing

2008-11-06 Thread basti
Could someone review this patch? It's not really urgent, but I don't want it to get forgotten. Sebastian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sym

Re: printing

2008-11-04 Thread Sebastian
901 28800 # Node ID 4f01998b11897f4ba4a71d9c91948ee3122118ca # Parent aaaf53f1c529be7498746e419e1447be3d634931 Rename printmethods from double to single underscore. diff -r aaaf53f1c529 -r 4f01998b1189 sympy/printing/latex.py --- a/sympy/printing/latex.py Tue Nov 04 18:04:02 2008 -0800 +++

Re: printing

2008-11-04 Thread Ondrej Certik
On Tue, Nov 4, 2008 at 11:14 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Tue, Nov 4, 2008 at 11:07 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> On Tue, Nov 4, 2008 at 8:08 PM, Brian Granger <[EMAIL PROTECTED]> wrote: >>> >>> One issue with the choice of method names like __latex__. Name

Re: printing

2008-11-04 Thread Ondrej Certik
On Tue, Nov 4, 2008 at 11:07 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Tue, Nov 4, 2008 at 8:08 PM, Brian Granger <[EMAIL PROTECTED]> wrote: >> >> One issue with the choice of method names like __latex__. Name with >> both leading and trailing double underscores are (at least informally)

Re: printing

2008-11-04 Thread Ondrej Certik
On Tue, Nov 4, 2008 at 8:08 PM, Brian Granger <[EMAIL PROTECTED]> wrote: > > One issue with the choice of method names like __latex__. Name with > both leading and trailing double underscores are (at least informally) > reservered for Python itself. Thus, the common naming scheme for > methods l

Re: printing

2008-11-04 Thread Brian Granger
_ccode_ etc. Brian On Nov 4, 7:20 pm, Sebastian <[EMAIL PROTECTED]> wrote: > As Brian Granger proposed in the > threadhttp://groups.google.com/group/sympy/browse_thread/thread/2927bac0810... > , it would be preferable if user could define printing methods for their > own classes

printing

2008-11-04 Thread Sebastian
As Brian Granger proposed in the thread http://groups.google.com/group/sympy/browse_thread/thread/2927bac0810029a0 , it would be preferable if user could define printing methods for their own classes without having to patch the printer. A patch is attached, that implements this proposal in the