You are on page 1of 3

//NAME-JATIN KUMAR//

//ROLL NO.-710//

//Cauchy Integral Evaluation//


clc;clear;clf

function y=f(z)

y=1/(z^2)

endfunction

I=intc(-1+%i, 1+2*%i, f)

disp(I,"Contour Integration of f(z) along St. line")

disp("Part= B :-")

function y=f1(z)

y=1/(z^2)

endfunction

I=intl(%pi,%pi/2,0,2,f1)

disp(I,"value of CI along a quater circle")

D=intc(-2,2*%i,f1)

disp(D,"value of CI along st. line")

disp("Part= C :- ")

funcprot(0)

function y=f2(z)

y=1/z

endfunction

q=intl(0,2*%pi,0,1,f2)
disp(q,"cauchy integral over a closed path of raius 1")

w=intl(0,2*%pi,0,2,f2)

disp(w,"cauchy integral over a closed path of raius 2")

disp("Part= D :- ")

function y=f3(z)

y=1/(z-1)

endfunction

r=intl(0,2*%pi,1,2,f2)

disp(r,"cauchy integral over a closed path of raius 2")

t=intl(0,2*%pi,1,3,f2)

disp(t,"cauchy integral over a closed path of raius 3")

disp("Part= E :- ")

funcprot(0)

function y=f4(z)

y=1/((z^2)+2)

endfunction

u=intl(0,%pi/2,0,2,f4)

disp(u,"cauchy integral over a closed path of raius 2")

o=intc(2,2*%i,f4)

disp(o,"cauchy integral along a st. line from 2 to 2i")


RESULT:- Contour Integration of f(z) along St. line = - 0.7 - 0.1i

Part= B :-

value of CI along a quater circle = - 0.5 + 0.5i

value of CI along st. line = - 0.5 + 0.5i

Part= C :-

cauchy integral over a closed path of raius 1 = 8.064D-17 + 6.2831853i

cauchy integral over a closed path of raius 2 = 8.064D-17 + 6.2831853i

Part= D :-

cauchy integral over a closed path of raius 2 =- 1.286D-16 + 6.2831853i

cauchy integral over a closed path of raius 3 = - 1.259D-16 + 6.2831853i

Part= E :-

cauchy integral over a closed path of raius 2 = 0.4352099 + 0.6232252i

cauchy integral along a st. line from 2 to 2i = 0.4352099 + 0.6232252i

You might also like