Skip to content

Commit

Permalink
fix: first order symbolic derivative
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Oct 13, 2023
1 parent 7f5f0b1 commit a9719ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/DataInterpolationsSymbolicsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end
SymbolicUtils.promote_symtype(::typeof(derivative), _...) = Real

function Symbolics.derivative(interp::AbstractInterpolation, args::NTuple{1, Any}, ::Val{1})
derivative(interp, Num(args[1]))
Symbolics.unwrap(derivative(interp, Symbolics.wrap(args[1])))
end

end # module

0 comments on commit a9719ea

Please sign in to comment.