{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/63469541","id":63469541,"diff_hunk":"@@ -159,6 +159,36 @@ def is_simple(self, x):\n             return p.degree() == 1\n         return False\n \n+    def _eval_rewrite_as_Piecewise(self, *args):\n+        \"\"\"Represents DiracDelta in a Piecewise form\n+\n+           Examples\n+           ========\n+\n+           >>> from sympy import DiracDelta, Piecewise, Symbol, oo\n+           >>> x = Symbol('x', real=True)\n+\n+           >>> DiracDelta(x).rewrite(Piecewise)\n+           Piecewise((oo, Eq(x, 0)), (0, True))\n+\n+           >>> DiracDelta(x - 5).rewrite(Piecewise)\n+           Piecewise((oo, Eq(x - 5, 0)), (0, True))\n+\n+           >>> DiracDelta(x - 5, 4).rewrite(Piecewise)","path":"sympy/functions/special/delta_functions.py","position":null,"original_position":27,"commit_id":"8f5df0a620a68ffbba6e559b6026f92495f01f47","original_commit_id":"98beea890a1bf256d01a734f885b21bebf1de9e5","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},"body":"Yeah, it also does. Both works the same.But I do not know why deltaintegrate has been implemented exclusively.","created_at":"2016-05-17T06:20:49Z","updated_at":"2016-05-17T06:20:49Z","html_url":"https://github.com/sympy/sympy/pull/11103#discussion_r63469541","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/11103","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/63469541"},"html":{"href":"https://github.com/sympy/sympy/pull/11103#discussion_r63469541"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11103"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/11103","id":69815437,"html_url":"https://github.com/sympy/sympy/pull/11103","diff_url":"https://github.com/sympy/sympy/pull/11103.diff","patch_url":"https://github.com/sympy/sympy/pull/11103.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11103","number":11103,"state":"open","locked":false,"title":"Added the piecewise representation of DiracDelta","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},"body":"Ping @asmeurer @moorepants @leosartaj ","created_at":"2016-05-12T10:46:37Z","updated_at":"2016-05-17T06:20:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4a44184ce8974556ac2114248cf1ac98a1203d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/11103/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/11103/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11103/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/8f5df0a620a68ffbba6e559b6026f92495f01f47","head":{"label":"sampadsaha5:rewrite_piecewise","ref":"rewrite_piecewise","sha":"8f5df0a620a68ffbba6e559b6026f92495f01f47","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},"repo":{"id":45640604,"name":"sympy","full_name":"sampadsaha5/sympy","owner":{"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},"private":false,"html_url":"https://github.com/sampadsaha5/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/sampadsaha5/sympy","forks_url":"https://api.github.com/repos/sampadsaha5/sympy/forks","keys_url":"https://api.github.com/repos/sampadsaha5/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sampadsaha5/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sampadsaha5/sympy/teams","hooks_url":"https://api.github.com/repos/sampadsaha5/sympy/hooks","issue_events_url":"https://api.github.com/repos/sampadsaha5/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sampadsaha5/sympy/events","assignees_url":"https://api.github.com/repos/sampadsaha5/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sampadsaha5/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sampadsaha5/sympy/tags","blobs_url":"https://api.github.com/repos/sampadsaha5/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sampadsaha5/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sampadsaha5/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sampadsaha5/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sampadsaha5/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sampadsaha5/sympy/languages","stargazers_url":"https://api.github.com/repos/sampadsaha5/sympy/stargazers","contributors_url":"https://api.github.com/repos/sampadsaha5/sympy/contributors","subscribers_url":"https://api.github.com/repos/sampadsaha5/sympy/subscribers","subscription_url":"https://api.github.com/repos/sampadsaha5/sympy/subscription","commits_url":"https://api.github.com/repos/sampadsaha5/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sampadsaha5/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sampadsaha5/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sampadsaha5/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sampadsaha5/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sampadsaha5/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sampadsaha5/sympy/merges","archive_url":"https://api.github.com/repos/sampadsaha5/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sampadsaha5/sympy/downloads","issues_url":"https://api.github.com/repos/sampadsaha5/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sampadsaha5/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sampadsaha5/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sampadsaha5/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sampadsaha5/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sampadsaha5/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/sampadsaha5/sympy/deployments","created_at":"2015-11-05T21:29:31Z","updated_at":"2016-01-16T12:57:05Z","pushed_at":"2016-05-17T05:49:43Z","git_url":"git://github.com/sampadsaha5/sympy.git","ssh_url":"git@github.com:sampadsaha5/sympy.git","clone_url":"https://github.com/sampadsaha5/sympy.git","svn_url":"https://github.com/sampadsaha5/sympy","homepage":"http://sympy.org/","size":77069,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"sympy:master","ref":"master","sha":"6254c096f84bc43b2030a92f0bfbc9e5fcf20dfb","user":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"repo":{"id":640534,"name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sympy/sympy","description":"A computer algebra system written in pure Python","fork":false,"url":"https://api.github.com/repos/sympy/sympy","forks_url":"https://api.github.com/repos/sympy/sympy/forks","keys_url":"https://api.github.com/repos/sympy/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sympy/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sympy/sympy/teams","hooks_url":"https://api.github.com/repos/sympy/sympy/hooks","issue_events_url":"https://api.github.com/repos/sympy/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sympy/sympy/events","assignees_url":"https://api.github.com/repos/sympy/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sympy/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sympy/sympy/tags","blobs_url":"https://api.github.com/repos/sympy/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sympy/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sympy/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sympy/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sympy/sympy/languages","stargazers_url":"https://api.github.com/repos/sympy/sympy/stargazers","contributors_url":"https://api.github.com/repos/sympy/sympy/contributors","subscribers_url":"https://api.github.com/repos/sympy/sympy/subscribers","subscription_url":"https://api.github.com/repos/sympy/sympy/subscription","commits_url":"https://api.github.com/repos/sympy/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sympy/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sympy/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sympy/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sympy/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sympy/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sympy/sympy/merges","archive_url":"https://api.github.com/repos/sympy/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sympy/sympy/downloads","issues_url":"https://api.github.com/repos/sympy/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sympy/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sympy/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sympy/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sympy/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sympy/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/sympy/sympy/deployments","created_at":"2010-04-30T20:37:14Z","updated_at":"2016-05-16T09:45:30Z","pushed_at":"2016-05-17T05:49:43Z","git_url":"git://github.com/sympy/sympy.git","ssh_url":"git@github.com:sympy/sympy.git","clone_url":"https://github.com/sympy/sympy.git","svn_url":"https://github.com/sympy/sympy","homepage":"http://sympy.org/","size":117706,"stargazers_count":2852,"watchers_count":2852,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1456,"mirror_url":null,"open_issues_count":2331,"forks":1456,"open_issues":2331,"watchers":2852,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11103"},"html":{"href":"https://github.com/sympy/sympy/pull/11103"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/11103"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/11103/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11103/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11103/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/8f5df0a620a68ffbba6e559b6026f92495f01f47"}}}}