请教一个matlab解参数方程组的问题七个未知数(a,b,c,d,e,f,g),七个方程,求g的表达式(X,Y,Z,k1,k2,k3,k4都是参数):a+d+f+g = Xb+d+e+g = Yc+e+f+g = Zd = k1 * a * be = k2 * b * cf = k3 * a * cg = k4 * a * b * c
问题描述:
请教一个matlab解参数方程组的问题
七个未知数(a,b,c,d,e,f,g),七个方程,求g的表达式(X,Y,Z,k1,k2,k3,k4都是参数):
a+d+f+g = X
b+d+e+g = Y
c+e+f+g = Z
d = k1 * a * b
e = k2 * b * c
f = k3 * a * c
g = k4 * a * b * c
答
function bdSolve()
答
syms X Y k1 k2 k3 k4 real;
syms a b c d e f g
X=a+d+f+g;
Y=b+d+e+g;
Z=c+e+f+g;
d = k1 * a * b;
e = k2 * b * c;
f = k3 * a * c;
g = k4 * a * b * c;
g
答案;
g =
k4*a*b*c
运行完之后在命令窗口中输入syms k1 k2 k3 k4 X Y unreal
将参数取消
答
function bdSolve()clc;clear all;syms X Y Z k1 k2 k3 k4 a b c d e f g; X = a+d+f+g;Y = b+d+e+g;Z = c+e+f+g;k1 = d/(a*b);k2 = e/(b*c);k3 = f/(a*c); k4 = g/(a*b*c); solve(X,Y,Z,k1,k2,k3,k4,'a,b,c,d,e,f,g...