Copying the example
se:=(1,2,4,2)
li:=[se]
op(li)
nop(se)
nops(se)
%{se%}
size([se])
size(%{se%})
[enter] error
of 2.7 Listes, séquences, ensembles
https://www-fourier.ujf-grenoble.fr/~pa ... html#sec12
to work on the command entry, you have to add; at the end of each instruction
se:=(1,2,4,2);
li:=[se];
op(li);
nop(se);
nops(se);
%{se%};
size([se]);
size(%{se%});
[enter] ok
but within a program it is not obligatory either (;)
Code : Tout sélectionner
prg():={
local se, li;
se:=(1,2,4,2)
print(se)
li:=[se]
print(li)
print( op(li) )
print( nop(se) )
print( nops(se) )
print( %{se%} )
print( size([se]) )
print( size(%{se%}) )
}
then Why in the entry line if it is required (;)?, I think that the new line char should be interpreted as end of sentence
on-line session Xcas