Vector containing parameters

I am pretty new to maple and have the following question:

If I define a vector q containing a parameter b should i define it like:

q := vector[column]([b, 0])


or like

q(b) := vector[column]([b, 0])

-

q := b -> Vector[column]([b,0]);

They way you wrote it, you get a procedure that returns a vector for the literal input b' (i.e., the name b), whereas you probably want q( 2 )' to return a vector with a "2" in it. (If I'm wrong in my assumptions about what you are trying to do then this advice is, of course, useless.)
Like James said, it depends what you want to do with it. If you are doing vector calculus then you might wanna use with(VectorCalculus) This defines vectors in a way such that you can use calculus tools on it. Similarly there is a linear algebra package as well. –  Tyler Hilton Oct 18 '11 at 23:45