help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: complex line integral in octave


From: c.
Subject: Re: complex line integral in octave
Date: Tue, 16 Apr 2013 11:34:59 +0200

On 16 Apr 2013, at 00:02, Stephen Montgomery-Smith <address@hidden> wrote:

> This is a programming issue, not mathematics.  If you look at "help
> quad" you will see that the function takes only one parameter.  The
> other parameters, La,Lb,Lc,Ia,Ib,Ic,RC, will have to be passed in some
> other manner.  My suggestion would be to use global variables.

the recommended way of doing this is by using a specialized anonymous 
function rather than global variables, i.e. something like:

function g1=complexfunction1(La,Lb,Lc,Ia,Ib,Ic,RC,t)
 ...
endfunction


qaud (@(t) complexfunction1(La,Lb,Lc,Ia,Ib,Ic,RC,t), tmin, tmax)

c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]