coef.minimaxApprox | R Documentation |
"minimaxApprox"
objectExtracts the numerator and denominator vectors from a "minimaxApprox"
object. For objects with both Chebyshev and monomial coefficients, it will
extract both.
## S3 method for class 'minimaxApprox'
coef(object, ...)
object |
An object inheriting from class |
... |
Other arguments. |
Coefficients extracted from the "minimaxApprox"
object. A
list containing:
a |
The polynomial coefficients or the rational numerator coefficients. |
b |
The rational denominator coefficients. Missing for polynomial approximation. |
aMono |
The polynomial coefficients or the rational numerator coefficients for the monomial basis when the approximation was done using Chebyshev polynomials. Missing if only the monomial basis was used. |
bMono |
The rational denominator coefficients for the monomial basis when the approximation was done using Chebyshev polynomials. Missing if either only the monomial basis was used or for polynomial approximation. |
Avraham Adler Avraham.Adler@gmail.com
minimaxApprox
PP <- minimaxApprox(exp, 0, 1, 5)
coef(PP)
identical(unlist(coef(PP), use.names = FALSE), c(PP$a, PP$aMono))
RR <- minimaxApprox(exp, 0, 1, c(2, 3), basis = "m")
coef(RR)
identical(coef(RR), list(a = RR$a, b = RR$b))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.