pminimum {exams.forge} | R Documentation |
Polynomial Minimum
Description
Computes the minimum of a polynomial in the interval [lower, upper]
. The values and the interval borders of the
polynomial p
are evaluated and the minimum value is returned.
Usage
pminimum(
p,
interval,
lower = min(interval),
upper = max(interval),
tol = 1e-09
)
polynomial_minimum(
p,
interval,
lower = min(interval),
upper = max(interval),
tol = 1e-09
)
Arguments
p |
polynomial |
interval |
numeric: a vector containing the end-points of the interval to be searched for the minimum |
lower |
numeric: the lower end point of the interval to be searched (default: |
upper |
numeric: the upper end point of the interval to be searched (default: |
tol |
numeric: the desired accuracy (default: |
Value
The minimal function value.
Examples
p <- polynomial(c(-5, 3, -3, 1))
pminimum(p, -3, 3)
[Package exams.forge version 1.0.10 Index]