Learn R Programming

polyMatrix (version 0.3.1)

const.polyMatrix: The constant of a polynom or a polynomial matrix

Description

Returns the constant of a polynom class object or the constant matrix of a polyMatrix class object.

Usage

const(p)
       # S3 method for polynomial
const(p)
       # S3 method for polyMatrix
const(p)

Arguments

p

a polynomial or polyMatrix class object

Value

A numeric object, containing the constant of the given polynom, or of a matrix class object which contains the constant matrix of the given polynomial matrix.

See Also

coefs, lead

Examples

Run this code
# NOT RUN {
p<-polynom::polynomial(0:12)
const(p)

pa<-polyMgen.a(2,2)
pa
const(pa)

pb<-polyMgen.b(2,2)
pb
const(pb)

pc<-polyMgen.c(2,2)
pc
const(pc)

pd<-polyMgen.d(2,2)
pd
const(pd)

# clean up
# rm(p, pa, pb, pc, pd)
# }

Run the code above in your browser using DataLab