pminimum: pminimum

View source: R/extremes.R View source: R/archive/polynomial.R

pminimumR Documentation

pminimum

Description

Computes the minimum of a polynomial in the interval [lower, upper]. At these values and the interval borders of the polynomial p is evaluated and the minimum value returned.

Usage

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

Value

the minimal function value

Examples

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

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.