Re: [sympy] Inconsistency between mathematical functions

2023-06-20 Thread David Bailey
On 20/06/2023 00:47, Aaron Meurer wrote: 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

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