Various tools to manipulate and combine multivariate polynomials
Basically, coerce an array to a multivariate polynomial (a
Taking a matrix
a as an example, because this has two dimensions
it may be viewed as a bivariate polynomial with
a[i,j] being the
coefficient of x^i.y^j. Note the off-by-one issue; see
Multivariate polynomials of arbitrary arity are a straightforward generalization using appropriately dimensioned arrays.
Arithmetic operations “
^” operate as though their arguments
are multivariate polynomials.
Even quite small multipols are computationally intense; many coefficients have to be calculated and each is the sum of many terms.
The package would benefit enormously by being able to use a sparse array class.
Robin K. S. Hankin
1 2 3 4 5 6 7 8 9 10 11 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.