Oscar Benjamin

Results 1764 comments of Oscar Benjamin

> Is there any way to have the docs continuously keep building whenever it detects a change Sphinx does have way to do this but it only works when you...

> What do I have to run? I haven't tried it with sympy's docs but what you are looking for is autobuild: https://pypi.org/project/sphinx-autobuild/

The SymPy implementation here is particularly inefficient because it does not make use of FLINT/GMP for the integer/rational arithmetic and it is intended for symbolic inputs so it has a...

> I then wish to evaluate df at many values of n With SymPy the usual way to do this is with `lambdify` which turns the expression into a callable...

Thanks you for looking into this but I don't think that is the right approach. Calling expand in `normal_ordered_form` may be reasonable but does not fix the actual bug. Instead...

Please don't post the output of an LLM as if it is a comment from yourself. It is a really bad idea to do that because it explains nothing and...

Okay well we are back to the same point again: the root cause of the bug needs to be identified.

I'm sorry but I don't understand what you are saying and I am still not convinced that the cause of the bug has been identified.

I don't think that there is any infinite loop. It just sometimes is slow: ```console $ time python t.py 0.004999999999994173 real 0m26.093s user 0m26.016s sys 0m0.072s $ time python t.py...

This seems to be the fix: ```diff diff --git a/sympy/core/evalf.py b/sympy/core/evalf.py index 55a9810903..8dc85a2fb4 100644 --- a/sympy/core/evalf.py +++ b/sympy/core/evalf.py @@ -617,10 +617,11 @@ def evalf_add(v: 'Add', prec: int, options: OPT_DICT) ->...