matlab求解多元一次方程请附完整程序及运行结果.一 a+(p-2)b+c=280二 5580/1.2+(a+0.5)*2400/0.6+1000+40a/1.2+11200/1.2-(a+0.5)*40/1.2=2400b/0.6+40b/1.2+5600/1.2=5600/1.2-(c+0.5)*40/1.2+(c+0.5)*2400/0.6+1000+20/1.2+40c/1.2三 d+(q-2)*e
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 10:04:52
matlab求解多元一次方程请附完整程序及运行结果.一 a+(p-2)b+c=280二 5580/1.2+(a+0.5)*2400/0.6+1000+40a/1.2+11200/1.2-(a+0.5)*40/1.2=2400b/0.6+40b/1.2+5600/1.2=5600/1.2-(c+0.5)*40/1.2+(c+0.5)*2400/0.6+1000+20/1.2+40c/1.2三 d+(q-2)*e
matlab求解多元一次方程
请附完整程序及运行结果.
一 a+(p-2)b+c=280
二 5580/1.2+(a+0.5)*2400/0.6+1000+40a/1.2+11200/1.2-(a+0.5)*40/1.2=2400b/0.6+40b/1.2+5600/1.2=5600/1.2-(c+0.5)*40/1.2+(c+0.5)*2400/0.6+1000+20/1.2+40c/1.2
三 d+(q-2)*e+f=280
四 5580/1.2+(d+0.5)*2400/0.6+1000+40d/1.2+11200/1.2-(d+0.5)*40/1.2=2400e/0.6+40e/1.2+5600/1.2=5600/1.2-(f+0.5)*40/1.2+(f+0.5)*2400/0.6+1000+20/1.2+40f/1.2
五 2p+q=50
六 2400b/0.6+40b/1.2+5600/1.2+4800/1.2=2400e/0.6+40e/1.2+5600/1.2
matlab求解多元一次方程请附完整程序及运行结果.一 a+(p-2)b+c=280二 5580/1.2+(a+0.5)*2400/0.6+1000+40a/1.2+11200/1.2-(a+0.5)*40/1.2=2400b/0.6+40b/1.2+5600/1.2=5600/1.2-(c+0.5)*40/1.2+(c+0.5)*2400/0.6+1000+20/1.2+40c/1.2三 d+(q-2)*e
八个变量,八个方程.
下次写的时候,不要出现
表达式1=表达式2=表达式3
另外变量与数字之间要有*,我改了老半天.
命令:(你们最好再检查一下有没有写错)
[aa,bb,cc,dd,ee,ff,pp,qq]=solve('a+(p-2)*b+c=280','5580/1.2+(a+0.5)*2400/0.6+1000+40*a/1.2+11200/1.2-(a+0.5)*40/1.2=2400*b/0.6+40*b/1.2+5600/1.2','2400*b/0.6+40*b/1.2+5600/1.2=5600/1.2-(c+0.5)*40/1.2+(c+0.5)*2400/0.6+1000+20/1.2+40*c/1.2','d+(q-2)*e+f=280','5580/1.2+(d+0.5)*2400/0.6+1000+40*d/1.2+11200/1.2-(d+0.5)*40/1.2=2400*e/0.6+40*e/1.2+5600/1.2','2400*e/0.6+40*e/1.2+5600/1.2=5600/1.2-(f+0.5)*40/1.2+(f+0.5)*2400/0.6+1000+20/1.2+40*f/1.2','2*p+q=50','2400*b/0.6+40*b/1.2+5600/1.2+4800/1.2=2400*e/0.6+40*e/1.2+5600/1.2','a','b','c','d','e','f','p','q')
得到的结果:
aa =
[ -3.7543648690991558819888523823268]
[ 13.758623110857397640230610624085]
bb =
[ -.67375028340412153585671310644000]
[ 16.694502258701551378741101445374]
cc =
[ -1.4293648690991558819888523823270]
[ 16.083623110857397640230610624085]
dd =
[ -2.7543648690991558819888523823268]
[ 14.758623110857397640230610624085]
ee =
[ .31798525378596110877138606711373]
[ 17.686237795891634023369200618928]
ff =
[ -.42936486909915588198885238232700]
[ 17.083623110857397640230610624085]
pp =
[ -421.27808501587304261343769753440]
[ 16.984439182539709280104364201066]
qq =
[ 892.55617003174608522687539506879]
[ 16.031121634920581439791271597867]
就是说有两个解.
可能还需要你们自己取舍一下.
好几个题目都是有问题的,一个方程,这么多个未知数怎么解啊?