[Top][All Lists]

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

quad function problems and parameter passing

From: William Peters
Subject: quad function problems and parameter passing
Date: Sat, 20 May 2000 23:05:47 -0700

I am having trouble using the quad function.  The first time I invoke the
function it works fine, but afterwards it gives an error.  For example:

octave:1>  quad('sin',0,pi)
ans = 2
octave:2>  quad('sin',0,pi)
error: quad: invalid recursive call
error: evaluating index expression near line 2, column 2

I am using version 2.0.15.  Is this a bug that has been fixed in later

Another question:  Is there a way to pass additional parameters to funtions
when using quad or fsolve?  I've encountered many cases where this comes in
handy.  I've been able to get around this by using global variables, but
it's a kludge.

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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