Hello Paul, > De : Carrico, Paul > Envoyé : vendredi 9 août 2019 13:36 > > What I'm doing wrong? > > function r=%s_gamma_user(a) > r = gamma(a); > endfunction > > A = complex(4,4) > gamma_A = gamma(A > > Limite de récursion atteinte (1000).
You're calling recursively gamma without an end condition. It seems that gamma() looks like function r=gamma(a) if isreal(a) then <usual gamma function> else r=%s_gamma_user(a) endfunction So you should define how to compute the gamma of a complex yourself. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users