-
Notifications
You must be signed in to change notification settings - Fork 146
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
Incorrect second derivative of sinc nearby zero #466
Comments
I'm not sure how to easily fix this. It might require a good implementation of the derivative. |
The next version of Julia should have an accurate |
@petvana Then we just need a definition for |
I think this issue can be closed now. With the original code above, I now get:
|
As I have already mentioned in julia#37227, the function sinc is numerically unstable nearby zero. The sinc function is especially important for this value because its smoothness is the reason to be utilized, but the second derivative is not computed correctly.
Results:
The second derivative is well defined and the limit at zero is
Is it possible to provide a specific rule for this case? It would be nice to be able to use it directly for NLP in JuMP.
The text was updated successfully, but these errors were encountered: