Le jeudi 22 avril 2010 à 17:15 -0700, pallab a écrit :
> > > At=x*y
> > > x=4
> > > y=3
> > > N(At)
> >
> > > gives me x*y. Is it ok, should it be the intended behavior?
>
> Sorry that the question was not clear. is it the intended behaviour in
> N()?. It is ok if At prints x*y, that is understandable.
N(expression) converts all the numbers in the expression to floating
point. Here, there are no numbers, so N(At) returns At, which is equal
to Symbol('x')*Symbol('y').
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.