{"action":"closed","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/9474","labels_url":"https://api.github.com/repos/sympy/sympy/issues/9474/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/9474/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/9474/events","html_url":"https://github.com/sympy/sympy/issues/9474","id":85426555,"number":9474,"title":"lambdify throws error with abs","user":{"login":"moorepants","id":276007,"avatar_url":"https://avatars.githubusercontent.com/u/276007?v=3","gravatar_id":"","url":"https://api.github.com/users/moorepants","html_url":"https://github.com/moorepants","followers_url":"https://api.github.com/users/moorepants/followers","following_url":"https://api.github.com/users/moorepants/following{/other_user}","gists_url":"https://api.github.com/users/moorepants/gists{/gist_id}","starred_url":"https://api.github.com/users/moorepants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorepants/subscriptions","organizations_url":"https://api.github.com/users/moorepants/orgs","repos_url":"https://api.github.com/users/moorepants/repos","events_url":"https://api.github.com/users/moorepants/events{/privacy}","received_events_url":"https://api.github.com/users/moorepants/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sympy/sympy/labels/utilities.lambdify","name":"utilities.lambdify","color":"0000FF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-05T05:01:10Z","updated_at":"2016-02-02T15:32:44Z","closed_at":"2016-02-02T15:32:44Z","body":"This is from #7767 and there is a potential fix in #7779.\r\n\r\nJust found a bug in lambdify\r\n\r\n```py\r\nk = symbols('k', complex=True)\r\nlambdify([k], abs(k**2))(10.01+0.1j)\r\n```\r\nthrows \r\n\r\n```\r\n\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-144-4ad0dd2e940e> in <module>()\r\n      1 k = symbols('k', complex=True)\r\n----> 2 lambdify([k], abs(k**2))(10.01+0.1j)\r\n\r\n/usr/lib64/python2.7/site-packages/numpy/__init__.pyc in <lambda>(_Dummy_82)\r\n\r\nTypeError: can't convert complex to float\r\n```\r\n\r\nusing ``sympy.Abs`` leads to the same exception."}}