kill(all);

van=facebook.com/LearningCalculus$

P1:x^3-7*x-6$
P2:x^3+8*x^2+17*x+10$

P1-P2;

factor(P1-P2);

van=facebook.com/LearningCalculus$

P1:x^3-8$
P2:x^3-x^2-2*x$

P1-P2;

factor(P1-P2);

P1:expand((x+1)*(x+2)*(x+4)*(x+6)*(x-1)*(x-2)*(x-4)*(x-8))$
P2:expand((x+1)*(x+2)*(x+4)*(x+6)*(x-1)*(x-2)*(x-4))$

van=facebook.com/LearningCalculus;

      What is HCF / GCD (Greatest Common Divisor of)

P1; P2;

factor(P1-P2);