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

solve the question using matlab program Problem 2: Symbolic algebra (12 points)

ID: 2292989 • Letter: S

Question

solve the question using matlab program

Problem 2: Symbolic algebra (12 points) Suppose that a function y is defined as: ycos(21+0.3) 1. 2. Write the function y using symbolic algebra. Define a variable named result to evaluate the integral of y between the limits 0.1 and ?/3: 3 result-cos(2t+0.3) 0.1 Hint to display the result as double with decimal point, use the double function as double (result) 3. Plot the function y using the ezplot function and add title, x and y-labels to it. 4. Evaluate the third derivative of y at t /6 which can be written as ? d3 ory(5)

Explanation / Answer

clc
clear all
syms t
y=cos(2*t+0.3)
result=int(y,0.1,pi/3)
double(result)
ezplot(y)
% third derivative of y
r=diff(y,3)
% value of derivative at t=pi/6
result_2=subs(r,pi/6)
double(result_2)