How do you solve equations with multiple variables?
7 次查看(过去 30 天)
显示 更早的评论
I have a list of variables. Then, I have equations that I would like to solve with said variables. How would I go about this?
Appreciate the help,
Ilan
%List of Variables
E1f = 233
v12f = 0.200
E2f = 23.1
G12f = 8.96
a1f = -0.540*10^-6
a2f = 10.10*10^-6
Em = 4.62
am = 41.4 * 10^-6
vm = 0.360
Vf = 0.2
%Equations I would like to solve with the above variables
E1c = [E1f * v12f + Em(1 - v12f)]
v12c = v12f * Vf + vm(1 - Vf)
E2c = [(1 - sqrt(Vf)) / (Em)] + [(sqrt(Vf)) / (E2f * sqrt(Vf) + (1 - sqrt(Vf)) * Em)]
%G12c = Gm * [((Gm + G12f) - Vf*(Gm - G12f)) / ((Gm + G12f) + Vf * (Gm - G12f))]
%a1c = [E1f * a1f * Vf + Em * am(1 - Vf)] / [E1f * Vf + E1m(1 - Vf)]
a2c = [a2f - (Em / E1c) * v12f * (am - a1f) * (1 - Vf)] * Vf + [am + (E1f / E1c) * vm * (am - a1f) * Vf] * (1 - Vf)
0 个评论
采纳的回答
Sam Chak
2023-9-19
% List of Parameters
E1f = 233;
v12f = 0.200;
E2f = 23.1;
G12f = 8.96;
a1f = -0.540e-6;
a2f = 10.10e-6;
Em = 4.62;
am = 41.4e-6;
vm = 0.360;
Vf = 0.2;
% Equations I would like to 'obtain' with the above 'parameters'
E1c = E1f*v12f + Em*(1 - v12f)
v12c = v12f*Vf + vm*(1 - Vf)
E2c = (1 - sqrt(Vf))/Em + sqrt(Vf)/(E2f*sqrt(Vf) + (1 - sqrt(Vf))*Em)
a2c = (a2f - (Em/E1c)*v12f*(am - a1f)*(1 - Vf))*Vf + (am + (E1f/E1c)*vm*(am - a1f)*Vf)*(1 - Vf)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!