Hi
I want to assume that the result or value of (2*x+1)/2 is integer. This is
what I do in sagemath.
assume((2*x+1)/2,'integer').
Following is error message.
Error in lines 1-1
Traceback (most recent call last):
File
"/projects/sage/sage-6.9/local/lib/python2.7/site-packages/smc_sagews/sage_server.py",
line 905, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "", line 1, in <module>
File
"/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/symbolic/assumptions.py",
line 448, in assume
x.assume()
File "sage/symbolic/expression.pyx", line 1690, in
sage.symbolic.expression.Expression.assume
(/projects/sage/sage-6.9/src/build/cythonized/sage/symbolic/expression.cpp:12174)
raise TypeError("self (=%s) must be a relational expression" % self)
TypeError: self (=x + 1/2) must be a relational expression
How can I fix it? What does it mean "relational expression"?
Thank you in advance.
Kevin Liu
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.