Skip to content

Commit

Permalink
add multi-+ derivative
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Feb 7, 2020
1 parent 12740a9 commit c368c9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/differentials.jl
Expand Up @@ -109,6 +109,8 @@ for (modu, fun, arity) ∈ DiffRules.diffrules()
end
end

derivative(::typeof(+), args::NTuple{T,Operation}, ::Val{i}) where {T,i} = args[i]

function count_order(x)
@assert !(x isa Symbol) "The variable $x must have an order of differentiation that is greater or equal to 1!"
n = 1
Expand Down

0 comments on commit c368c9f

Please sign in to comment.