Solving Derivative, Partial Derivative, Integral, Definite Integral
Solving Derivative, Partial Derivative, Integral, Definite Integral
syms a b c d e g h f1 f2 f3 x y;
%Derivative
f1=3*x^3-4*x^2+5*x-3;
a=diff(f1,x) %First order derivative
b=diff(a,x) %2nd Order derivative
c=diff(b,x) %3rd Order derivative
%Partial derivative
f2=x^2*y+x*y^3-x^3+y^2;
d=diff(f2,x) %Derivative w.r.t x
e=diff(f2,y) %Derivative w.r.t y
%Integral
f3=3*x^3-4*x^3;
g=int(f3,x)
h=int(f3,x,0,5) %Definite Integral
Results:
a = 9*x^2 - 8*x + 5
b = 18*x – 8
c = 18
d = - 3*x^2 + 2*x*y + y^3
e = x^2 + 3*x*y^2 + 2*y
g = -x^4/4
h = -625/4
LAB#10
Introduction:
This lab is based on solving equation.
f2-(0.5)^(n-3);
x2=ztrans(f2) %Z-Transform
Results:
x1 = pi^(1/2)/s^(1/2)
x2 = z/(z - 1)^2
LAB#11
a) Fourier series.
b) Fourier Transform & Inverse Fourier transform.
Program And Simulation:
%Fourier Series
clc
clear all
syms x y
f=exp(-x^2);
fourier(f,x,y)
y=fft(x);
figure;
plot(f,y);
xlabel('Frequency');
ylabel('Amplitude');
title('Fourier Transform');
z=ifft(y);
figure;
plot(t,z);
xlabel('Time');
ylabel('Amplitude');
title('Inverse Fourier Transform');
Results:
Signal:
Fourier Transform :
Inverse Fourier Transform :