#### 7.2.4.1 poly declarations (plural)

Syntax:
  `poly` name `=` poly_expression `;`

Purpose:
  defines a polynomial.

Default:
  0

Example:

      ring r = 32003,(x,y,z),dp;
      def R=nc_algebra(-1,1);
      setring R;
      // ring of some differential-like operators
      R;
      ==> //   characteristic : 32003
      ==> //   number of vars : 3
      ==> //        block   1 : ordering dp
      ==> //                  : names    x y z
      ==> //        block   2 : ordering C
      ==> //   noncommutative relations:
      ==> //    yx=-xy+1
      ==> //    zx=-xz+1
      ==> //    zy=-yz+1
      yx;      // not correct input
      ==> xy
      y*x;     // correct input
      ==> -xy+1
      poly s1  = x3y2+151x5y+186xy6+169y9;
      poly s2  = 1*x^2*y^2*z^2+3z8;
      poly s3  = 5/4x4y2+4/5*x*y^5+2x2y2z3+y7+11x10;
      int a,b,c,t=37,5,4,1;
      poly f=3*x^a+x*y^(b+c)+t*x^a*y^b*z^c;
      f;
      ==> x37y5z4+3x37+xy9
      short = 0;
      f;
      ==> x^37*y^5*z^4+3*x^37+x*y^9

User manual for Singular version 4-0-3, 2016, generated by texi2html.