Re: Issue 989 in sympy: solve fails for intersection of two circles

2010-12-30 Thread sympy
Updates: Status: Started Owner: mattpap Cc: -mattpap Labels: Solvers Polynomial Milestone-Release0.7.0 NeedsReview Comment #3 on issue 989 by mattpap: solve fails for intersection of two circles http://code.google.com/p/sympy/issues/detail?id=989 This issue

Re: Issue 2087 in sympy: solver treats a nonlinear expression as linear and mis-solves a true nonlinear system; fixed in polys11 but slow

2010-12-30 Thread sympy
Updates: Status: Started Owner: mattpap Cc: -mattpap Labels: -polys Polynomial Milestone-Release0.7.0 Comment #1 on issue 2087 by mattpap: solver treats a nonlinear expression as linear and mis-solves a true nonlinear system; fixed in polys11 but slow

Re: Issue 2075 in sympy: solve fails for eq1=1 + 2*y/b - (e + x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c

2010-12-30 Thread sympy
Updates: Labels: Milestone-Release0.7.0 NeedsReview Comment #7 on issue 2075 by mattpap: solve fails for eq1=1 + 2*y/b - (e + x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c http://code.google.com/p/sympy/issues/detail?id=2075 After recent changes the system doesn't hang for me any more: In

Re: Issue 2033 in sympy: solve should be able to handle rational function systems

2010-12-30 Thread sympy
Updates: Labels: Polynomial Comment #8 on issue 2033 by mattpap: solve should be able to handle rational function systems http://code.google.com/p/sympy/issues/detail?id=2033 Regarding #3, now in polys11 the behaviour is as follows: In [2]: var('r,t') Out[2]: (r, t) In [3]:

Re: Issue 2033 in sympy: solve should be able to handle rational function systems

2010-12-30 Thread sympy
Comment #9 on issue 2033 by asmeurer: solve should be able to handle rational function systems http://code.google.com/p/sympy/issues/detail?id=2033 So are you saying that it should be the responsibility of solve() to handle converting the equations into a system of polynomials before

Re: Issue 2033 in sympy: solve should be able to handle rational function systems

2010-12-30 Thread sympy
Comment #10 on issue 2033 by mattpap: solve should be able to handle rational function systems http://code.google.com/p/sympy/issues/detail?id=2033 Yes, this should be a part of solve strategy resolution. -- You received this message because you are subscribed to the Google Groups

Re: Issue 989 in sympy: solve fails for intersection of two circles

2010-12-30 Thread sympy
Updates: Status: Started Owner: mattpap Cc: -mattpap Labels: Solvers Polynomial Milestone-Release0.7.0 NeedsReview Comment #3 on issue 989 by mattpap: solve fails for intersection of two circles http://code.google.com/p/sympy/issues/detail?id=989 This issue

Re: Issue 2075 in sympy: solve fails for eq1=1 + 2*y/b - (e + x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c

2010-12-30 Thread sympy
Updates: Labels: Milestone-Release0.7.0 NeedsReview Comment #7 on issue 2075 by mattpap: solve fails for eq1=1 + 2*y/b - (e + x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c http://code.google.com/p/sympy/issues/detail?id=2075 After recent changes the system doesn't hang for me any more: In

Re: [sympy] A random point of jacobian group of HEC

2010-12-30 Thread Aaron S. Meurer
Well, I have never heard of that before, but I found this Wikipedia article: http://en.wikipedia.org/wiki/Hyperelliptic_curve_cryptography. If I understand it correctly, the answer is no, because SymPy does not imp,met the Jacobian in the algebraic sense (which is apparently different from the

[sympy] Re: import symbol as stdlib_symbol in __init__.py

2010-12-30 Thread Vinzent Steinberg
On 30 Dez., 08:57, Ondrej Certik ond...@certik.cz wrote: I forgot about the from sympy.interactive import *. Yes, let's move it out of the __init__.py's. I agree, it makes more sense there. Vinzent -- You received this message because you are subscribed to the Google Groups sympy group. To

[sympy] Re: python printer output for scipy/numpy

2010-12-30 Thread Vinzent Steinberg
On 29 Dez., 23:29, Scott scotta_2...@yahoo.com wrote: Is there a clever way to export a Matrix of sympy symbols and the argument list to to a text (.py) file with scipy friendly syntax? The C and Fortran printers strip out the sympy syntax and replace it with the proper C or Fortran syntax,

Re: [sympy] import symbol as stdlib_symbol in __init__.py

2010-12-30 Thread Aaron S. Meurer
On Dec 30, 2010, at 5:17 AM, Mateusz Paprocki wrote: Hi, On 30 December 2010 08:49, Aaron S. Meurer asmeu...@gmail.com wrote: On Dec 30, 2010, at 12:42 AM, Ondrej Certik wrote: On Thu, Dec 30, 2010 at 4:36 AM, Aaron S. Meurer asmeu...@gmail.com wrote: OK. I have made the change.

[sympy] convert to sympy expressions

2010-12-30 Thread Jeff Cen
Hi, Suppose I have already had an expression tree in a tree structure (like a nested list, say ['add', 'x', ['subtract', 'x', 'y']]), I would like to convert it to sympy expression and simplify it in sympy. When I read my tree structure, I first create an Add function. Then how can I append x

Re: [sympy] convert to sympy expressions

2010-12-30 Thread Mateusz Paprocki
Hi, On Thu, Dec 30, 2010 at 01:34:07PM -0800, Jeff Cen wrote: Hi, Suppose I have already had an expression tree in a tree structure (like a nested list, say ['add', 'x', ['subtract', 'x', 'y']]), I would like to convert it to sympy expression and simplify it in sympy. When I read my

[sympy] Re: convert to sympy expressions

2010-12-30 Thread Jeff
Mateusz, thanks for your quick reply. Your suggestion handles this case well. If I have a function f has N children in the tree, e.g. tree = ('add', 'x', ('f', 'a1', 'a2', 'a3', 'a4', ..., 'a100')) how can I express mapping[f](a1, a2, ...an)? N here could be arbitrary and I don't know its

Re: [sympy] Re: convert to sympy expressions

2010-12-30 Thread Aaron S. Meurer
You want to use tuple unpacking. If you pass a list or tuple to a function in Python and put a '*' before it, it unpacks the elements of the tuple into arguments of the function. For example: In [4]: a = [1, 2, 3] In [5]: def f(a, b, c): ...: return a + b + c ...: In [6]: f(*a)

Re: [sympy] Re: convert to sympy expressions

2010-12-30 Thread Mateusz Paprocki
Hi, On Thu, Dec 30, 2010 at 04:48:14PM -0700, Aaron S. Meurer wrote: You want to use tuple unpacking. If you pass a list or tuple to a function in Python and put a '*' before it, it unpacks the elements of the tuple into arguments of the function. For example: In [4]: a = [1, 2, 3]

[sympy] Re: python printer output for scipy/numpy

2010-12-30 Thread Scott
Thank you for pointing me away from the python printer and towards lambdify. Cheers, Scott On Dec 30, 7:12 am, Vinzent Steinberg vinzent.steinb...@googlemail.com wrote: On 29 Dez., 23:29, Scott scotta_2...@yahoo.com wrote: Is there a clever way to export a Matrix of sympy symbols