Oscar Benjamin

Results 104 issues of Oscar Benjamin

I looked in both of these pages and I can't find any mention of the fact that SymPy can compute integrals numerically: https://docs.sympy.org/latest/modules/integrals/integrals.html https://docs.sympy.org/latest/tutorial/calculus.html#integrals SymPy's numeric integration (from mpmath) is...

Easy to Fix
Documentation

From SO: https://stackoverflow.com/questions/65379312/can-sympy-calculate-the-probability-from-a-piecewise-joint-pdf ```python from sympy import * from sympy import Indexed, Piecewise, exp, Eq from sympy.stats import JointRV, P x1, x2 = (Indexed('x', i) for i in range(1,3)) #...

stats

#### References to other Issues or PRs See gh-25192 #### Brief description of what is fixed or changed #### Other comments #### Release Notes NO ENTRY

solvers
polys

While investigating gh-21907 I realised that the cause of the problem there is that roots returns complicated trig expressions: ```python In [2]: roots(x**7 + 1, x) Out[2]: ⎧ ⎛π⎞ ⎛π⎞...

solvers
polys
solvers.nonlinsolve

The use of `nsimplify` here leads to incorrect results: https://github.com/sympy/sympy/blob/e2cadc140cc969fea038240a39961a66a2f3dd6d/sympy/functions/elementary/exponential.py#L1047-L1048 This series should just be all zero terms: ```python In [3]: g1 = 2*acosh(1+2*z/3)-acosh(S(5)/3-S(8)/3/(z+4)) In [4]: g3 = 2*log(sqrt((z+4)/3)*(sqrt(z+3)+sqrt(z))**2/(2*sqrt(z+3)+sqrt(z))) In...

series

Should SymPY adopt NEP 29? https://numpy.org/neps/nep-0029-deprecation_policy.html It prescribes a policy for how long to support different Python versions (and numpy versions) for the scientific Python ecosystem. The relevant part for...

Uncategorised

#### References to other Issues or PRs Fix for gh-25134 on the master branch. #### Brief description of what is fixed or changed #### Other comments #### Release Notes *...

core
Merge conflict

#### References to other Issues or PRs See also long discussion in gh-17945 #### Brief description of what is fixed or changed Adds type hints for various attributes and methods...

core
mypy
pyright

### Subject of the issue I am trying to follow the instructions for push-to-fork with a machine user from here: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork It currently succeeds in pushing to the machine account's...

#### References to other Issues or PRs Fizes gh-26239 #### Brief description of what is fixed or changed #### Other comments #### Release Notes NO ENTRY

CI