Hello,
Thanks for the help previously. I've run into a different issue with
regards to Eq.
Sympify will automatically convert Eq into ==
sympy.sympify('Eq(a, b)')
a == b
which if you sympify again will have the behavior you described originally.
sympy.sympify(str(sympy.sympify('Eq(a, b)')))
I was able to write a LambdaPrinter that does what I want for the time
being:
class NonRelationalOpPrinter(lambdarepr.LambdaPrinter):
'''
from structures import symbolic
for op in ['Eq', 'Ne', 'Gt', 'Lt', 'Ge', 'Le']:
...
Hi,
the online shell at http://live.sympy.org/ tells me
diff(x^x,x) = 0
Why is that?
Tom
--
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
On 29 May 2015 22:06, Thomas Leitz unruhsc...@gmail.com wrote:
Hi,
the online shell at http://live.sympy.org/ tells me
diff(x^x,x) = 0
Why is that?
^ doesn't do what you're expecting in Python. Use ** for exponentiation.
--
Oscar
--
You received this message because you are subscribed