Issue 2971 in sympy: MathML Parser

2012-01-07 Thread sympy
Status: Accepted Owner: Labels: Type-Enhancement Priority-Medium Parsing New issue 2971 by asmeu...@gmail.com: MathML Parser http://code.google.com/p/sympy/issues/detail?id=2971 We should have a function that converts a mathml expression into a SymPy object. -- You received this

Re: Issue 2969 in sympy: sqrt(sin(x)).series(x, 0, 7) is wrong

2012-01-07 Thread sympy
Comment #2 on issue 2969 by mario.pe...@gmail.com: sqrt(sin(x)).series(x, 0, 7) is wrong http://code.google.com/p/sympy/issues/detail?id=2969 p + O(x**7) means that p is equivalent to the sum of its monomials of order less than x**7, so that ```

Re: Issue 2968 in sympy: partial fraction decomposition should be able to return structured result

2012-01-07 Thread sympy
Updates: Status: Accepted Labels: EasyToFix Comment #1 on issue 2968 by asmeu...@gmail.com: partial fraction decomposition should be able to return structured result http://code.google.com/p/sympy/issues/detail?id=2968 This would not be difficult, as the information is all

Re: Issue 2971 in sympy: MathML Parser

2012-01-07 Thread sympy
Comment #1 on issue 2971 by j...@durchholz.org: MathML Parser http://code.google.com/p/sympy/issues/detail?id=2971 The spec is at http://www.w3.org/TR/MathML3/ . -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post to this group, send email

Re: Issue 2960 in sympy: It right 0 x 1 ?

2012-01-07 Thread sympy
Comment #2 on issue 2960 by hunt...@gmail.com: It right 0 x 1 ? http://code.google.com/p/sympy/issues/detail?id=2960 Hrm, I don't know if it'd helpful or wanted, and it ain't pretty (mostly because it uses a global variable[1]), but attached is one possible method to acquire a chained

Re: Issue 1887 in sympy: Separate boolean and symbolic relationals

2012-01-07 Thread sympy
Issue 1887: Separate boolean and symbolic relationals http://code.google.com/p/sympy/issues/detail?id=1887 This issue is now blocking issue 2960. See http://code.google.com/p/sympy/issues/detail?id=2960 -- You received this message because you are listed in the owner or CC fields of this issue,

Re: Issue 2960 in sympy: It right 0 x 1 ?

2012-01-07 Thread sympy
Updates: Blockedon: 1887 Comment #3 on issue 2960 by asmeu...@gmail.com: It right 0 x 1 ? http://code.google.com/p/sympy/issues/detail?id=2960 I was thinking that something like this might be possible. Some potential issues I see so far: - It does require some kind of global

Re: Issue 2960 in sympy: It right 0 x 1 ?

2012-01-07 Thread sympy
Comment #4 on issue 2960 by hunt...@gmail.com: It right 0 x 1 ? http://code.google.com/p/sympy/issues/detail?id=2960 Hmm. In regards to the second bullet point, I have again some 2-minutes-of-thoughts options. (Apologies, I am focused elsewhere so I can't do any deep thinking on this

Re: Issue 2960 in sympy: It right 0 x 1 ?

2012-01-07 Thread sympy
Comment #5 on issue 2960 by asmeu...@gmail.com: It right 0 x 1 ? http://code.google.com/p/sympy/issues/detail?id=2960 * Through the use of a second global (well, it needn't be a global, but it must be some storage that is accessible and external to, in this case, LT and test), I would

Re: Issue 2587 in sympy: Strange printing at SymPy Live

2012-01-07 Thread sympy
Comment #15 on issue 2587 by anxuiz...@gmail.com: Strange printing at SymPy Live http://code.google.com/p/sympy/issues/detail?id=2587 After further investigation it appears that the assumptions for the two exponents in x**2+x**-2 are pointing to the same object after pickling. In [1]:

Re: Issue 2587 in sympy: Strange printing at SymPy Live

2012-01-07 Thread sympy
Comment #16 on issue 2587 by anxuiz...@gmail.com: Strange printing at SymPy Live http://code.google.com/p/sympy/issues/detail?id=2587 According to the pickle documentation [0], equivalent objects are combined and stored by reference instead of by value. This presents a problem in our

Re: Issue 2587 in sympy: Strange printing at SymPy Live

2012-01-07 Thread sympy
Comment #17 on issue 2587 by anxuiz...@gmail.com: Strange printing at SymPy Live http://code.google.com/p/sympy/issues/detail?id=2587 Looks like Pickler has a field fast for disabling the optimization. I wrote a fast_dumps function and it appears to work: In [1]: from pickle import

Issue 2972 in sympy: Autoevaluation of functions for floats and complex floats

2012-01-07 Thread sympy
Status: Accepted Owner: Labels: Type-Defect Priority-Low New issue 2972 by someb...@bluewin.ch: Autoevaluation of functions for floats and complex floats http://code.google.com/p/sympy/issues/detail?id=2972 Consider the following list of numbers: In [2]: vals = [2, 2.0, 2j, 2.0j, 2+2j,

Issue 2973 in sympy: raise an error on impossible spin states in physics.quantum

2012-01-07 Thread sympy
Status: Accepted Owner: Labels: Type-Defect Priority-Medium Physics Quantum New issue 2973 by krastano...@gmail.com: raise an error on impossible spin states in physics.quantum http://code.google.com/p/sympy/issues/detail?id=2973 JzKet(one/2,0) returns and is happily used by all the CG

Re: Issue 2973 in sympy: raise an error on impossible spin states in physics.quantum

2012-01-07 Thread sympy
Updates: Labels: EasyToFix Comment #1 on issue 2973 by krastano...@gmail.com: raise an error on impossible spin states in physics.quantum http://code.google.com/p/sympy/issues/detail?id=2973 (No comment was entered for this change.) -- You received this message because you are

