On Fri, Apr 15, 2022 at 5:01 PM David Bailey <[email protected]> wrote:
>
> Thanks again for a near instantaneous reply!
>
> On 15/04/2022 23:39, Aaron Meurer wrote:
> >
> > You are calling arg[0], but arg is already the argument of the
> > function. The [0] is typically only used when you have *args to accept
> > an arbitrary number of arguments and you want to get the first one.
>
> OK - that has fixed it after I corrected another minor error!
>
> Just one possible use for this mechanism would be to  create a function
> gamma() (say) which would contain all the original code from gamma in
> SymPy, and then add calls to print to clarify how it works. I assume
> that the line
>
> import gamma from gamma
>
> would replace the official version with this modification and everything
> would work as expected?

Yes, it ought to.

Aaron Meurer

>
> David
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/b3d0f8e3-95ca-26e1-1021-9e91995fd883%40dbailey.co.uk.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B-KZEZjmXg40G4b%3DqzEcuxxKUdRmZ3L62F5jj4S5Dqdw%40mail.gmail.com.

Reply via email to