Top
Back: ncrepPrint
Forward: ncrepSubstitute
FastBack:
FastForward:
Up: ncrat_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

7.10.6.21 ncrepDim

Procedure from library ncrat.lib (see ncrat_lib).

Usage:
ncrepDim(q);
q of type ncrep

Return:
dimension of q;
returns 0 if q represents the zero-function

Example:
 
LIB "ncrat.lib";
ncInit(list("x", "y", "z"));
ncrat f = ncratFromString("2*x*y");
ncrep q = ncrepGet(f);
print(q);
==> lvec=
==> 0,0,0,1
==> 
==> mat=
==> 0, 0, 1/2*x,-1/2,
==> 0, 1, -1/2, 0,   
==> y, -1,0,    0,   
==> -1,0, 0,    0    
==> 
==> rvec=
==> 0,
==> 0,
==> 0,
==> 1 
ncrepDim(q);
==> 4


Top Back: ncrepPrint Forward: ncrepSubstitute FastBack: FastForward: Up: ncrat_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.2, 2023, generated by texi2html.