View source: R/numberOfRealRoots.R
numberOfRealRootsInInterval | R Documentation |
Number of distinct real roots of a univariate polynomial in a given interval.
numberOfRealRootsInInterval(qspray, lower, upper, closed = TRUE)
qspray |
a univariate |
lower , upper |
the bounds of the interval, |
closed |
Boolean, whether to consider the interval is closed or open |
An integer, the number of real roots of the polynomial in the interval.
The roots are not counted with their multiplicity.
library(resultant)
x <- qlone(1)
P <- 2*x^4 + x^3 - 3*x^2 - x + 1
numberOfRealRootsInInterval(P, 0, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.