Function: length (<expr>) Returns (by default) the number of parts in the external (displayed) form of <expr>. For lists this is the number of elements, for matrices it is the number of rows, and for sums it is the number of terms (see
length command is affected by the
inflag switch. So, e.g.
length(a/(b*c)); gives 2 if
true), but 3 if
true (the internal representation is essentially
There are also some inexact matches for
?? length to see them.
(%o1) true (%i2)