numberOfRealRoots: Number of real roots

View source: R/numberOfRealRoots.R

numberOfRealRootsR Documentation

Number of real roots

Description

Number of distinct real roots of a univariate polynomial.

Usage

numberOfRealRoots(qspray)

Arguments

qspray

a univariate qspray polynomial

Value

An integer, the number of real roots of the polynomial.

Note

The roots are not counted with their multiplicity.

Examples

library(resultant)
x <- qlone(1)
P <- 2*x^4 + x^3 - 3*x^2 - x + 1
numberOfRealRoots(P)

resultant documentation built on Sept. 11, 2024, 8:01 p.m.