Re: Issue 2973 in sympy: raise an error on impossible spin states in physics.quantum

2012-01-07 Thread sympy
Comment #2 on issue 2973 by krastano...@gmail.com: raise an error on impossible spin states in physics.quantum http://code.google.com/p/sympy/issues/detail?id=2973 Spin states are supposed to have m (the second argument) in the set [-j, -j+1, .. j] (j is the first argument) -- You

Re: Issue 2759 in sympy: Implement the forumlas from the matrix cookbook

2012-01-07 Thread sympy
Updates: Labels: -NeedsReview Comment #4 on issue 2759 by asmeu...@gmail.com: Implement the forumlas from the matrix cookbook http://code.google.com/p/sympy/issues/detail?id=2759 That was merged. -- You received this message because you are subscribed to the Google Groups

[sympy] MathMl expression parser

2012-01-07 Thread gsagrawal
I have mathMl string. i want this to convert into sympy format. Do we have any MathMl to sympy format parser available ? Thanks, Ghanshyam Agrawal -- You received this message because you are subscribed to the Google Groups sympy group. To post to this group, send email to

Re: [sympy] How to name variables with commas?

2012-01-07 Thread Aaron Meurer
It works in 0.7.1: In [1]: Symbol('x, y') Out[1]: x, y In [2]: type(Symbol('x, y')) Out[2]: sympy.core.symbol.Symbol In [10]: Symbol(Car[2010, 'prius', 2008]) Out[10]: Car[2010, 'prius', 2008] In [11]: type(Symbol(Car[2010, 'prius', 2008])) Out[11]: sympy.core.symbol.Symbol By the way,

Re: [sympy] How to name variables with commas?

2012-01-07 Thread Kevin Hunter
Mea culpa. I see now the difference you were trying to impart: Symbol (the class) vs symbols (the function). Pardon me as I misstep more than a few times while learning Sympy. -- You received this message because you are subscribed to the Google Groups sympy group. To view this discussion

Re: [sympy] MathMl expression parser

2012-01-07 Thread Aaron Meurer
We don't. I created http://code.google.com/p/sympy/issues/detail?id=2971 for this. Perhaps you could find some other program that converts mathml into a string that can then be sent to sympify(). Aaron Meurer On Sat, Jan 7, 2012 at 12:59 AM, gsagrawal gsagra...@gmail.com wrote: I have mathMl

Re: [sympy] How to name variables with commas?

2012-01-07 Thread Aaron Meurer
No worries. Let us know if you have any other questions. Aaron Meurer On Sat, Jan 7, 2012 at 1:33 AM, Kevin Hunter hunt...@gmail.com wrote: Mea culpa.  I see now the difference you were trying to impart: Symbol (the class) vs symbols (the function).  Pardon me as I misstep more than a few

[sympy] Multiple inequalities in a single Python expression?

2012-01-07 Thread Kevin Hunter
Hullo Sympy Group, How can I get Sympy to recognize 2+ inequalities in the same expression? In mathematical optimization it is common to see (and often very convenient to use) constraint expressions like these: *3*x = 2*y +10 = 3*z* *10*x = 15*y = 20*z = t* Which are actually 2 and 3

Re: [sympy] Multiple inequalities in a single Python expression?

2012-01-07 Thread Aaron Meurer
Hi. There's an issue for this too: http://code.google.com/p/sympy/issues/detail?id=2960 Python evaluates a b c as (a b) and (b c). Since it's impossible to override the and operator, this always returns the first one if it evaluate to True or the second one if it evaluate to True (or False

Re: [sympy] Multiple inequalities in a single Python expression?

2012-01-07 Thread Kevin Hunter
Hmm, so I have some example code that I just threw together that implements a multiple inequality. It isn't pretty in that I spent 5 minutes working it, and it uses a global, etc., but it's a proof of concept: - *In [1]: a, b, c, d = test('A'), test('B'), test('C'), test('D')* * * *In [2]:

Re: [sympy] Multiple inequalities in a single Python expression?

2012-01-07 Thread Aaron Meurer
Hi. I posted my comments on the issue page. Aaron Meurer On Sat, Jan 7, 2012 at 4:16 AM, Kevin Hunter hunt...@gmail.com wrote: Hmm, so I have some example code that I just threw together that implements a multiple inequality.  It isn't pretty in that I spent 5 minutes working it, and it uses

[sympy] [physics.quantum] JzKet(1/2,0) and other nonsense

2012-01-07 Thread krastanov.ste...@gmail.com
When I tried to execute: In [27]: couple(TensorProduct(JzKet(1,0),JzKet(one/2,0))) # one is Integer(1) I got expressions containing factorial(1/2) and other strange things. I thought that it's a bug but then I saw that I have written JzKet(one/2,0) which is nonsensical. I suppose it makes sense

Re: [sympy] documentation: htmli18n actually rebuilds the docs each time for each language

2012-01-07 Thread Ondřej Čertík
On Fri, Jan 6, 2012 at 5:44 AM, Aaron Meurer asmeu...@gmail.com wrote: So should make htmli18n be run before uploading the docs to docs.sympy.org? Yes. Ondrej -- You received this message because you are subscribed to the Google Groups sympy group. To post to this group, send email to

Re: [sympy] diff() operator for matrices

2012-01-07 Thread Aaron Meurer
While we do have basic non-commutative differentiation implemented, we don't have the rules involving things like transposes and norms implemented yet. See http://code.google.com/p/sympy/issues/detail?id=2759. Aaron Meurer 2012/1/7 Ondřej Čertík ondrej.cer...@gmail.com: Hi John, On Sat, Jan