Skip to content

Commit

Permalink
Merge pull request #48 from stevengj/patch-1
Browse files Browse the repository at this point in the history
add sinc differentiation rule
  • Loading branch information
mcabbott authored Jul 4, 2021
2 parents 6719a39 + 0138ca2 commit df90af7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
@define_diffrule Base.asech(x) = :( -inv($x * sqrt(1 - $x^2)) )
@define_diffrule Base.acsch(x) = :( -inv(abs($x) * sqrt(1 + $x^2)) )
@define_diffrule Base.acoth(x) = :( inv(1 - $x^2) )
@define_diffrule Base.sinc(x) = :( cosc($x) )
@define_diffrule Base.deg2rad(x) = :( π / 180 )
@define_diffrule Base.mod2pi(x) = :( isinteger($x / 2pi) ? NaN : 1 )
@define_diffrule Base.rad2deg(x) = :( 180 / π )
Expand Down

0 comments on commit df90af7

Please sign in to comment.