up previous next
2.2.8 Variables
Results from CoCoA calculations can be stored in variables. Variables, like CoCoA functions, must begin with a capital letter or an error will result.

Example
A := 3;
2A;
6
-------------------------------
b := 7;
ERROR: parse error in line 12 of device stdin
-------------------------------
7
-------------------------------
B := 7;
A^2 + B;
16
-------------------------------