Ask Your Question

not evaluating expression

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

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

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

Juanjo gravatar image

Try this:

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



Happy new year to you

Jingenbl gravatar imageJingenbl ( 2019-12-30 14:58:43 +0200 )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


Asked: 2019-12-29 15:13:33 +0200

Seen: 297 times

Last updated: Dec 29 '19