SciPy 3
SciPy : fsolve
We use the scipy.optimize.fsolve to solve the nonlinear equations. The basic format is fsolve(func, x0). In the format, func(x) is the function of error in equations. The parameter x is vector.
Here is the question.
$$
f_1(u_1, u_2, u_3) = 0 \\
f_2(u_1, u_2, u_3) = 0 \\
f_3(u_1, u_2, u_3) = 0
$$
Here is the definition of func :
1 |
|
Here is an example :
$$
5b + 3 = 0 \\
4a^2-2 sin (bc) = 0 \\
bc -1.5 = 0
$$
1 |
|
Result :
1 |
|
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!