Skip to content

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

4 participants