Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coefs

The coefficients of a polynom or polynomial matrix


Description

Returns the coefficients of the given polynom or polynomial matrix.

Usage

coefs(p,degree="all")

Arguments

p

a polynomial or polyMatrix class object

degree

"all" or the serial number of the requested coefficients.

Details

The coefs consists of two methods. One for a polynomial objects, the other one for polyMatrix objects.

Value

A vector of the requested coefficients of the input polynom or a list of the requested coefficient matrices of the input polyMatrix.

See Also

Examples

coefs(polynom::polynomial(12:0))
coefs(polynom::polynomial(12:0),degree=c(2,3))
coefs(polyMgen.a())
coefs(polyMgen.b())
coefs(polyMgen.c())
coefs(polyMgen.d())
coefs(polyMgen.d(),degree=1)

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.