Ok, thanks Aaron and Matthew, then it is the expected behavior.

Cheers
/Björn

On Thursday, 13 June 2013 16:56:58 UTC+2, Aaron Meurer wrote:
>
> Yes, this is the way that the old assumptions work. All assumptions 
> that are implied by the given assumptions are computed and stored at 
> instantiation time. 
>
> Aaron Meurer 
>
> On Thu, Jun 13, 2013 at 9:08 AM, Björn Dahlgren 
> <[email protected]<javascript:>> 
> 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] <javascript:>. 
> > To post to this group, send email to [email protected]<javascript:>. 
>
> > 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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to