Evaluating polynomial functions for specific variables
Octave scripts use a vector of the coefficients in descending order to represent a polynomial function. Afterwards, the command polyval() can be used to evaluate the function for specific variables. For example, consider this function:
- y = 3x2 - 3x - 6
http://hughesbennett.co.uk/EvaluatingPolynomialFunctionVariables