pintegratepintegrate integrates about a finite interval a polynomial function multiplied with a power of x. The density is defined as
$f(x) = \begin{cases} (c_q x^q + c_{q-1} x^{q-1} + \ldots + c_0) x^p dx & \text{ for } a\leq x\leq b\ 0 & \text{ otherwise}\end{cases}$
An example:
```r
p <- polynomial(10/12, 1/6, 1/4) res <- pintegrate(p, c(0, 1), 0:2)
equal(res[1], 1)
res[2]
res[3]-res[2]^2
### `vec2mat` Converts a vector to a row- or colum matrix. ```r x <- runif(5) vec2mat(x) vec2mat(x, horizontal=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.