R/polynomial.coefficients.R

Defines functions polynomial.coefficients

Documented in polynomial.coefficients

polynomial.coefficients <- function( polynomials )
{
#
### This function returns a list with n elements
### containing the vector of coefficients for the polynomials
###
### Parameter
### polynomials = a list of polynomial objects
###
    n <- length( polynomials )
    coefficients <- as.list( rep( NULL, n ) )
    j <- 1
    while ( j <= n ) {
        coefficients[[j]] <- as.vector( polynomials[[j]] )
        j <- j + 1
    }
    return ( coefficients )
}   

Try the orthopolynom package in your browser

Any scripts or data that you put into this service are public.

orthopolynom documentation built on Oct. 3, 2022, 5:08 p.m.