numpoly.align_indeterminants#
- numpoly.align_indeterminants(*polys: numpoly.typing.PolyLike) Tuple[ndpoly, ...][source]#
Align polynomial by indeterminants.
- Args:
- polys:
Polynomial to make adjustment to.
- Return:
Same as
polys, but internal adjustments made to make them compatible for further operations.- Example:
>>> q0 = numpoly.variable() >>> poly1 = numpoly.polynomial(2*q0+1) >>> q0, q1 = numpoly.variable(2) >>> poly2 = numpoly.polynomial(3*q0-q1) >>> poly1.indeterminants polynomial([q0]) >>> poly2.indeterminants polynomial([q0, q1]) >>> poly1, poly2 = numpoly.align_indeterminants(poly1, poly2) >>> poly1 polynomial(2*q0+1) >>> poly2 polynomial(-q1+3*q0) >>> poly1.indeterminants polynomial([q0, q1]) >>> poly2.indeterminants polynomial([q0, q1])