Hello,
I would like to use mathscript to code some recursive function,
So, I tried to code the classical factorial function :
function answer = factorielle(n)
if( n == 0 )
answer = 1;
return;
else
answer = n*factorielle(n-1);
end
But it seems that it is not working...
Is my code wrong ? or is recursivity not working ?
Thank,
Pierre