Re: [sympy] Inconsistency between mathematical functions

2023-06-19 Thread Aaron Meurer
The automatic evalf logic in Function only calls evalf if every argument is a float. It wasn't really designed for functions like besselj where one argument is supposed to be an integer. It should probably be updated to also automatically evalf if one argument is a float and the rest are integers.

[sympy] Inconsistency between mathematical functions

2023-06-19 Thread David Bailey
I wonder if anyone here can explain why some mathematical functions - e.g. sin and gamma evaluate completely if given a floating point argument, while others such as besselj(0,0.2) only evaluate completely if .evalf() is used. Is this behaviour intentional? Best Wishes, David -- You receive

Re: [sympy] How to obtain explicit formula of coefficients for generating functions

2023-06-19 Thread Oscar Benjamin
On Sat, 17 Jun 2023 at 03:42, Melis Gezer wrote: > > Is there any function to obtain an explicit formula of coefficients for > generating functions? > > It should give, for example, (1/(n+1))C(2n,n) if I gave the generating > function of Catalan numbers. I don't understand exactly what you are