Ask Your Question
0

not evaluating expression

asked 2019-12-29 15:13:33 +0100

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-12-29 17:24:44 +0100

Juanjo gravatar image

Try this:

a = 2*x+1
b = 3*x+2
c = a.add(b, hold=True)
show(c==c.unhold())
edit flag offensive delete link more

Comments

Great!!

Happy new year to you

Jingenbl gravatar imageJingenbl ( 2019-12-30 14:58:43 +0100 )edit

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: 2019-12-29 15:13:33 +0100

Seen: 351 times

Last updated: Dec 29 '19