<div dir="ltr">Hello,<div><br></div><div>I am trying to understand how to work the Cauchy integral inputs and replicate the results of a published example:</div><div><br></div><div>.e.g. Compute the integral of e^(z^2) / (z-2) assumes C is closed (anticlockwise) and z=2 is inside C (a simple circle). The solution should be 2*pi*i*f(2) = 2*pi*i*e^4<br></div><div><br></div><div>In Scilab, the solution is defined from the Cauchy Integral (intl):</div>y = intl(a, b, z0, r, f) <br>a and b are real and z complex<div><br></div><div>function y=f(z)<br> y = exp((z^2)) // solution uses f(z) =
e^(z^2) <br>endfunction<br><br>fz=intl(0, 2*%pi, 2+0*%i, 1, f) // gives round-off error<br></div><div>// z position +2(real z), 0(imaginary z) </div><div><br></div><div>Probably not setting up the inputs correctly; any guidance would be helpful. All a learning exercise.</div><div><br></div><div>Thanks</div><div><br></div><div>Lester</div><div><br></div><div><br></div></div>