First time here? Check out the FAQ!

Ask Your Question
2

Simplifying an inequality

asked 9 years ago

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

?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 9 years ago

calc314 gravatar image

You can simplify this using

solve(ineq,x)
Preview: (hide)
link

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: 9 years ago

Seen: 997 times

Last updated: Mar 19 '16