First time here? Check out the FAQ!

Ask Your Question
0

simplify expression (square polynomial)

asked 8 years ago

sage_user47 gravatar image

updated 7 years ago

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!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 8 years ago

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()
Preview: (hide)
link

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: 8 years ago

Seen: 397 times

Last updated: May 02 '17