Previous Up Next

5.58.1  Matrix of a quadratic form: q2a

q2a takes two arguments: the symbolic expression of a quadratic form q and a vector of variable names.
q2a returns the matrix A of q.
Input:

q2a(2*x*y,[x,y])

Output:

[[0,1],[1,0]]

Previous Up Next