factor( expression )

The factorization in SageMath of the arithmetic or algebraic expression.

For arithmetic input the factorization returns an object that can be accessed by index like a Python list.

Examples:

Related operations:   expand

Operation category: algebraic operations sagemath-docs