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 simplify your formula by hand to shorter version (term like) in the denominator.
So try to simplify your formula by hand or with the command formula.simplify().
Maybe solve() will be faster this time.
Good luck!
Am Mittwoch, 16. November 2016 23:41:59 UTC+1 schrieb Eduardo Rivera:
Hi, I'm trying to solve this system of nonlinear equations, however after and hour it looks like it won't make it very soon.
I read up and found that solveset was the way to go into the future, however the 1.0 version if sympy that I'm using apparently doesn't have solveset.nonlinsolve(). As of now I was forced to use old regular solve. Here is my input:
res=solve([expr1,expr2,expr3,expr4], [la1,la2,la3,la4],set=true)
Where the first expression is like this:
-0.005*lambda_1*(-1.01*lambda_1 + 2/(1 + 0.749922055929781/lambda_1))/(-0.995*lambda_1*(lambda_1 - 1/(1 + 0.749922055929781/lambda_1)) + 0.995*lambda_1/(1 + 0.749922055929781/lambda_1) - 0.995*lambda_2*(lambda_2 - 1/(1 + 1.12753540370512/lambda_2)) + 0.995*lambda_2/(1 + 1.12753540370512/lambda_2) - 0.995*lambda_3*(lambda_3 - 1/(1 + 1.82344707450068/lambda_3)) + 0.995*lambda_3/(1 + 1.82344707450068/lambda_3) - 0.995*lambda_4*(lambda_4 - 1/(1 + 6.27879834162764/lambda_4)) + 0.995*lambda_4/(1 + 6.27879834162764/lambda_4) + 1.005) - 0.005*lambda_1 + 0.005*lambda_1/(-0.995*lambda_1*(lambda_1 - 1/(1 + 0.749922055929781/lambda_1)) + 0.995*lambda_1/(1 + 0.749922055929781/lambda_1) - 0.995*lambda_2*(lambda_2 - 1/(1 + 1.12753540370512/lambda_2)) + 0.995*lambda_2/(1 + 1.12753540370512/lambda_2) - 0.995*lambda_3*(lambda_3 - 1/(1 + 1.82344707450068/lambda_3)) + 0.995*lambda_3/(1 + 1.82344707450068/lambda_3) - 0.995*lambda_4*(lambda_4 - 1/(1 + 6.27879834162764/lambda_4)) + 0.995*lambda_4/(1 + 6.27879834162764/lambda_4) + 1.005)
Maybe I should try a numeric solve, but in an ideal world some of this numbers are variables, I'm just trying to solve first for a particular case.
Is there a way to maybe optimize this? Any help is greatly appreciated, as this is for my thesis xd