Skip to content

Commit 15948cf

Browse files
committed
More special cases
1 parent 0798a86 commit 15948cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/runtests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ for (M, f, arity) in DiffRules.diffrules(; filter_modules=nothing)
5656
elseif $(f === :log)
5757
# avoid singularities with finite differencing
5858
rand() + 1.5, rand()
59-
elseif $(f === :^)
59+
elseif $(f in (:^, :pow))
6060
# avoid singularities with finite differencing
6161
rand() + 0.5, rand()
62+
elseif $(f === :logbeta)
63+
# avoid singularities with finite differencing
64+
rand() + 0.5, rand() + 0.5
6265
else
6366
rand(), rand()
6467
end

0 commit comments

Comments
 (0)