Ask Your Question
2

Simplifying an inequality

asked 2016-03-13 09:27:08 +0200

Erel Segal-Halevi gravatar image

I ask:

var('x,y')
ineq = (x+2<y+2)
simplify(ineq)

and get:

x + 2 < y + 2

How can I get Sage to simplify this inequality to:

x < y

?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-03-19 20:56:05 +0200

calc314 gravatar image

You can simplify this using

solve(ineq,x)
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

1 follower

Stats

Asked: 2016-03-13 09:27:08 +0200

Seen: 644 times

Last updated: Mar 19 '16