ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 27 Feb 2012 14:20:24 +0100How to get 'true' or 'false' for inequality?https://ask.sagemath.org/question/8744/how-to-get-true-or-false-for-inequality/For equality, I have to type = twice. Like this: == .
But what about inequalities?Mon, 27 Feb 2012 13:26:44 +0100https://ask.sagemath.org/question/8744/how-to-get-true-or-false-for-inequality/Answer by G-Sage for <p>For equality, I have to type = twice. Like this: == .
But what about inequalities?</p>
https://ask.sagemath.org/question/8744/how-to-get-true-or-false-for-inequality/?answer=13306#post-id-13306<, >, <= or >=
You don't have to do anything special. The reason for the distinction for equal is you can set something equal to 5 or you can test if something is equal to 5. These are very different. Since you don't set something >= 5, you don't need a separate symbol for testing if something is greater than or equal to 5.Mon, 27 Feb 2012 14:20:24 +0100https://ask.sagemath.org/question/8744/how-to-get-true-or-false-for-inequality/?answer=13306#post-id-13306