Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
[compat]
LogExpFunctions = "0.3.2"
NaNMath = "0.3"
SpecialFunctions = "0.8, 0.9, 0.10, 1.0, 2"
SpecialFunctions = "0.10, 1.0, 2"
julia = "1.3"

[extras]
Expand Down
2 changes: 2 additions & 0 deletions src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ _abs_deriv(x) = signbit(x) ? -one(x) : one(x)
@define_diffrule SpecialFunctions.erfi(x) = :( (2 / sqrt(π)) * exp($x * $x) )
@define_diffrule SpecialFunctions.erfcx(x) =
:( (2 * $x * SpecialFunctions.erfcx($x)) - (2 / sqrt(π)) )
@define_diffrule SpecialFunctions.logerfcx(x) =
:( 2 * ($x - inv(SpecialFunctions.erfcx($x) * sqrt(π))) )
@define_diffrule SpecialFunctions.dawson(x) =
:( 1 - (2 * $x * SpecialFunctions.dawson($x)) )
@define_diffrule SpecialFunctions.digamma(x) =
Expand Down