-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluating static polynomials on a Taylor Model #38
Comments
Do you only need to evaluate univariate polynomials? In this case, the |
I was able to get around this problem by intercepting the I looked for the documentation of |
The reason I am using |
This is in Base, although it's actually called help?> Base.@evalpoly
@evalpoly(z, c...)
Evaluate the polynomial \sum_k c[k] z^{k-1} for the coefficients c[1], c[2], ...; that is, the coefficients are given in ascending order by power
of z. This macro expands to efficient inline code that uses either Horner's method or, for complex z, a more efficient Goertzel-like algorithm.
Examples
≡≡≡≡≡≡≡≡≡≡
julia> @evalpoly(3, 1, 0, 1)
10
julia> @evalpoly(2, 1, 0, 1)
5
julia> @evalpoly(2, 1, 1, 1)
7 This is the relevan math: https://en.wikipedia.org/wiki/Horner%27s_method |
I see, thanks! To provide some more context -- I am constructing a basis of Lagrange polynomials as a Interval arithmetic gives valid bounds, but they are not very tight; hence my interest in Taylor Models. I guess I can close this issue now since overloading |
I'm trying to use
StaticPolynomials.jl
along with TaylorModels.jl and ran into an error that I don't quite understand. Example:I'm not sure which is the appropriate place to report this error. Is it an issue with promotion of the
TaylorModels
type?Any inputs will be helpful!
The text was updated successfully, but these errors were encountered: