Hi guys,
I am perforning a task where one of the equations I am creating comes out very long and cumbersome. I am using the simplify function to simplify it, but I think I can see that it can be simplified more. I don't know why MATLAB isn't taking it all the way.
So, I was wondering if there is anyway I can get MATLAB to simplify it further? The equation of interest is KC in the code.
syms Icm Ic Ib Acm Ac Ab L1 L2 z1 z2 Ig F Kc1 Kc2 Kb1 Kb2 Vx H
A1 = (Vx*(H-z1)/2)*18/Ig*Acm - ((Vx-F)*(H-z2)/2)*18/Ig*Acm;
A2 = ((Vx*(H-z1)/2)*6/Ig*Ac - ((Vx-F)*(H-z2)/2)*6/Ig*Ac) + (Vx*(H-z1)/2)*18/Ig*Acm - ((Vx-F)*(H-z2)/2)*18/Ig*Acm;
v2 = simplify((6*A1 + 3*A2)/4);
v3 = simplify((3*A2 + 3*A2)/4);
KC = simplify((1/ks1 + 1/ks2 + 1/ks3 + 1/ks2 + 1/ks1)^-1)
I recommend running the code in a live script because the notation is a lot nicer and easier to read.
Many thanks