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

more accurate and type-stable sinc/cosc #37273

Merged
merged 5 commits into from
Aug 31, 2020
Merged

more accurate and type-stable sinc/cosc #37273

merged 5 commits into from
Aug 31, 2020

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Aug 29, 2020

Fixes #37227.

(Replaces original algorithm from 2010! 1917197)

Backport?

@stevengj stevengj added maths Mathematical functions bugfix This change fixes an existing bug labels Aug 29, 2020
@stevengj
Copy link
Member Author

MacOS test failure seems unrelated.

@stevengj
Copy link
Member Author

@JeffBezanson, as I mentioned in the issue, I'm curious where you found this definition of the cosc function in 2010. It doesn't seem to be very common; was there a textbook or a paper you were using?

@oscardssmith
Copy link
Member

cosc definitely seems like one that should have moved out of base for 1.0 (maybe sinc too honestly).

@stevengj
Copy link
Member Author

stevengj commented Aug 29, 2020

I added it to ChainRules.jl to differentiate sinc, so now we'll have to maintain it forever. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sinc and cosc inaccuracy and type-instability
3 participants