{"action":"closed","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/9448","labels_url":"https://api.github.com/repos/sympy/sympy/issues/9448/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/9448/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/9448/events","html_url":"https://github.com/sympy/sympy/issues/9448","id":83041176,"number":9448,"title":"simplify throws ValueError","user":{"login":"x-or","id":3610781,"avatar_url":"https://avatars.githubusercontent.com/u/3610781?v=3","gravatar_id":"","url":"https://api.github.com/users/x-or","html_url":"https://github.com/x-or","followers_url":"https://api.github.com/users/x-or/followers","following_url":"https://api.github.com/users/x-or/following{/other_user}","gists_url":"https://api.github.com/users/x-or/gists{/gist_id}","starred_url":"https://api.github.com/users/x-or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-or/subscriptions","organizations_url":"https://api.github.com/users/x-or/orgs","repos_url":"https://api.github.com/users/x-or/repos","events_url":"https://api.github.com/users/x-or/events{/privacy}","received_events_url":"https://api.github.com/users/x-or/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-31T08:42:19Z","updated_at":"2015-06-24T15:43:33Z","closed_at":"2015-06-24T15:43:33Z","body":"SymPy 0.7.6 fails:\r\n```\r\n>>> import sympy as sy\r\n>>> a = sy.sympify(\"1/(1 - (-1)**(2/3) - (-1)**(1/3)) + 1/(1 + (-1)**(2/3) + (-1)**(1/3))\")\r\n>>> a.simplify()\r\n\r\nTraceback (most recent call last):\r\n  File \"issue.py\", line 3, in <module>\r\n    a.simplify()\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\core\\expr.py\", line 2922, in simplify\r\n    return simplify(self, ratio, measure)\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\simplify\\simplify.py\", line 3762, in simplify\r\n    n, d = fraction(radsimp(1/denom, symbolic=False, max_terms=1))\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\simplify\\simplify.py\", line 2026, in radsimp\r\n    n, d = fraction(handle(expr))\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\simplify\\simplify.py\", line 1969, in handle\r\n    if _d.is_Number and _d.equals(d):\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\core\\expr.py\", line 636, in equals\r\n    for si in sol):\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\core\\expr.py\", line 636, in <genexpr>\r\n    for si in sol):\r\n  File \"C:\\Python27\\lib\\site-packages\\sympy\\simplify\\simplify.py\", line 3881, in nsimplify\r\n    raise ValueError(\"constants must be real-valued\")\r\nValueError: constants must be real-valued\r\n```"}}