6.54.1 Matrix of a quadratic form: q2a
The q2a command finds the matrix corresponding to a quadratic
form.
-
q2a takes two arguments:
-
q, the symbolic expression of a quadratic form q.
- vars, a vector of variable names.
- q2a(q,vars) returns the matrix of
the quadratic form q.
Example.
Input:
q2a(2*x*y,[x,y])
Output: