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

I need help, I\'m not getting results for number 7 in matlab. Define then evalua

ID: 2293976 • Letter: I

Question

I need help, I'm not getting results for number 7 in matlab.

Define then evaluate the following functions in MATLAB by substitution using "subs" command, all numbers must have decimal points with 4 significant digits (use vpa as in problem 6) 7. f(x. y,z)- (Vzx +2) xy15 + 2tan (/4x 'zy)+ In(7y/z)+7.6531; y-4.z 376,x remains. b. (s2 1)e-sto (s) = s3 + 4s2 + (r + 3)s2 + (K + 1)s + 4. @ K = 4, ? = 1.33, to = 0.5, s remains. vpa (v, a). This Example: syms x y z; f x^2 + y + z; v-, s substitutes x 1.8 ubs (f,(x,y),(1.89,2)), 9 and y 2 inf, z remains. All numbers would have decimal points with 4 significant digits

Explanation / Answer

syms x y z
f(x,y,z)=( sqrt((z.*x)+2).*(x^2).*(y^1.5)) + (2.*tan(sqrt(4.*x^2.*z.*y)))+ log((7.*y)./(z)) + 7.6531;
res1=subs(f ,[x,y,z],[sym('x'),4,3.76]);
f1=vpa(res1,4)

syms s tau t k
y(s)=((s^2+1).*exp(-s.*t))/( s^3 + 4.*s^2 + (tau+3).*s^2 + (k+1).*s + 4);
res2=subs(y ,[t,tau,k,s],[0.5,1.33,4,sym('s')]);
f2=vpa(res2,4)

your code is absolutely correct but small mistake in subs pre-define function

i.e unvalued variables or remains variables defiend by using '' sym('remains variable name') ''

****** Thank you sir/madam *********