solving dynamic number of non-linear equations in python
问题 Fsolve in Scipy seems to be the right candidate for this, I just need help passing equations dynamically. I appreciate any thoughts in advance. By dynamic I mean number of equations differ from one run to another for example one situation i have : alpha*x + (1-alpha)*x*y - y = 0 beta*x + (1- beta)*x*z - z = 0 A*x + B*y + C*z = D and another situation i have: alpha*x + (1-alpha)*x*y - y = 0 beta*x + (1- beta)*x*z - z = 0 gama*x + (1 -gama)*x*w - w =0 A*x + B*y + C*z + D*w = E alpha , beta , A