|
D.15.5.16 defineHomogenous
Procedure from library multigrading.lib (see multigrading_lib).
- Usage:
- defineHomogenous(f[, G]); polynomial f, integer matrix G
- Purpose:
- Yields a matrix which has to be appended to the torsion matrix to make the
polynomial f homogenous in the grading by grad.
Example:
| LIB "multigrading.lib";
ring r =0,(x,y,z),dp;
intmat grad[2][3] =
1,0,1,
0,1,1;
setBaseMultigrading(grad);
poly f = x2y3-z5+x-3zx;
intmat M = defineHomogenous(f);
M;
==> 3,0,-1,
==> 2,-2,-3
defineHomogenous(f, grad) == M;
==> 1
isHomogenous(f);
==> 0
setBaseMultigrading(grad, M);
isHomogenous(f);
==> 1
|
|