Ask Your Question
0

simplify expression (square polynomial)

asked 2017-05-02 20:20:46 +0200

sage_user47 gravatar image

updated 2017-08-01 12:26:57 +0200

FrédéricC gravatar image

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!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-05-02 22:06:39 +0200

kcrisman gravatar image

This isn't necessarily simplification; which one is really "simpler"? But Sage does support this - you may want a combination of several symbolic methods. Try this.

f = x^2 + 2*x + 1
f.factor()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-05-02 20:20:46 +0200

Seen: 291 times

Last updated: May 02 '17