Computes the real valued extremes (minima, maxima, and saddle points) for a univariate polynomial.
The computation can be limited to a specific type of extremes.
Usage
extremes(p, type = c("all", "minimum", "maximum", "saddle"), tol = 1e-09)
Value
A numeric vector.
Arguments
p
a polynomial
type
character: either all (default), minimum, maximum, or saddle
tol
numeric: if the absolute value of the imaginary part of the zeroes of the derivative of p is
smaller than tol, it will be considered as zero