1 | initial version |
contemplate :
sage: maxima.factor(2*a3 - 2*a6)
-2*(_SAGE_VAR_a6-_SAGE_VAR_a3)
sage: maxima.factor(2*a3 - 2*a6).sage()
2*a3 - 2*a6
Appaeently, Sage's output algorithm chooses the sum of two monomials to the product of such a sum by another monomial. Because it is "simplet" ? And, BTW :
sage: (2*a3 - 2*a6).factor()
2*a3 - 2*a6
sage: (2*a3 - 2*a6).collect_common_factors()
2*a3 - 2*a6
sage: (2*a3 - 2*a6).maxima_methods().factor()
2*a3 - 2*a6
HTH,