Polynomials operation

  1. simplify
    • simplify((x3+x2-x-1)/(x2+2x+1)) >>>x-1

  2. collect
    • collect(x*y+x-3+2x2-zx2+x3,x) >>>x3+x2*(-z+2)+x*(y+1)-3

  3. expand
    • expand((x+1)2) >>>x2+2*x+1

  4. factor
    • factor(x3-x2+x-1) >>>(x-1)*(x2+1)

  5. ratsimp
    • ratsimp(1x+1y) >>>x+yx*y

  6. lcm
    • lcm(9,6) >>>18

    • lcm(x*y2+x2*y,x2*y2) >>>x3*y2+x2*y3

  7. gcd
    • gcd(9,6) >>>3

    • gcd(x*y2+x2*y,x2*y2) >>>x*y

  8. subs
    • subs(x+5,x,1) >>>6