ME356 Software Matlab Project Solve system of equations with 4 unknowns, V, D, R
ID: 3216150 • Letter: M
Question
ME356 Software Matlab Project Solve system of equations with 4 unknowns, V, D, Re, f Name VD 2.51 Re _ 0.0000 1655 20- 150 20: 2010g,oReT RDT D 29.81) 2981) :// 4 Note: (Name-(value of the first letter for your first name value of the first letter for your Last name)/100 ]. If the first letter is A, your name is worth 1, if the first letter is Z, your name is worth 26 Write your name in the program and show the values of both your first letters too Solution will satisfy the following conditions, All unknowns must have at least 3 significant digits and be within the following range 0Explanation / Answer
MATLAB code:
syms V D Re f
%declaring equations
eqn1 = V*PI*D.^2 == 0.20;
eqn2 = Re * 0.00001655 - V*D == 0
eqn3 = D*2*9.81 - 150*f*V.^2 == 0
eqn4 = 1/sqrt(f) + log(2.51/Re*sqrt(f)) == 0
sol = solve([eqn1, eqn2, eqn3, eqn4], [V,D,Re, f]);
vSol = sol.V
dSol = sol.D
ReSol = sol.Re
fSol = sol.f
%displaying results
disp(vSol)
disp(dSol)
disp(ReSol)
disp(fSol)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.