First time here? Check out the FAQ!

Ask Your Question
0

not evaluating expression

asked 5 years ago

Jingenbl gravatar image

var("x",domain=RR) e =2x+1 f = 3x+2 (e+f==e+f).show()

reply: 5x+5=5x+3 of course.

But I would like to have 2x+3+5x+1=5x+3 Is there somethink like e.unevaluate()?

big thanks and happy new year to the whole sagemath community

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 5 years ago

Juanjo gravatar image

Try this:

a = 2*x+1
b = 3*x+2
c = a.add(b, hold=True)
show(c==c.unhold())
Preview: (hide)
link

Comments

Great!!

Happy new year to you

Jingenbl gravatar imageJingenbl ( 5 years ago )

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 5 years ago

Seen: 380 times

Last updated: Dec 29 '19