You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use DynamicPolynomials.jl for a muliti-variate interpolation task, where I was thrown off guard when the resulting interpolant equates to the constant 0 polynomial.
Then the variable information is lost. In my case, I am not able to differentiate properly and obtain the zero gradient.
but variables(p3) is empty. When using TypedPolynomials we get variables(p3) == [x[1],x[2],].
p1 is a Term and p2 is a sum of two Terms. In contrast, p3 is the product of a Polynomial and a Term.
Hence I suspect this behavior is due to lines 62-63 in the file mult.jl.
The text was updated successfully, but these errors were encountered:
I use DynamicPolynomials.jl for a muliti-variate interpolation task, where I was thrown off guard when the resulting interpolant equates to the constant 0 polynomial.
Then the variable information is lost. In my case, I am not able to differentiate properly and obtain the zero gradient.
Consider
All polynomials are the constant zero polynomial. Using DynamicPolynomials i get
but
variables(p3)
is empty. When using TypedPolynomials we getvariables(p3) == [x[1],x[2],]
.p1
is a Term andp2
is a sum of two Terms. In contrast,p3
is the product of a Polynomial and a Term.Hence I suspect this behavior is due to lines 62-63 in the file
mult.jl
.The text was updated successfully, but these errors were encountered: