### The Maxima on-line user's manual

Algebra Calculator

#### Nroots

Function: nroots (<p>, <low>, <high>) Returns the number of real roots of the real univariate polynomial <p> in the half-open interval `(<low>, <high>]`. The endpoints of the interval may be `minf` or `inf`. infinity and plus infinity.

`nroots` uses the method of Sturm sequences.

```          (%i1) p: x^10 - 2*x^4 + 1/2\$
(%i2) nroots (p, -6, 9.1);
(%o2)                           4```

```(%o1)                                true
(%i2) ```

### Related Examples

##### nroots

f(x):= 2*%e^{-x}-x^2/...

nroots( f,1,3);

Calculate

##### nroots

f=(-76405613988019467...

nroots(f, -1, 1/2);

Calculate

? nroots;

Calculate

##### nroots

p: x^10 - 2*x^4 + 1/2;

nroots (p, -6, 9.1);

Calculate

##### nroots

f(x):= 2*%e^{-x}-x^2/...

nroots( f,1,3);

Calculate

##### nroots

f=(-76405613988019467...

nroots(f, -1, 1/2);

Calculate

? nroots;

Calculate

##### nroots

p: x^10 - 2*x^4 + 1/2;

nroots (p, -6, 9.1);

Calculate