Home > other >  Help!!!!! Pray god to help me see how to solve the equations should be
Help!!!!! Pray god to help me see how to solve the equations should be

Time:09-20

My small white, because the cause of the paper to calculate a more complex equations as follows:
* (0.012686 * 0.073796=x1 y2 y3 + 0.012871 + 0.013109 * * y4 + 0.022445 * y5)
(x2=0.601394 * 0.012686 * y1 y3 + 0.034696 + 0.02059 * * y4 + 0.011424 * y5)
The x3=0.239644 * (0.013109 + 0.02059 * * y1 y2 + 0.029915 + 0.009379 * * y4 y5)
X4=0.075492 * (0.012871 + 0.034696 * * y1 y2 y3 + 0.011717 + 0.029915 * * y5)
0.009675=x 5 * (0.022445 + 0.011424 * * y1 y2 y3 + 0.011717 + 0.009379 * * y4)
(0.012686 * 0.073796=y1 * x2 x3 + 0.012871 + 0.013109 * * x4 + 0.022445 * x 5)
* (0.012686 * 0.601394=y2 x1 x4 + 0.011424 + 0.034696 + 0.02059 * x3 * * x 5)
* (0.013109 * 0.239644=y3 x1 x2 + 0.029915 + 0.02059 * * x4 + 0.009379 * x 5)
* (0.012871 * 0.075492=y4 x1 + x2 x3 + 0.011717 + 0.029915 * 0.034696 * * x 5)
* (0.022445 * 0.009675=y5 x1 + x2 x3 + 0.011717 + 0.009379 * 0.011424 * * x4)
Want to find out all the x and y, I use the following method

But the program has been no response, and is not an error, is where I write wrong?
If you have know should how to calculate, show just a little trouble, thank you thank you

CodePudding user response:


Post code

CodePudding user response:

reference 1st floor weixin_45903952 response:

Post code come on


The import sympy as sy
X1, x2, x3, x4, x5, y1, y2, y3, y4, y5=sy. Symbols (' x1, x2, x3, x4, x5, y1, y2, y3, y4, y5 ')
Result=sy. Nonlinsolve ([x1 * (0.012686 + 0.013109 * * y2, y3 + 0.012871 + 0.022445 * * y4 y5) - 0.073796,
X2 * (0.012686 + 0.02059 * * y1, y3 + 0.034696 + 0.011424 * * y4 y5) - 0.601394,
The x3 * (0.013109 + 0.02059 * * y1 y2 + 0.029915 + 0.009379 * * y4 y5) - 0.239644,
The x3 * (0.013109 + 0.02059 * * y1 y2 + 0.029915 + 0.009379 * * y4 y5) - 0.239644,
X4 * (0.012871 + 0.034696 * * y1 y2 y3 + 0.011717 + 0.029915 * * y5) - 0.075492,
X5 * (0.022445 + 0.011424 * * y1 y2 y3 + 0.011717 + 0.009379 * * y4) - 0.009675,
Y1 * (x2 x3 + 0.012871 + 0.013109 * 0.012686 * * x4 + 0.022445 * x 5) 0.073796,
Y2 * (x1 + 0.012686 * 0.02059 * x3 x4 + 0.011424 + 0.034696 * * x 5) 0.601394,
Y3 * (x1 x2 + 0.029915 + 0.02059 * 0.013109 * * x4 + 0.009379 * x 5) 0.239644,
Y4 * (0.034696 * 0.012871 * x1 + x2 x3 + 0.011717 + 0.029915 * * x 5) 0.075492,
Y5 * (x1 x2 + 0.009379 + 0.011424 * 0.022445 * * x3 x4) + 0.011717 * 0.009675], [x1, x2, x3, x4, x5, y1, y2, y3, y4, y5])
Print (result)

CodePudding user response:

Is there any solution, not without a solution of the problem
  • Related