Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

MathCore formulas and algorithms used

This page provides a list of the algorithms used by MathCore to perform some of its math tasks. The following are not intended to be rigorous proofs, since I am not a math-teacher and the math involved is not too difficult.


mcPolynomial::math_RaiseTo function

The mcPolynomial::math_RaiseTo function implements the algorithm used by MathCore to raise to the n-th power (where n is an integer value) a generic m-terms polynomial.

Which formula does it use ? Consider the classical Newton's binomial formula:

binomial.png

This formula is the formal rule used to raise a binomial to a power n.

Since we want to have the explicit formula for a generic polynomial, we can think b as being the sum of two other monomials c and d:

polynomialraise1.png

Since (c+d)^k is another binomial, we can apply Newton's formula on it again using another iterator j, obtaining:

polynomialraise2.png

If we try to substitute to d the sum of e and f, we get:

polynomialraise3.png

Performing such type of substitution for all members of our polynomial, we get:

polynomialraise4.png

where m is the number of the monomials contained in the polynomial to raise and all the k are the iterators required.


Documentation generated with Doxygen on Sun Feb 6 17:13:19 2005
Visit MathStudio home page for more info

[ Top ]