Singular Manual: ncrepDim

| #### 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

User manual for Singular version 4-1-3, 2020, generated by texi2html.