Express the results in sympy.core.relational.StrictLessThan
#24655
Answered
by
oscarbenjamin
1e9abhi1e10
asked this question in
Q&A
-
In solving #24288 , for the tests >>> parse_expr('1 < 2', evaluate=False)
1 < 2
>>> type(parse_expr('1 < 2', evaluate=False))
<class 'sympy.core.relational.StrictLessThan'> But Lt(1, 2) is boolean >>> x,y = symbols('x y')
>>> type(Lt(x,y))
<class 'sympy.core.relational.StrictLessThan'> If am not use the above results then how can I express the result in <class 'sympy.core.relational.StrictLessThan'> |
Beta Was this translation helpful? Give feedback.
Answered by
oscarbenjamin
Feb 3, 2023
Replies: 1 comment 1 reply
-
You can use In [1]: Lt(1, 2, evaluate=False)
Out[1]: 1 < 2 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
1e9abhi1e10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
evaluate=False
: