wilkinson: Wilkinson's Polynomial

Description Usage Arguments Details Value Examples

View source: R/wilkinson.R

Description

Wilkinson's polynomial

Usage

1
wilkinson(x, w = 20)

Arguments

x

the x-value

w

the number of terms in the polynomial

Details

Wilkinson's polynomail is a terrible joke played on numerical analysis. By tradition, the function is f(x) = (x - 1)(x - 2)...(x - 20), giving a function with real roots at each integer from 1 to 20. This function is generalized and allows for n and the function value is f(x) = (x - 1)(x - 2)...(x - n). The default of n is 20.

Value

the value of the function at x

Examples

1

cmna documentation built on July 14, 2021, 5:11 p.m.