answered 9 years ago
Is that what you want
sage: s = factor(2*c^2+2*a^2-b^2) sage: s.operands() [3*p*t^2 - 2*p^2 - 2*p*t + t^2 + p + 2*t + 1, 2] sage: m = s.operands()[0] sage: m 3*p*t^2 - 2*p^2 - 2*p*t + t^2 + p + 2*t + 1