Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider custom gradients for N-body problems #126

Open
pnkraemer opened this issue Feb 26, 2023 · 0 comments
Open

Consider custom gradients for N-body problems #126

pnkraemer opened this issue Feb 26, 2023 · 0 comments

Comments

@pnkraemer
Copy link
Owner

Many differential equations, for instance the three-body problem or the Pleiades problem involve terms like

f(x, y) = x^1.5 / (x^2 + y^2)^0.5

which leads to differentiability issues around zero especially when considering high-order derivatives of the vector field. For this reason, e.g. https://pnkraemer.github.io/probdiffeq/benchmarks/pleiades/external/ defines its own Pleiades implementation which works with high-order Taylor series (the current implementation in DiffEqZoo does not work in this notebook).

One issue with simply copying the implementation in this notebook is that the numpy backend is not happy with dividing by zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant