Macaulay2 » Documentation
Packages » NCAlgebra :: size(NCRingElement)
next | previous | forward | backward | up | index | toc

size(NCRingElement) -- Returns the number of terms of an NCRingElement

Synopsis

Description

Returns the number of terms of an NCRingElement.

i1 : A = QQ{x,y,z,w}

o1 = A

o1 : NCPolynomialRing
i2 : f = x^2+y^2+z^3

      3  2  2
o2 = z +y +x

o2 : A
i3 : size f

o3 = 3

Ways to use this method: