Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to use Cauchy integral intc?

7 views
Skip to first unread message

ste...@blueyonder.co.uk

unread,
Nov 10, 2009, 5:20:03 PM11/10/09
to
Dear Scilab Group,
I need to numerically integrate a complex-valued function along the
real line. The easiest way would be to call the Cauchy integral intc.

My function is,

function Hwrkzw=kernel_168_1(kzw,r,z,z1,z2,z3,z4,L,C,gam)
.. some lines..
Hwrkzw=sinhc_fctr*bessl_fctr*AwkkbyC*exp(k*z4)*C;
endfunction;

and I try (the parameters z1,..,gam are all set up),
-->intc(0,1,list(kernel_168_1,0.2,0.042,z1,z2,z3,z4,L,C,gam))
!--error 21
invalid index
at line 2 of function called by :
at line 15 of function intc called by :
intc(0,1,list(kernel_168_1,0.2,0.042,z1,z2,z3,z4,L,C,gam))
-->

Replacing the limits by complex(0,0) and complex(1,0) does not help.
What am I doing wrong?

Yours sincerely
Stephen

Rainer von Seggern

unread,
Nov 12, 2009, 7:39:56 AM11/12/09
to

Hi Stephen, you can't use a list as argument with the function intc.
Rainer

0 new messages