matlab 解方程组。编程
1个回答
展开全部
在命令行输入以下字符:
syms x y z
>> [x,y,z]= solve('2.5*x^2+2.3*y+5.1*z=1','0.8*x-y^3+3*z=10','2.6*x-5.1*y-3*z=6')
x =
-.96696585552124230797844234932470
-.29276389633521735242356905345835
2.0206292080435742685390062391509-1.0408286755817770570964427895888*i
2.0206292080435742685390062391509+1.0408286755817770570964427895888*i
-4.0427643321153444383380005377594+1.3134657749177045040872428073588*i
-4.0427643321153444383380005377594-1.3134657749177045040872428073588*i
y =
-2.0622341706505605758403048956882
-1.9277456317595315489669706344260
.82107162649392674173018854002225-2.3730152053878645061220643320005*i
.82107162649392674173018854002225+2.3730152053878645061220643320005*i
1.1739182747111193206734492250348-3.2566160449484193052673469832287*i
1.1739182747111193206734492250348+3.2566160449484193052673469832287*i
z =
.66776101532087631201386828658847
1.0234388638340152611434235655270
-1.6446097847352444282075151107737+3.1320743303218295442572589467572*i
-1.6446097847352444282075151107737-3.1320743303218295442572589467572*i
-7.4993901548422013583711308152840+6.6745842813409900558301003045331*i
-7.4993901548422013583711308152840-6.6745842813409900558301003045331*i
syms x y z
>> [x,y,z]= solve('2.5*x^2+2.3*y+5.1*z=1','0.8*x-y^3+3*z=10','2.6*x-5.1*y-3*z=6')
x =
-.96696585552124230797844234932470
-.29276389633521735242356905345835
2.0206292080435742685390062391509-1.0408286755817770570964427895888*i
2.0206292080435742685390062391509+1.0408286755817770570964427895888*i
-4.0427643321153444383380005377594+1.3134657749177045040872428073588*i
-4.0427643321153444383380005377594-1.3134657749177045040872428073588*i
y =
-2.0622341706505605758403048956882
-1.9277456317595315489669706344260
.82107162649392674173018854002225-2.3730152053878645061220643320005*i
.82107162649392674173018854002225+2.3730152053878645061220643320005*i
1.1739182747111193206734492250348-3.2566160449484193052673469832287*i
1.1739182747111193206734492250348+3.2566160449484193052673469832287*i
z =
.66776101532087631201386828658847
1.0234388638340152611434235655270
-1.6446097847352444282075151107737+3.1320743303218295442572589467572*i
-1.6446097847352444282075151107737-3.1320743303218295442572589467572*i
-7.4993901548422013583711308152840+6.6745842813409900558301003045331*i
-7.4993901548422013583711308152840-6.6745842813409900558301003045331*i
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询