shoulder: Derive the local maximum of a third degree polynomial

Description Usage Arguments Value Examples

Description

Takes four polynomial parameters as input and derives the local minimum if it exists.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
shoulder(coef, ...)

## S3 method for class 'numeric'
shoulder(coef)

## S3 method for class 'matrix'
shoulder(coef, ...)

## S3 method for class 'data.frame'
shoulder(coef)

Arguments

coef

polynomial coefficients

...

Value

position of the local maximum, NA if it does not exist

Examples

1
shoulder(c(-1, -4, 3, 1))

schmettow/uncanny documentation built on Oct. 30, 2020, 5:44 p.m.