Assignment 2 Matlab
Assignment 2 Matlab
syms s v t
s = 12*t^2-t^3;
v=diff(s,t);
subs(v,t,5/2)
ans = 41.2500
%3
syms x y
y=log(sqrt(1+(tan(x).^2)));
diff(y,x,2);
subs(w,x,0)
ans = 1
%8
syms x y
y=1/(2*sin(x)-cos(x)+3);
h=int(y,x)
h = atan(2*tan(x/2) + 1)
%9
z= y.^(3/2)/3-y^(1/2);
h=int(y,x,1,9)
h = pi - atan(2*tan(1/2) + 1) + atan(2*tan(9/2) + 1)