CoCoA:Size

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Size

the amount of memory used by an object

Description

This function returns the amount of memory used by the object E,

expressed in words (1 word = 4 bytes = 32 bits).

Example

  Use R ::= Q[x,y];
  Size(1);
1
-------------------------------
  Size(2^32-1);
1
-------------------------------
  Size(2^32);
2
-------------------------------
  Size(2^64);
3
-------------------------------
  Size(x);
32
-------------------------------
  Size([x,y]);
64
-------------------------------

Syntax

Size(E:OBJECT):INT

Count

Len

   <type>ideal</type>
   <type>integer</type>
   <type>list</type>
   <type>matrix</type>
   <type>memory</type>
   <type>module</type>
   <type>polynomial</type>
   <type>ratfun</type>
   <type>vector</type>