Jagan Kirchhoff\'s circuit laws are two equalities that deal with the current and potential difference (commonly known as voltage) in the lumped element model of electrical circuits. They were first de PDF

Title Jagan Kirchhoff\'s circuit laws are two equalities that deal with the current and potential difference (commonly known as voltage) in the lumped element model of electrical circuits. They were first de
Course Calculus for Engineers
Institution Vellore Institute of Technology
Pages 7
File Size 362.4 KB
File Type PDF
Total Downloads 84
Total Views 127

Summary

FhjioolKirchhoff's circuit laws are two equalities that deal with the current and potential difference (commonly known as voltage) in the lumped element model of electrical circuits. They were first described in 1845 by German physicist Gustav Kirchhoff.[1] This generalized the work of Georg Ohm and...


Description

Matlab digital assignment 1 Parshwanath.V.Jain Question 1: Code: %To show tangent to curve syms x; y=-sin(x/2); z=diff(y,x); dr=inline(z); m=dr(0); disp(m) c=0;%Since it's at origin line = m*x + c; fplot(y,[-5,5]); hold on; fplot(line,[-3,3]); hold off;

OUTPUT: >>> Daq1 -0.5000

MATLAB:

21BEC0661

Question 2: Code: %To verify LMVT clear clc syms x f(x)=x+exp(3*x); I=[0,1]; % Input the function andinterval a=I(1);b=I(2); Df=diff(f,x); m=(f(b)-f(a))/(b-a); %Slope of Secant Line c=solve(Df==m, x);c=c(a> Daq2 Values of c lying in the interval are 0.6168 MATLAB :

Question 3: Code: %To verify Rolle's Theorum clear clc syms x; y= ((x+2)^2)*((x-3)^4); dr=diff(y,x); f1=inline(dr); f=inline(y); z=solve(dr,x); secant=0;%Value of start and end point of function is 0 rp=-1/3; for i=-2:3 if f1(i)==z rp=i; end end

tangent=f(rp); fplot(y,[-2,3]); hold on fplot(tangent,[-2,3]); fplot(secant,[-2,3]); xlabel('x'); ylabel('y'); title('Demonstration of Rolles theorem'); hold off MATLAB:...


Similar Free PDFs