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
If we are working in the quaternions ℍ, there are two canonical forms for a polynomial; we could either use the left or right polynomial, i.e. P(x) = ∑ a_k x^k, or P(x) = ∑ x^k b_k. These two differ because ℍ is non-commutative. This subtlety needs to be documented, and ensured that it's implemented consistently throughout, e.g. within toString, toHorner, mul, and eval.
The fields ℚ and ℝ are not closed under the pow operation, but this operation is assumed to be implemented for each field. This needs to be documented.
The text was updated successfully, but these errors were encountered:
You are totally right on both points. Did you encounter a problem in the code with respect to non-commutativity or is it just a documentation thing?
When I implemented the lib back then, I saw the problem of this and decided to go with integer exponents only.
toString
,toHorner
,mul
, andeval
.pow
operation, but this operation is assumed to be implemented for each field. This needs to be documented.The text was updated successfully, but these errors were encountered: