In [1]: x^x Out[1]: False In [2]: diff(False, x) Out[2]: 0
You should use **** instead of *^* if you'd like to represent exponentiation. The symbol ^ stands for XOR. On Friday, 29 May 2015 23:17:11 UTC+2, Oscar wrote: > > > On 29 May 2015 22:06, "Thomas Leitz" <unruh...@gmail.com <javascript:>> > 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 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 http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/39df2b7e-b133-4c5c-ab4d-f535cd9c3df2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.