Polynomials operation

  1. simplify
    • simplify((x**3+x**2-x-1)/(x**2+2x+1)) >>>x-1

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

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

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

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

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

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

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

    • gcd(x*(y**2)+(x**2)*y,(x**2)*(y**2)) >>>x*y

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