[scilab-Users] recursion using fsolve

Michaël Baudin michael.baudin at scilab.org
Wed Jun 23 09:23:35 CEST 2010


Dear Sir,

I think that I understand the problem.
The bug is similar to the bug 1657:
http://bugzilla.scilab.org/show_bug.cgi?id=1657
where the ode function shows its limits.
The call tree is :

test > fsolve > f3 > fsolve > f2

This has a clear meaning and is correct.
But fsolve has the same limitation as ode: even if the computation
makes perfect sense, it cannot be done because of a limitation
of Scilab's interpreter and, may be, a limitation of the fsolve routine 
itself.
In the body of f3, we cannot call fsolve because it is
already in the call stack. This error is generated at the interpreter
level. The reason behind the generation of this error is not clear:
it might be a limitation of the interpreter, or a limitation of the fsolve
routine itself, which may use static variables.
You should create a bug report so that we can check that
the bug is fixed in Scilab v6.

Best regards,

Michaël Baudin
   

Charles Basenga Kiyanda a écrit :
> I need to use the fsolve command within itself (obviously with a 
> different residual function) and scilab keeps returning error 22, 
> recursion problems. There actually is no recursion problem as I can 
> use the second call of fsolve on its won and the correct solution is 
> returned. I'm thinking the algorithm which detects recursion problems 
> is returning a false positive. I'm using scilab version 5.1.1 on 
> linux. Is this a problem which was addressed in the 5.2 line?
>
> I'm including a sample script which reproduces the problem.
>
> Thanks,
>
> Charles


-- 
Michaël Baudin
Ingénieur de développement
michael.baudin at scilab.org
-------------------------
Consortium Scilab - Digiteo
Domaine de Voluceau - Rocquencourt
B.P. 105 - 78153 Le Chesnay Cedex
Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94





More information about the users mailing list