Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
42 views

Assignment 2 Matlab

The document contains 4 examples of symbolic differentiation and integration in MATLAB. The first example finds the derivative of a position function and evaluates it at a time of 5/2 seconds. The second example takes the second derivative of a logarithmic function and evaluates it at 0. The third example finds the integral of a rational function of x. The fourth example finds the integral of a function of y from 1 to 9.

Uploaded by

kiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Assignment 2 Matlab

The document contains 4 examples of symbolic differentiation and integration in MATLAB. The first example finds the derivative of a position function and evaluates it at a time of 5/2 seconds. The second example takes the second derivative of a logarithmic function and evaluates it at 0. The third example finds the integral of a rational function of x. The fourth example finds the integral of a function of y from 1 to 9.

Uploaded by

kiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

%1

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)

You might also like