4.6.1 Introduction to Vectors |
+V, -V, F*V, V*F.If V and W are vectors with the same number of components, then one may add and subtract V and W componentwise:
V+W, V-W.
Example |
Use R ::= QQ[x,y]; V := Vector(x+1,y,xy^2); V; Vector(x + 1, y, xy^2) ------------------------------- -V; Vector(-x - 1, -y, -xy^2) ------------------------------- x*V; Vector(x^2 + x, xy, x^2y^2) ------------------------------- W := Vector(x,y,x^2y^2-y); x*V-W; Vector(x^2, xy - y, y) ------------------------------- |