Nothing
###
### $Id: vander.R 29 2022-05-30 23:02:22Z proebuck $
###
### Returns the Vandermonde matrix.
###
##-----------------------------------------------------------------------------
vander <- function(v) {
if (!is.vector(v)) {
stop(sprintf("argument %s must be vector", sQuote("v")))
} else if (!(is.numeric(v) || is.complex(v))) {
stop(sprintf("argument %s must be numeric or complex", sQuote("v")))
}
n <- length(v)
A <- if (n == 0) {
matrix(as.numeric(NA), nrow=0, ncol=0)
} else {
outer(v, seq(n-1, 0), "^")
}
A
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.