Closed chrhansk closed 1 month ago
It's not implemented for DynamicPolynomials yet, see the discussion in https://github.com/JuliaAlgebra/MultivariatePolynomials.jl/pull/230 We would need to do something very similar to https://github.com/JuliaAlgebra/DynamicPolynomials.jl/blob/005621b454915428fa1a4c6ad72f90dc42b47f6f/src/diff.jl#L1-L10
OK; thank you for the info. It is a bit weird that this causes a StackOverflowError
as opposed to some error signaling that the function is not implemented, which was what confused me.
In principle, this should not be that hard to implement, right? At least the mathematics of it are not particularly hard :)
It is a bit weird that this causes a
StackOverflowError
as opposed to some error signaling that the function is not implemented, which was what confused me.
Yes, it's not ideal, thanks for the PR :)
I am using the following version
[7c1d4256] DynamicPolynomials v0.5.5
in my project. I wanted to compute the antiderivative of a polynomial. TheExamples
sections show the following:However, when I launch julia and try to enter the exact example, I receive a
StackOverflowError
:The complete error is
This shows that the
antidifferentiate
function calls itself ~80k times before the stack memory runs out. Do you have any idea why this is happening?