matlab 解非线性方程组
有两个非线性方程组,未知数是x1,x2:(15x1+10x2)/[(40-30x1-10x2)^2×(15-15x1)]=5e-4;(15x1+10x2)/[(40-30...
有两个非线性方程组,未知数是x1,x2:
(15x1+10x2)/[(40-30x1-10x2)^2×(15-15x1)]=5e-4;
(15x1+10x2)/[(40-30x1-10x2)×(10-10x2)]=4e-2.
此题是一项作业,我是matlab新手,请大侠们帮忙,非常感谢!
谢谢一楼的回答,请问你会用牛顿法解这个题吗?我的作业需要用牛顿法来解题。 展开
(15x1+10x2)/[(40-30x1-10x2)^2×(15-15x1)]=5e-4;
(15x1+10x2)/[(40-30x1-10x2)×(10-10x2)]=4e-2.
此题是一项作业,我是matlab新手,请大侠们帮忙,非常感谢!
谢谢一楼的回答,请问你会用牛顿法解这个题吗?我的作业需要用牛顿法来解题。 展开
1个回答
展开全部
S=solve('(15*x1+10*x2)/((40-30*x1-10*x2)^2*(15-15*x1))=5e-4',...
'(15*x1+10*x2)/((40-30*x1-10*x2)*(10-10*x2))=4e-2','x1','x2')
S =
x1: [3x1 sym]
x2: [3x1 sym]
>> S.x1
ans =
0.1202666544761356020022169667429
2.1048681889566286366312185043052*i + 1.3692452038353785266825073358376
1.3692452038353785266825073358376 - 2.1048681889566286366312185043052*i
>> S.x2
ans =
0.47867067450262387994394748046949
2.7225290695283490769771788021381 - 1.4535479853270135333310210750154*i
1.4535479853270135333310210750154*i + 2.7225290695283490769771788021381
'(15*x1+10*x2)/((40-30*x1-10*x2)*(10-10*x2))=4e-2','x1','x2')
S =
x1: [3x1 sym]
x2: [3x1 sym]
>> S.x1
ans =
0.1202666544761356020022169667429
2.1048681889566286366312185043052*i + 1.3692452038353785266825073358376
1.3692452038353785266825073358376 - 2.1048681889566286366312185043052*i
>> S.x2
ans =
0.47867067450262387994394748046949
2.7225290695283490769771788021381 - 1.4535479853270135333310210750154*i
1.4535479853270135333310210750154*i + 2.7225290695283490769771788021381
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询