Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please solve using MatLab and provide code. Answers: x = 0.9149, y = 10.95, z =

ID: 3790549 • Letter: P

Question

Please solve using MatLab and provide code. Answers: x = 0.9149, y = 10.95, z = 7.665.

Asked the same question before I was given this code

syms x y z
eqn1 = x^2 * y - z == 1.5;
eqn2 = x - (3*(y^0.5)) + xz == -2;
eqn3 = x + y -z == 4.2;
sol = solve([eqn1, eqn2, eqn3], [x, y, z]);
xSol = sol.x
ySol = sol.y
zSol = sol.z

and it does not give a finite number. Please do not solve if you cannot get the correct values.

1-53 GES Solve this system of three equations with three unknowns using EES: y z 1.5 x y 4.2

Explanation / Answer

syms x y z
sol = solve([ x^2 * y - z == 1.5, x - (3*(y^0.5)) + x*z == -2, x + y -z == 4.2], [x, y, z], 'Real', true);

xSol = sol.x
ySol = sol.y
zSol = sol.z