Top
Back: maxcoef
Forward: maxdeg1
FastBack:
FastForward:
Up: polylib_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.8.8 maxdeg

Procedure from library polylib.lib (see polylib_lib).

Usage:
maxdeg(id); id poly/ideal/vector/module/matrix

Return:
int/intmat, each component equals maximal degree of monomials in the corresponding component of id, independent of ring ordering (maxdeg of each var is 1).
Of type int, if id is of type poly; of type intmat otherwise

Example:
 
LIB "polylib.lib";
ring r = 0,(x,y,z),wp(1,2,3);
poly f = x+y2+z3;
deg(f);             //deg; returns weighted degree (in case of 1 block)!
==> 9
maxdeg(f);
==> 3
matrix m[2][2]=f+x10,1,0,f^2;
maxdeg(m);
==> 10,0,
==> -1,6 
See also: maxdeg1.


Top Back: maxcoef Forward: maxdeg1 FastBack: FastForward: Up: polylib_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.