All real numbers are also in the complex plane. If someone asks if y is complex then the proper mathematical answer is "yes." This is technically if not colloquially true. Being technically true is probably more important; computers tend to become confused otherwise.
On Thu, Jun 13, 2013 at 9:08 AM, Björn Dahlgren <[email protected]> wrote: > Hello, > > So I came across this odd behaviour when debugging some code: > > In [1]: y=sympy.Symbol('y',real=True) > > In [2]: y.assumptions0 > Out[2]: > {'commutative': True, > 'complex': True, > 'hermitian': True, > 'imaginary': False, > 'real': True} > > In [3]: z=sympy.Symbol('z') > > In [4]: z.assumptions0 > Out[4]: {'commutative': True} > > > I had only expected real being set to true. But I guess complex: True, > imaginary: False, would imply real... > A little confusing - just curious: what is the rationalisation? > > Cheers! > /Björn > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy?hl=en-US. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
