Skip to content

Commit

Permalink
Merge cecf051 into 117ef72
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapp authored Jun 18, 2018
2 parents 117ef72 + cecf051 commit 04cdac1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@
@define_diffrule Base.acoth(x) = :( inv(1 - $x^2) )
@define_diffrule Base.deg2rad(x) = :( π / 180 )
@define_diffrule Base.rad2deg(x) = :( 180 / π )
@define_diffrule Base.gamma(x) = :( digamma($x) * gamma($x) )
@define_diffrule Base.lgamma(x) = :( digamma($x) )
if VERSION < v"0.7-"
@define_diffrule Base.gamma(x) = :( digamma($x) * gamma($x) )
@define_diffrule Base.lgamma(x) = :( digamma($x) )
else
@define_diffrule SpecialFunctions.gamma(x) = :( digamma($x) * gamma($x) )
@define_diffrule SpecialFunctions.lgamma(x) = :( digamma($x) )
end
@define_diffrule Base.Math.JuliaLibm.log1p(x) = :( inv($x + 1) )
@define_diffrule Base.transpose(x) = :( 1 )
@define_diffrule Base.abs(x) = :( signbit($x) ? -one($x) : one($x) )
Expand Down

0 comments on commit 04cdac1

Please sign in to comment.