Skip to content

Commit bd18679

Browse files
committed
Fix hypot rule
1 parent e24c190 commit bd18679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rulesets/Base/base.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
@scalar_rule(cotd(x), -/ oftype(x, 180)) * (1 + Ω^2))
6363
@scalar_rule(sech(x), -tanh(x) * Ω)
6464
@scalar_rule(csch(x), -coth(x) * Ω)
65-
@scalar_rule(hypot(x, y), (y / Ω, x / Ω))
65+
@scalar_rule(hypot(x, y), (x / Ω, y / Ω))
6666
@scalar_rule(sincos(x), @setup((sinx, cosx) = Ω), cosx, -sinx)
6767
@scalar_rule(atan(y, x), @setup(u = hypot(x, y)), (x / u, y / u))
6868
@scalar_rule(max(x, y), @setup(gt = x > y), (gt, !gt))

0 commit comments

Comments
 (0)