Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created May 8, 2012 09:49
Show Gist options
  • Save hidsh/2633925 to your computer and use it in GitHub Desktop.
Save hidsh/2633925 to your computer and use it in GitHub Desktop.
scilab: recursive call test
function y=my_fact(n)
if n==1 then
y=1;
else
y=n*my_fact(n-1);
end
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment