You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose we have a polynomial p = a_0 x^0 + a_1 x^1 + ... + a_n x^n where the a_i are in a ring R. Then I would expect p(α) = a_0 α^0 + a_1 α^1 + ... + a_n α^n to hold for all α in a ring S where R is a subring of S.
This is due to this definition polyval(p::Poly, v::AbstractArray) = map(x->polyval(p, x), v) which is basically doing p.(A) when A is a matrix. In #179 this call is an error. I wonder if it makes better sense to change the definition for p(A) to what you are expecting, as that seems natural. In #179 it seems to only require changing a + to a .+.
Suppose we have a polynomial
p = a_0 x^0 + a_1 x^1 + ... + a_n x^n
where the a_i are in a ring R. Then I would expectp(α) = a_0 α^0 + a_1 α^1 + ... + a_n α^n
to hold for all α in a ring S where R is a subring of S.This is currently not the case. Example:
but [0 1; 0 0]^2 == [0 0; 0 0].
The text was updated successfully, but these errors were encountered: