Closed RobinHankin closed 1 year ago
The polynomials of a single variable x, with integer coefficients, form a free abelian group under polynomial addition, with the powers of x as a basis. So we could use either mvp
or polynom
. But this is not particularly "nice", and in any event I would need to code up vectorized operations somehow.
See the frab
package at https://cran.r-project.org/package=frab
The free abelian group should be implemented using the STL map class.
On the other hand it might be better to dispense with symbolics and use strictly positive integers instead:
This would be more consistent with the rest of the package. The issue is similar to the Great Rewrite of the
hyper2
package where I changed old-style to new-style.Another issue is whether or not this functionality is sufficiently distinct from the rest of the package to have its own package.