Learn R Programming

exams.forge (version 1.0.10)

pminimum: 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 )

Value

The minimal function value.

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: min(interval))

upper

numeric: the upper end point of the interval to be searched (default: max(interval))

tol

numeric: the desired accuracy (default: 1e-9)

Examples

Run this code
p <- polynomial(c(-5, 3, -3, 1))
pminimum(p, -3, 3)

Run the code above in your browser using DataLab