In [22]: int(sin(2))
TypeError: int() argument must be a string or a number, not 'sin'

In [24]: float(sin(2))
Out[24]: 0.9092974268256817

Is there a reason for doing it this way? Or is it a bug/enhancement to be
made?

Maybe expr should get an __int__ method that returns int(float(self))?

-- 
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.

Reply via email to