Skip to content

Commit 20e7134

Browse files
committed
fix tests
1 parent aa7a84a commit 20e7134

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/rules.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ end
9797
abs_to_pow(x::Complex, p),
9898
@setup(u = abs(x)),
9999
(
100-
p == 0 ? Zero() : p * u^(p-1) * Wirtinger(x' / 2u, x / 2u),
100+
p == 0 ? Zero() : let v = p * u^(p-1) / 2u
101+
Wirtinger(x' * v, x * v)
102+
end,
101103
Ω * log(abs(x))
102104
)
103105
)

0 commit comments

Comments
 (0)