Is there a way to substitute a set of variables to become a new variable?
3 views (last 30 days)
Hi experts. I really need help here. I want to substitute R = P*a*b/2*k in my Equation_1 and Equation_2. However, the subs function only can change as single variable. I dont know how to do this. Thank you!
This is my script:
alpha_1 = 2*v1/l
alpha_2 = 2*v2/l
L1 = 0.5*P*V^2*a*b*l*alpha_1
L2 = 0.5*P*V^2*a*b*l*alpha_2
Equation_1 = (k*(v1-v2)*(l/2)) == (L1*l/4)
Equation_2 = (k*(2*v2-v1)*(l/2)) == (L2*l/4)
here I want to do the substitution as R = R = P*a*b/2*k in my Equation_1 and Equation_2