Skip to content

Commit 0aa8c72

Browse files
authored
Merge pull request #77 from cossio/compat
Increase Julia compat 1.3
2 parents 9b3797c + c3e6ab3 commit 0aa8c72

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
version:
27-
- '1.0'
27+
- '1.3'
28+
- '1.6'
2829
- '1'
2930
- 'nightly'
3031
os:

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DiffRules"
22
uuid = "b552c78f-8df3-52c6-915a-8e097449b14b"
3-
version = "1.6.0"
3+
version = "1.7.0"
44

55
[deps]
66
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
@@ -12,7 +12,7 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1212
LogExpFunctions = "0.3.2"
1313
NaNMath = "0.3"
1414
SpecialFunctions = "0.8, 0.9, 0.10, 1.0, 2"
15-
julia = "1"
15+
julia = "1.3"
1616

1717
[extras]
1818
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/rules.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ _abs_deriv(x) = signbit(x) ? -one(x) : one(x)
8383
@define_diffrule Base.:\(x, y) = :( -($y / $x / $x) ), :( one($y) / ($x) )
8484
@define_diffrule Base.:^(x, y) = :( $y * ($x^($y - 1)) ), :( ($x isa Real && $x<=0) ? Base.oftype(float($x), NaN) : ($x^$y)*log($x) )
8585

86-
if VERSION < v"0.7-"
87-
@define_diffrule Base.atan2(x, y) = :( $y / ($x^2 + $y^2) ), :( -$x / ($x^2 + $y^2) )
88-
else
89-
@define_diffrule Base.atan(x, y) = :( $y / ($x^2 + $y^2) ), :( -$x / ($x^2 + $y^2) )
90-
end
86+
@define_diffrule Base.atan(x, y) = :( $y / ($x^2 + $y^2) ), :( -$x / ($x^2 + $y^2) )
9187
@define_diffrule Base.hypot(x, y) = :( $x / hypot($x, $y) ), :( $y / hypot($x, $y) )
9288
@define_diffrule Base.log(b, x) = :( log($x) * inv(-log($b)^2 * $b) ), :( inv($x) / log($b) )
9389

0 commit comments

Comments
 (0)