|
3.5.4 ObjectsEvery object in SINGULAR has a type and a value. In most cases it
has also a name and in some cases an attribute list. The value of an
object may be examined simply by printing it with a print command:
object ring r=0,x,dp; typeof(10); → int typeof(10000000000000000); → number typeof(r); → ring attrib(x); → no attributes attrib(std(ideal(x))); → attr:isSB, type int Each object of type
All other types do not belong to a ring and can be accessed within every ring and across rings. They can be declared even if there is no active basering. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |