![Evaluate a quadratic polynomial in SAS](https://blogs.sas.com/content/iml/files/2019/11/QuadPoly3-640x336.png)
What is an efficient way to evaluate a multivariate quadratic polynomial in p variables? The answer is to use matrix computations! A multivariate quadratic polynomial can be written as the sum of a purely quadratic term (degree 2), a purely linear term (degree 1), and a constant term (degree 0).