Evaluating a polynomial at a given value