The method you are looking for is probably subs:
In [31]: at = x*y
In [32]: at.subs({x: 4, y: 3})
Out[32]: 12
Aaron Meurer
On Apr 22, 2010, at 6:15 PM, pallab wrote:
> Thanks for the reply.
>
> On Apr 22, 3:32 pm, Ronan Lamy <[email protected]> wrote:
>> Le jeudi 22 avril 2010 à 14:31 -0700, pallab a écrit :> symbols('xyz')
>>> 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.
>>
>> Yes, see [http://docs.sympy.org/gotchas.html#variables].
>>
>> --
>> 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
>> athttp://groups.google.com/group/sympy?hl=en.
>
> --
> 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.
>
--
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.