Skip to content

Commit 4933631

Browse files
Merge pull request #236 from JuliaDiffEq/+
add multi-+ derivative
2 parents 06c8686 + c368c9f commit 4933631

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/differentials.jl

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ for (modu, fun, arity) ∈ DiffRules.diffrules()
109109
end
110110
end
111111

112+
derivative(::typeof(+), args::NTuple{T,Operation}, ::Val{i}) where {T,i} = args[i]
113+
112114
function count_order(x)
113115
@assert !(x isa Symbol) "The variable $x must have an order of differentiation that is greater or equal to 1!"
114116
n = 1

0 commit comments

Comments
 (0)