[Scilab-users] Cauchy Integral query

Lester Anderson arctica1963 at gmail.com
Wed Jan 5 09:46:47 CET 2022


Hello,

I am trying to understand how to work the Cauchy integral inputs and
replicate the results of a published example:

.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

In Scilab, the solution is defined from the Cauchy Integral (intl):
y = intl(a, b, z0, r, f)
a and b are real and z complex

function y=f(z)
  y = exp((z^2)) // solution uses f(z) =  e^(z^2)
endfunction

fz=intl(0, 2*%pi, 2+0*%i, 1, f) // gives round-off error
// z position +2(real z), 0(imaginary z)

Probably not setting up the inputs correctly; any guidance would be
helpful. All a learning exercise.

Thanks

Lester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220105/3ad7509c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cauchy integral.PNG
Type: image/png
Size: 28459 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20220105/3ad7509c/attachment.png>


More information about the users mailing list