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

RenormalizedAngularMomentum fails with FindRoot method and small frequency #2

Open
barrywardell opened this issue Sep 2, 2019 · 2 comments

Comments

@barrywardell
Copy link
Member

The FindRoot method in RenormalizedAngularMomentum currently fails when given a very low frequency. For example the following returns $Failed:

RenormalizedAngularMomentum[-2, 2, 0, 0, 0.00001, 4, Method -> "FindRoot"]

as does the same thing with a good initial guess:

RenormalizedAngularMomentum[-2, 2, 0, 0, 0.00001, 4, Method -> {"FindRoot", "InitialGuess" -> 2}]

barrywardell added a commit that referenced this issue Sep 2, 2019
These has instead been added to the issue tracker as issue #2.
@barrywardell
Copy link
Member Author

The test case has changed since commit 95a805b. A new example is
RenormalizedAngularMomentum[-2, 2, 0, 0, 0.000005, 4, Method -> {"FindRoot", "InitialGuess" -> 2}]

@barrywardell
Copy link
Member Author

A simple fix is to use higher precision, i.e.

RenormalizedAngularMomentum[-2, 2, 0, 0, 0.000005`32, 4, 
 Method -> {"FindRoot", "InitialGuess" -> 2.000000001`32}]

We could consider using the series expansion in this case.

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