Re: [sympy] inverse_real use

2015-06-24 Thread Gaurav Dhingra
Now i think more about it. It's better to have a new PR for that. This is the issue link (https://github.com/sympy/sympy/issues/9571) it will be better if you could answer the new third question on the issue itself. Thanks Gaurav On Thursday, June 25, 2015 at 4:05:07 AM UTC+5:30, Harsh Gupta w

Re: [sympy] inverse_real use

2015-06-24 Thread Gaurav Dhingra
Probably i also come to one more question i am having from a long time.(which is related to this) How can i create symbols with assumptions like y = Symbol('y', where y > 3)? How is this done ? though i can create `y = Symbol('y', positive=True)` (i.e. y > 0) This is related to the invert_re

Re: [sympy] inverse_real use

2015-06-24 Thread Harsh Gupta
Good catch, the first line (L39) is redundant, it should be removed. The second question you raised is also valid and this is a bug. Also please @mention me on the PRs on solveset, because the volume of activity on sympy's github I've unwatched the repo and I don't get notified for all the PR's. O

Re: [sympy] convert array to C(++) code: function body extraction?

2015-06-24 Thread Ondřej Čertík
On Wed, Jun 24, 2015 at 5:23 AM, Nico wrote: > Hi everyone, > > I'd like to convert a Python function that returns an array, e.g., > > def test(x, y, z): > return [[x, y], [y, z]] > > into C++ code, e.g., a function that returns a > std::vector>. Right now, I call `test()` with SymPy > symbol

[sympy] Fwd: SciPy 2015 BoF Time / Location

2015-06-24 Thread Aaron Meurer
Regarding the SymPy BoF for SciPy. Aaron Meurer -- Forwarded message -- From: Matthew McCormick Date: Wed, Jun 24, 2015 at 9:32 AM Subject: Fwd: SciPy 2015 BoF Time / Location To: asmeu...@gmail.com Cc: Kyle Mandli Hi Aaron, We are happy to report that your BoF has been acce

Re: [sympy] inverse_real use

2015-06-24 Thread Aaron Meurer
On Wed, Jun 24, 2015 at 3:33 AM, Gaurav Dhingra wrote: > Hi all > > My first question is: > I was looking at the code base of solveset.py and test_solveset.py. I found > that on lines > https://github.com/sympy/sympy/blob/master/sympy/solvers/tests/test_solveset.py#L39-L40 > . Here why do we have

[sympy] ANN: Last Call for SciPy 2015 Registration (Scientific Python Conference - July 8-10)

2015-06-24 Thread Courtenay Godshall
Last Call to Register for SciPy 2015! Main conference July 8-10, tutorials July 6-7 & coding sprints July 11-12!Here are just a few reasons you don't want to miss this year's SciPy Conference (Online registration closes 7/3/15

Re: [sympy] convert array to C(++) code: function body extraction?

2015-06-24 Thread Jason Moore
Nico, That's probably the quickest way to get the result you want. You can also try sublclassing the C printer and/or modifying the code generators to override the necessary parts to print the C++ you want. If you share some of the code that you are using we can comment more specifically. Jason

[sympy] convert array to C(++) code: function body extraction?

2015-06-24 Thread Nico
Hi everyone, I'd like to convert a Python function that returns an array, e.g., def test(x, y, z): return [[x, y], [y, z]] into C++ code, e.g., a function that returns a std::vector>. Right now, I call `test()` with SymPy symbols `x`, `y`, `z`, then translate every entry into C code using

[sympy] inverse_real use

2015-06-24 Thread Gaurav Dhingra
Hi all My first question is: I was looking at the code base of solveset.py and test_solveset.py. I found that on lines https://github.com/sympy/sympy/blob/master/sympy/solvers/tests/test_solveset.py#L39-L40 . Here why do we have consecutive declaration of `x`. I am not sure if that make any