Question: typeset matrix expressions

I am trying to learn to love Maple's document mode... I would like to be able to display a matrix formula or equation without evaluating it. One way to do this is with the following commands:

  with(LinearAlgebra): `print/&.` := proc (l, r) l.r end proc
  pq := <<-P^2, -P*Q+c>|< P*Q+c, Q^2>>
  2*<g.P, g.Q> = pq &. <alpha, beta>

(Paste them into a worksheet in document mode and press Enter to execute one at a time.)

But I am hoping that there is a better way. Maybe I am just missing something basic about how document mode works?

Please Wait...