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

-- 
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, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/fedd380c-45c4-40a4-a1ba-361618831111%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to