Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Polinomial: find the common factor

Hello, assuming I have a polinomial like this:

sage: var('y, x')
(y, x)
sage: y = x^2 + 6*x^3 + 3*x^4

When I use collect_common_factors(), I get:

(3*x^2 + 6*x + 1)*x^2

Now, is there a way to know which are the common_factors collected?

In this case, I'm expecting this output:

x^2

Thank you everyone!

click to hide/show revision 2
No.2 Revision

Polinomial: Polynomial: find the common factor

Hello, assuming I have a polinomial polynomial like this:

sage: var('y, x')
(y, x)
sage: y = x^2 + 6*x^3 + 3*x^4

When I use collect_common_factors(), I get:

(3*x^2 + 6*x + 1)*x^2

Now, is there a way to know which are the common_factors collected?

In this case, I'm expecting this output:

x^2

Thank you everyone!

click to hide/show revision 3
No.3 Revision

Polynomial: find the common factor

Hello, assuming I have a polynomial like this:

sage: var('y, x')
(y, x)
sage: y = x^2 + 6*x^3 + 3*x^4

When I use collect_common_factors(), I get:

(3*x^2 + 6*x + 1)*x^2

Now, is there a way to know which are the common_factors collected?

In this case, I'm expecting this output:

x^2

Thank you everyone!

click to hide/show revision 4
retagged

Polynomial: find the common factor

Hello, assuming I have a polynomial like this:

sage: var('y, x')
(y, x)
sage: y = x^2 + 6*x^3 + 3*x^4

When I use collect_common_factors(), I get:

(3*x^2 + 6*x + 1)*x^2

Now, is there a way to know which are the common_factors collected?

In this case, I'm expecting this output:

x^2

Thank you everyone!