{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/9234","labels_url":"https://api.github.com/repos/sympy/sympy/issues/9234/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/9234/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/9234/events","html_url":"https://github.com/sympy/sympy/pull/9234","id":65912883,"number":9234,"title":"pretty print: use single-char square root symbol in simple cases","user":{"login":"cbm755","id":818622,"avatar_url":"https://avatars.githubusercontent.com/u/818622?v=3","gravatar_id":"","url":"https://api.github.com/users/cbm755","html_url":"https://github.com/cbm755","followers_url":"https://api.github.com/users/cbm755/followers","following_url":"https://api.github.com/users/cbm755/following{/other_user}","gists_url":"https://api.github.com/users/cbm755/gists{/gist_id}","starred_url":"https://api.github.com/users/cbm755/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbm755/subscriptions","organizations_url":"https://api.github.com/users/cbm755/orgs","repos_url":"https://api.github.com/users/cbm755/repos","events_url":"https://api.github.com/users/cbm755/events{/privacy}","received_events_url":"https://api.github.com/users/cbm755/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-02T12:07:23Z","updated_at":"2015-04-04T15:54:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/9234","html_url":"https://github.com/sympy/sympy/pull/9234","diff_url":"https://github.com/sympy/sympy/pull/9234.diff","patch_url":"https://github.com/sympy/sympy/pull/9234.patch"},"body":"For single-char Symbols and for non-negative integers we use\r\nthe unicode square root symbol.  As this doesn't include a top\r\noverline indicated what the root encompasses, we use this only\r\nfor simple unambiguous cases like:\r\n````\r\n>>> pprint(exp(3*sqrt(5*x*pi)))\r\n 3⋅√5⋅√π⋅√x\r\nℯ\r\n````\r\nUpdate tests for this.\r\n\r\nPerhaps slightly more controversial:\r\n````\r\n>>> pprint(sqrt(123))\r\n√123\r\n>>> pprint(sqrt(Symbol('C1')))\r\n  ____\r\n╲╱ C₁\r\n````\r\nNote---as in this last case---we do *not* simply use \"√\" for all\r\nSymbols because \"√C₁\" looks ambiguous.  Add test for this.\r\n\r\nAn alternative would be to combine the \"√\" symbol with some\r\noverlining, although at some cost in vertical space.  And the\r\noverline does not connect to the \"√\" symbol."},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/89604353","html_url":"https://github.com/sympy/sympy/pull/9234#issuecomment-89604353","issue_url":"https://api.github.com/repos/sympy/sympy/issues/9234","id":89604353,"user":{"login":"cbm755","id":818622,"avatar_url":"https://avatars.githubusercontent.com/u/818622?v=3","gravatar_id":"","url":"https://api.github.com/users/cbm755","html_url":"https://github.com/cbm755","followers_url":"https://api.github.com/users/cbm755/followers","following_url":"https://api.github.com/users/cbm755/following{/other_user}","gists_url":"https://api.github.com/users/cbm755/gists{/gist_id}","starred_url":"https://api.github.com/users/cbm755/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbm755/subscriptions","organizations_url":"https://api.github.com/users/cbm755/orgs","repos_url":"https://api.github.com/users/cbm755/repos","events_url":"https://api.github.com/users/cbm755/events{/privacy}","received_events_url":"https://api.github.com/users/cbm755/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T15:54:35Z","updated_at":"2015-04-04T15:54:35Z","body":"Ok @certik  I added a setting.  Let me know if its ok, or needs different name, etc."}}