Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3835 by [email protected]: Symbolic arguments to lambdify output
http://code.google.com/p/sympy/issues/detail?id=3835

In [34]: lambdify(x, x**2)(x)
Out[34]:
 2
x

In [35]: lambdify(x, ln(x))(x)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-35-3dc7d0e80444> in <module>()
----> 1 lambdify(x, ln(x))(x)

/sw/lib/python2.7/site-packages/numpy/__init__.pyc in <lambda>(x)

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/expr.pyc in __float__(self)
    239         if result.is_number and result.as_real_imag()[1]:
    240             raise TypeError("can't convert complex to float")
--> 241         raise TypeError("can't convert expression to float")
    242
    243     def __complex__(self):

TypeError: can't convert expression to float

Clearly one of these should work and the other shouldn't.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to