We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The function
function differentiate(p, x, deg::Val{N}) where N ... end
is not type stable because sometimes it throws an error. Should this be changed to the following?
function differentiate(p, x, deg::Val{N}) where N for i = 1:deg p = differentiate(p, x) end return p end