Description Usage Arguments Value Author(s) See Also Examples
Jacobi polynomials as computed by orthopolynom.
1 2 3 4 5 6 7 8 |
degree |
degree of polynomial |
alpha |
the first parameter, also called p |
beta |
the second parameter, also called q |
kind |
"g" or "p" |
indeterminate |
indeterminate |
normalized |
provide normalized coefficients |
a mpoly object or mpolyList object
David Kahle calling code from the orthopolynom package
orthopolynom::jacobi.g.polynomials()
,
orthopolynom::jacobi.p.polynomials()
,
http://en.wikipedia.org/wiki/Jacobi_polynomials
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | jacobi(0)
jacobi(1)
jacobi(2)
jacobi(3)
jacobi(4)
jacobi(5)
jacobi(6)
jacobi(10, 2, 2, normalized = TRUE)
jacobi(0:5)
jacobi(0:5, normalized = TRUE)
jacobi(0:5, kind = "g")
jacobi(0:5, indeterminate = "t")
# visualize the jacobi polynomials
library(ggplot2); theme_set(theme_classic())
library(tidyr)
s <- seq(-1, 1, length.out = 201)
N <- 5 # number of jacobi polynomials to plot
(jacPolys <- jacobi(0:N, 2, 2))
df <- data.frame(s, as.function(jacPolys)(s))
names(df) <- c("x", paste0("P_", 0:N))
mdf <- gather(df, degree, value, -x)
qplot(x, value, data = mdf, geom = "line", color = degree)
qplot(x, value, data = mdf, geom = "line", color = degree) +
coord_cartesian(ylim = c(-30, 30))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.