divideByVariable(m,v) -- divide each column of the matrix 'm' by
as high a power of the variable 'v' as possible.
divideByVariable(m,v,d) -- divide each column of the matrix 'm' by
as high a power of the variable 'v' as possible, but divide by no more than v^d.
i1 : R = ZZ/101[a..d] |
i2 : m = matrix{{a*b, a^2*c}, {a*b^2, a^4*d}} |
i3 : divideByVariable(m,a) |
i4 : divideByVariable(m,a,1) |
Caveat:
We may eliminate this routine.
Ways to use divideByVariable :