{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/10251","labels_url":"https://api.github.com/repos/sympy/sympy/issues/10251/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/10251/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/10251/events","html_url":"https://github.com/sympy/sympy/issues/10251","id":121882470,"number":10251,"title":"Calculate limit: math domain error","user":{"login":"satels","id":220572,"avatar_url":"https://avatars.githubusercontent.com/u/220572?v=3","gravatar_id":"","url":"https://api.github.com/users/satels","html_url":"https://github.com/satels","followers_url":"https://api.github.com/users/satels/followers","following_url":"https://api.github.com/users/satels/following{/other_user}","gists_url":"https://api.github.com/users/satels/gists{/gist_id}","starred_url":"https://api.github.com/users/satels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satels/subscriptions","organizations_url":"https://api.github.com/users/satels/orgs","repos_url":"https://api.github.com/users/satels/repos","events_url":"https://api.github.com/users/satels/events{/privacy}","received_events_url":"https://api.github.com/users/satels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-12T21:39:11Z","updated_at":"2015-12-13T12:59:19Z","closed_at":null,"body":"```python\r\nfrom sympy.abc import x\r\nfrom sympy import sqrt, lambdify\r\nimport mpmath\r\n\r\nmpmath.limit(lambdify([x], x-sqrt(x**2-7*x), 'numpy'), mpmath.inf)\r\n\r\nFile \"local/lib/python2.7/site-packages/mpmath/calculus/extrapolation.py\", line 2115, in limit\r\n  return +ctx.adaptive_extrapolation(update, None, kwargs)\r\nFile \"local/lib/python2.7/site-packages/mpmath/calculus/extrapolation.py\", line 1165, in adaptive_extrapolation\r\n  update(partial, xrange(index, index+step))\r\nFile \"local/lib/python2.7/site-packages/mpmath/calculus/extrapolation.py\", line 2109, in update\r\n  values.append(g(k+1))\r\nFile \"local/lib/python2.7/site-packages/mpmath/calculus/extrapolation.py\", line 2099, in <lambda>\r\n  g = lambda k: f(ctx.mpf(k+1)*direction)\r\nFile \"<string>\", line 1, in <lambda>\r\nValueError: math domain error\r\n```"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/164255500","html_url":"https://github.com/sympy/sympy/issues/10251#issuecomment-164255500","issue_url":"https://api.github.com/repos/sympy/sympy/issues/10251","id":164255500,"user":{"login":"sampadsaha5","id":12191457,"avatar_url":"https://avatars.githubusercontent.com/u/12191457?v=3","gravatar_id":"","url":"https://api.github.com/users/sampadsaha5","html_url":"https://github.com/sampadsaha5","followers_url":"https://api.github.com/users/sampadsaha5/followers","following_url":"https://api.github.com/users/sampadsaha5/following{/other_user}","gists_url":"https://api.github.com/users/sampadsaha5/gists{/gist_id}","starred_url":"https://api.github.com/users/sampadsaha5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampadsaha5/subscriptions","organizations_url":"https://api.github.com/users/sampadsaha5/orgs","repos_url":"https://api.github.com/users/sampadsaha5/repos","events_url":"https://api.github.com/users/sampadsaha5/events{/privacy}","received_events_url":"https://api.github.com/users/sampadsaha5/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T12:59:18Z","updated_at":"2015-12-13T12:59:18Z","body":"Hi @satels \r\nWhat is your expected output?\r\nActually I am getting `mpf('3.5')` as output."}}