up previous next
Size

the amount of memory used by an object

Syntax
Size(E:OBJECT):INT

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


See Also