Skip to content

Commit c3e6ab3

Browse files
author
cossio
committed
unnecessary branch
1 parent 6bfabc2 commit c3e6ab3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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)