evaluateWithRange

Evaluate polynomial at a given abscissa value with linear extrapolation outside of the defined range

Syntax

y = evaluateWithRange(p, uMin, uMax, u)

Inputs (4)

p

Type: Real[:]

Description: Polynomial coefficients (p[1] is coefficient of highest power)

uMin

Type: Real

Description: Polynomial valid in the range uMin .. uMax

uMax

Type: Real

Description: Polynomial valid in the range uMin .. uMax

u

Type: Real

Description: Abscissa value

Outputs (1)

y

Type: Real

Description: Value of polynomial at u. Outside of uMin,uMax, linear extrapolation is used