previous next |
List |
Syntax |
List(E:OBJECT):LIST where E has type LIST, MAT, or VECTOR. |
Summary |
convert an expression into a list |
Description |
This function converts the expression E into a list. It is the same as Cast(E,LIST). |
Example |
Use R ::= Q[x,y]; M:=Jacobian([x^2y^2,x+y]); M; Mat[ [2xy^2, 2x^2y], [1, 1] ] ------------------------------- Head(M); ------------------------------- ERROR: Bad parameters CONTEXT: Head(M) ------------------------------- Head(List(M)); [2xy^2, 2x^2y] ------------------------------- The error occurs because the function 'Head' only accepts lists as arguments. |
See also: |