up previous next
operators, shortcuts

Special characters equivalent to commands

Syntax
A := B   A:variable, B:OBJECT
A = B    A,B:OBJECT
A <> B   A,B:OBJECT
A < B    A,B:OBJECT
A >< B   A,B: LIST
A..B     A,B: INT  or  A,B:indeterminates
[...]    LIST
[..|..]  LIST
L[N]     N: INT, L: LIST
S[N]     N: INT, S: STRING
M[i,j]   i,j: INT, M: MAT
R.F      R:RECORD and F field name
R ::= ... R:variable
M : N    M, N: MODULE or IDEAL
R/I      R: RING, I: IDEAL
***E***  E:expression
?S       S: STRING
<< S     S: STRING

Description
A := B; compute B then assign the result to A A = B test whether A and B are equal (see Comparison Operators ) A <> B test whether A and B are not equal (see Comparison Operators ) A < B test whether A is smaller than B (see Comparison Operators ) A >< B equivalent to CartesianProduct(A, B) , CartesianProductList([A,B]) A..B is the Range Operator (see List Constructors ) [...] build a new list (see List Constructors ) [..|..] build a new list (see List Constructors ) L[N] access N -th entry of list L (indexes start from 1) S[N] access N -th char of string L (indexes start from 1) M[i,j] access entry i,j in matrix M R.F record field selector for field named F of record R R ::= for the special ring syntax ( NewPolyRing )

M : N equivalent to colon(M, N) R/I equivalent to NewQuotientRing(R,I) ***E*** interpret E in CoCoA-4 mode << S OBSOLESCENT equivalent to source(S)

? string prints the manual page for string , or a list of matching manual pages
See Also