[Scilab-users] gamma function overloading

Samuel Gougeon sgougeon at free.fr
Fri Aug 9 12:40:46 CEST 2019


Le 09/08/2019 à 11:52, Carrico, Paul a écrit :
>
> Dear All
>
> In the Scilab doc it’s mentioned that gamma function can be overloaded 
> by complex number, but how to proceed?
>
> A= _complex_(4,4)
>
> gamma_A= gamma(A)
>
> à la ligne    12 de la fonction %s_gamma ( 
> C:\scilab-6.0.2\modules\special_functions\macros\%s_gamma.sci ligne 22 
> ) dans la fonction native gamma
>
> %s_gamma: Function not defined for the given argument type.
>
> Check arguments or define function %s_gamma_user() for overloading.
>

--> function r = %s_gamma_user(a)
   >     r = [];
   >     disp("OK")
   > endfunction


--> gamma(%i)
  OK
  ans  =
     []

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190809/6d072df4/attachment.htm>


More information about the users mailing list