R/polynomial.integrals.R

Defines functions polynomial.integrals

Documented in polynomial.integrals

polynomial.integrals <- function( polynomials )
{
###
###   This function returns a list with n+1 elements
###   containing the integral of the order k polynomials
###   for orders k=0,1,...,n from zero to x
###
###   Parameter
###   polynomials = a list of polynomial objects
###
   n <- length( polynomials )
   integrals <- as.list( rep( NULL, n ) )
   j <- 1
   while ( j <= n ) {
      integrals[[j]] <- integral( polynomials[[j]] )
      j <- j + 1
   }
   return( integrals )
}

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.