up previous next
List

convert an expression into a list
Syntax

List(E:OBJECT):LIST

where E has type LIST, MAT, or VECTOR.


Description
This function converts the expression E into a list. It is the same as Cast(E, LIST).

Example
  Use R ::= QQ[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