class="resources" Polynomial Real Zeros Counter (Not in Base Package) - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Polynomial Real Zeros Counter (Not in Base Package)

Calculates the number of zeros of the real polynomial P(x) in a real interval defined by start and end without determining the values of the zeros. Details  

P(x) is an array that represents the polynomial under investigation. The first element of this array relates to the constant coefficient of P(x).
start is the leftmost point of the interval. The default is 0.0.
end is the rightmost point of the interval. The default is 0.0.
number of zeros is the exact number of zeros of P(x) in the interval (start, end).
error returns any error or warning from the VI. When start > end, the application interprets it as an error. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Polynomial Real Zeros Counter Details

The Sturm algorithm deals with two situations. Let p(x) be a real polynomial in x and let p'(x) be the derivative of p(x). If d(x) denotes the greatest common divisor of p(x) and p'(x),

d(x) = gcd(p(x), p´(x))

so p(x) has multiple zeros, if and only if d(x) is a nonconstant polynomial. In other words, the polynomial p(x)/d(x) has only single zeros.

Repeating this idea, you can combine the given polynomial p(x) as the product of simple polynomials, each of them with single real zeros. The number of zeros of p(x) is equal to the sum of all zeros of the defined simple polynomials having only single zeros.

To determine the number of zeros of a real polynomial p(x) with the single zero property, use the following Euclidean Algorithm.

p(x) = q1(x)p1(x) – p2(x)

p1(x) = q2(x)p2(x) – p3(x)

pr – 2(x) = qr – 1(x)pr – 1(x) – pr(x)

The Sturm's chain

(p(x), p1(x), …, pr(x))

determines two values W(start) and W(end). W(x) is the number of sign changes of the chain

(p(x), p1(x), …, pr(x))

The number of all zeros of p(x) is exactly equal to W(end)–W(start).

Note  If you are interested in all real zeros of a real polynomial, choose

start = –(|a0| + … + |an|)

and end = +(|a0| + … + |an|)

where a0, a1, …, an are the elements of the polynomial.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit