You need to pass in two separate equations instead of the expression.
Jason moorepants.info +01 530-601-9791 On Thu, Mar 23, 2017 at 11:44 PM, <virajthak...@gmail.com> wrote: > I am following the steps: > > 1. import sympy as sy > 2. x = sy.symbols('x', real=True) > > Now, print(sy.solve(2*x + 1 < 5,x)) or (-3 < 2*x+1, x) giving me the > appropriate answer. But when i try to run, print(sy.solve(-3 < 2x+1 <5, > x)), it is giving me the error raise TypeError("cannot determine truth > value of Relational") > TypeError: cannot determine truth value of Relational > . > > I am very new to sympy and i am struggling from this for last two days. if > anyone have idea please share it. Thank you in advance. i want that single > value from result as well. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/sympy/a1c02acf-7c81-4ca6-82c8-ee904820b61f%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/a1c02acf-7c81-4ca6-82c8-ee904820b61f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1Ahq1YxXeQy9F6%3DD9qddsVn2At1AoAP%3D4uXy%3DJHvBhKy7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.