2017-05-03 00:29:48 +0200 | asked a question | simplifying an expression Hello, I am trying to simplify a polynomial into smaller subexpressions. The expanded polynomial is: \begin{align} \ 2bf^{2}+f^{2}k-2bf-f^{2}-2fk+b+2f+k-1 \end{align} This expression can be reduced to the following expression [by hand]: \begin{align} \ bf^{2}+(f - 1)^{2}(k-1+b) \end{align} How to do I do it in Sage using some combination of collect and factor or by using some other strategy. Thanks! |
2017-05-02 22:39:43 +0200 | received badge | ● Scholar (source) |
2017-05-02 22:05:03 +0200 | asked a question | simplify expression (square polynomial) I and using sage to convert x^2 + 2*x + 1 to (x + 1)^2 by using the following: show((y*2 + 2y + 1).simplify_full()) but it does not do anything and returns the expression as it is. How do I make it do it ? Thanks! |