4.18.2 vector expressions
-------------------------

A vector expression is:
1. an identifier of type vector
2. a function returning vector
3. a poly expression (via the canonical embedding p ==> p*gen(1))
4. vector expressions combined by the arithmetic operations + or
-
5. a poly expression and a vector expression combined by the arithmetic
operation *
6. a type cast to vector using the brackets [ , ]


Example:
  // ordering gives priority to components:
  ring rr=0,(x,y,z),(c,dp);
  vector v=[x2+y3,2,0,x*y]+gen(6)*x6;
  v;
==> [y3+x2,2,0,xy,0,x6]
  vector w=[z3-x,3y];
  v-w;
==> [y3-z3+x2+x,-3y+2,0,xy,0,x6]
  v*(z+x);
==> [xy3+y3z+x3+x2z,2x+2z,0,x2y+xyz,0,x7+x6z]

See
Type conversion and casting;
ring.

<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
