Open polhager opened 12 months ago
ForwardDiff has a custom number type D
and claims that d::D + x
should be evaluated as d + D(x)
.
Symbolics has a custom number type N
and claims that n::N + x
should be evaluated as n + N(x)
.
The question now is, what should d + n
evaluate to? Without cooperation between ForwardDiff and Symbolics, there is no way to tell. Could maybe be added as an extension?
Arithmetic operations between
Num
andDual
based onNum
is not clearly defined. The basic usecase is this:The error given by the last line is this
This seems to be the case for (at least) all basic arithmetic operations. Not sure if this should be fixed here or in Symbolics.jl.