Multivariate Polynomials are evaluated following the algorithm in [1] . The algorithm uses the following notation:
multiindex is a tuple of non-negative integers for which the length is defined in the following way:
inverse lexical order is the ordering of monomials in such a way that
if and only if there exists
such that
.
In this ordering and
Multivariate Horner scheme uses d+1 variables to
store intermediate results, where d denotes the number of variables.
Algorithm:
The evaluation of multivariate Chebyshev and Legendre polynomials uses a
variation of the above Horner’s scheme, in which every Legendre or Chebyshev
function is considered a separate variable. In this case the length of the
indices tuple is equal to the number of functions in x plus
the number of functions in y. In addition the Chebyshev and Legendre
functions are cached for efficiency.
[1] |
|