Previous Up Next

15.6.2 Transforming a matrix into a quadratic form

The a2q command finds the quadratic form corresponding to a symmetric matrix.

Examples

a2q([[0,1],[1,0]],[x,y])
     
2 xy           
a2q([[1,2],[2,4]],[x,y])
     
x2+4 xy+4 y2           

Previous Up Next