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

Add more ChainRules derivatives #348

Merged
merged 5 commits into from
Sep 24, 2021

Conversation

devmotion
Copy link
Member

@devmotion devmotion commented Sep 22, 2021

This PR adds and tests derivatives for

  • airyaix
  • airyaiprimex
  • logerfc
  • logerfcx
  • erf(x, y)
  • besselkx
  • hankelh1x
  • hankelh2x

It also replaces irrationals in derivatives with constants from IrrationalConstants. This fixes #307.

@codecov
Copy link

codecov bot commented Sep 23, 2021

Codecov Report

Merging #348 (661ee35) into master (1b7a377) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
+ Coverage   92.23%   92.33%   +0.09%     
==========================================
  Files          12       12              
  Lines        2717     2725       +8     
==========================================
+ Hits         2506     2516      +10     
+ Misses        211      209       -2     
Flag Coverage Δ
unittests 92.33% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/chainrules.jl 100.00% <100.00%> (ø)
src/beta_inc.jl 89.02% <0.00%> (+0.15%) ⬆️
src/gamma_inc.jl 92.79% <0.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b7a377...661ee35. Read the comment docs.

src/chainrules.jl Outdated Show resolved Hide resolved
src/chainrules.jl Outdated Show resolved Hide resolved
@stevengj stevengj merged commit 74fd16f into JuliaMath:master Sep 24, 2021
@devmotion devmotion deleted the dw/more_chainrules branch September 24, 2021 19:40
@devmotion
Copy link
Member Author

Maybe it's time for a new release (possibly after merging the fixes in #347)? The version number is already updated on the master branch.

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

Successfully merging this pull request may close these issues.

Chain rules for certain functions does not respect numerical precision
2 participants