[Scilab-users] error 26 Too complex recursion!
haasejos
haasejos at web.de
Wed Mar 6 09:52:42 CET 2013
hello,
thank you for your answers.
I tried several examples (see results as comments)
*clear; xdel; clc;
function [gg1]=g1(xi);
//disp('function g1 vor gg1 = ...');
//pause;
gg1=toto(xi)*exp(imult(-2*nn*%pi*xi/L));
//gg1=exp(-%i*2*nn*%pi*xi/L);
endfunction;
function [aaa]=a1(nn);
//disp('function a1');
//pause;
aaa=(2/L)*intc(c0,c0+L,g1);
endfunction;
function y = toto(x);
//disp(x);
if x <= %pi then;
y = 1;
else;
y = -1;
end
endfunction;
//!--error 24
//Convergence problem...
//at line 14 of function intc called by :
//at line 4 of function a1 called by :
//a = [a a1(1)];
//at line 55 of exec file called by :
//versuche5Maerz13\versuch1.sce', -1
// function [y]=toto(x);
// y=x-x^2;
// endfunction;
// //- 4. - 10.566371i
// function y = toto(x);
// y = exp(x);
// endfunction;
// //85.066989 + 85.066989i
// function y = toto(x);
// y = sin(x);
// endfunction;
// !--error 24
// //Convergence problem...
// //at line 14 of function intc called by :
// //at line 4 of function a1 called by :
// //a = [a a1(1)];
// //at line 47 of exec file called by :
// //versuche5Maerz13\versuch1.sce', -1
c0=0;
L = 2*%pi;
x = (0 : %pi/100 : L);
y=[];
for j =1:length(x);
y=[y toto(x(j))];
end;
nn = 1;
a = [];
a = [a a1(1)];
disp(a);*
--
View this message in context: http://mailinglists.scilab.org/error-26-Too-complex-recursion-tp4026126p4026158.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list