MATLAB: Complex closed contour integral plz explain to me how can I use matlab programe for solution of complex contour integral : example : find ∮((z+1)dz)/(z^3-2z^2 ) around z-2=1 where 1 is Radius of the circle ? when I solution it Manually the result was equal:-π*i Best Answer fun=@(z)(z+1)/(z^3-2*z^2); g=@(theta)2+cos(theta)+1i*sin(theta);gprime=@(theta)-sin(theta)+1i*cos(theta);q1 = integral(@(t) fun(g(t)).*gprime(t),0,2*pi)Best wishesTorsten. Related SolutionsMATLAB: Plz help me ….complex contour integral fun=@(z)exp(2*z)/(1+z)^4;g=@(theta)2*cos(theta)+1i*2*sin(theta);gprime=@(theta)-2*sin(theta)+1i*2*cos(theta);q1 = integral(@(t) fun(g(t)).*gprime(t),0,2*pi)Best wishesTorsten. MATLAB: Closed contour integral complex You need a 'dot' in the definition of 'fun': fun=@(z) (z)./((z.^2+4).*(z-1));The message "Error using ==> mtimes" is the clue to that difficulty. Related QuestionFunction numden() seems to return false solution! Where is the mistakeDouble integral of a dot product error
Best Answer