gmpoly {gmpoly} | R Documentation |
Define a multivariate polynomial
Description
Define a multivariate polynomial from a string or from its coefficients and powers.
Usage
gmpoly(string, coeffs = NULL, powers = NULL)
Arguments
string |
a string such as |
coeffs |
the coefficients of the polynomial, in case you don't define
it with the |
powers |
the powers of the polynomial, in case you don't define it
with the |
Value
A gmpoly
object.
Examples
library(gmpoly)
gmpoly("5/2 x^(2,3) + 3 x^(1,1)")
gmpoly("5/2 x^(2,3) - 3 x^(1,1)")
gmpoly("-x^(1,2,3) + 4/7 x^(3,1,1)")
library(gmp)
gmpoly(
coeffs = as.bigq(c(5, 7), c(8, 9)),
powers = rbind(c(1, 1, 1), c(2, 2, 2))
)
[Package gmpoly version 1.1.0 Index]