I get a correct polynomial ouput for "poly", but I cannot plug in an x term for poly. For example, poly(2) does not work. I am pretty sure that this is just because of the type of variable I am using.
Also I take numbers from matrices B and C which I do not include here.