Ask Your Question
2

Simplifying an inequality

asked 2016-03-13 03:27:08 -0600

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 14:56:05 -0600

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 03:27:08 -0600

Seen: 177 times

Last updated: Mar 19 '16