[sympy] issue solving algebraic system of equations

2017-01-16 Thread Alexander Tille
Hi, please have a look at the following code: from sympy import * X,Y,Z = symbols("\X,\Y,\Z") Rxy,Rxz, Ry,Ryx,Ryz, Rz,Rzy,Rzz = symbols("\\RXY,\\RXZ, \\RY,\\RYX,\\RYZ, \\RZ,\\RZY,\\RZZ") Rzy1,Rzy2 = symbols("\\RZYI,\\RZYII") dimensionless_DES_list = [X*(1-X - Ryx*Y),

[sympy] Re: Trouble solving nonlinear system of equations

2016-11-17 Thread Alexander Tille
Hi, It is really hard to read/understand your formula. can you substitute all your numbers like 0.749922055929781 by some variables. This will make your formula more readable. And can you also print out the command latex(your_formula) so I can read your formula better. At a first glance I can

[sympy] Re: Nice simplifcation and substitution of expressions in a large script

2016-11-16 Thread Alexander Tille
Hi Björn, Here is the complete example with the shifted *-1 from the numerator to the denominator. In the second part of the example your code works quite well again. But I don't know how to shift the -1* automatically when there is a need for. In [21]: test = -(Rzy + 1)/(Ryz*Rzy - 1) In [22]:

[sympy] Re: Nice simplifcation and substitution of expressions in a large script

2016-11-16 Thread Alexander Tille
Hi Björn, Thank you for your answer. I like your work-around because it improves the latex output of my original formulas. But I'm afraid it doesn't work for my problem (the terms calculated by solve). It is not just a problem of printing in the right order. If you look at the variable test (

[sympy] Nice simplifcation and substitution of expressions in a large script

2016-11-15 Thread Alexander Tille
Hi guys, I'm working on a larger project, solving non-linear differential equation systems by calculating the steady states. I want to create a very flexible script were I enter a n-dimensional equation system (mostly n=3). The script calculates the steady states and does a stabilty analysis

[sympy] Re: sign of an expression resulting from solve()

2016-11-15 Thread Alexander Tille
I also tried X,Y,Z = symbols("X,Y,Z",nonnegative=True) Well solve() finds all solutions in this case but the solutions look the same -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it,

[sympy] sign of an expression resulting from solve()

2016-11-15 Thread Alexander Tille
Hi guys, I want to calculate the steady states of a system of differential equations: from sympy import * X,Y,Z = symbols("X,Y,Z") variables_dimless = [X,Y,Z] Rxy,Rxz, Ry,Ryx,Ryz, Rz,Rzy,Rzz = symbols("Rxy,Rxz, Ry,Ryx,Ryz, Rz,Rzy,Rzz",positive=True) dimensionless_DES_

Re: [sympy] Re: Sympy and mpmath imported but still ImportError

2016-11-10 Thread Alexander Tille
her of these should be > necessary. > > Aaron Meurer > > On Wed, Nov 9, 2016 at 5:59 AM, Alexander Tille > wrote: > > Hi, > > I checked also this solution. > > > > Traceback (most recent call last): > > File "./algebraic_

[sympy] Re: Sympy and mpmath imported but still ImportError

2016-11-09 Thread Alexander Tille
the import mpmath command. But this soultion is really ugly. Am Dienstag, 8. November 2016 19:40:56 UTC+1 schrieb Björn Dahlgren: > > > > On Tuesday, 8 November 2016 15:52:40 UTC+1, Alexander Tille wrote: > > Hi, > > >> Traceback (most recent call last): >> F

[sympy] Sympy and mpmath imported but still ImportError

2016-11-08 Thread Alexander Tille
Hi guys, I don't understand the relationship of sympy and mpmath. As I followed the instructions of http://docs.sympy.org/latest/install.html#mpmath I installed mpmath and sympy as you can see in the following lines. $ pip install sympy Collecting sympy Requirement already satisfied: mpmath>=0