{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/203313062","pull_request_review_id":138174792,"id":203313062,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzMxMzA2Mg==","diff_hunk":"@@ -1404,6 +1406,79 @@ def integrate(*args, **kwargs):\n     else:\n         return integral\n \n+def cauchy_principal_value(func, sym, lower_limit = -oo, upper_limit = oo):\n+    \"\"\"\n+    Compute the Cauchy Principle Value of the definite integral of a real function on the entire real axis.\n+    In mathematics, the Cauchy principal value, is a method for assigning values to certain improper\n+    integrals which would otherwise be undefined.\n+    Cauchy Principle Value is  defined as:","path":"sympy/integrals/integrals.py","position":18,"original_position":18,"commit_id":"fa8c83b4e8217c11e742c31f15aa5869f4118993","original_commit_id":"fa8c83b4e8217c11e742c31f15aa5869f4118993","user":{"login":"jksuom","id":6929119,"node_id":"MDQ6VXNlcjY5MjkxMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6929119?v=4","gravatar_id":"","url":"https://api.github.com/users/jksuom","html_url":"https://github.com/jksuom","followers_url":"https://api.github.com/users/jksuom/followers","following_url":"https://api.github.com/users/jksuom/following{/other_user}","gists_url":"https://api.github.com/users/jksuom/gists{/gist_id}","starred_url":"https://api.github.com/users/jksuom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jksuom/subscriptions","organizations_url":"https://api.github.com/users/jksuom/orgs","repos_url":"https://api.github.com/users/jksuom/repos","events_url":"https://api.github.com/users/jksuom/events{/privacy}","received_events_url":"https://api.github.com/users/jksuom/received_events","type":"User","site_admin":false},"body":"Principle -> Principal","created_at":"2018-07-18T09:36:34Z","updated_at":"2018-07-18T09:36:35Z","html_url":"https://github.com/sympy/sympy/pull/14926#discussion_r203313062","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/14926","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/203313062"},"html":{"href":"https://github.com/sympy/sympy/pull/14926#discussion_r203313062"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/14926"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/14926","id":201557202,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNTU3MjAy","html_url":"https://github.com/sympy/sympy/pull/14926","diff_url":"https://github.com/sympy/sympy/pull/14926.diff","patch_url":"https://github.com/sympy/sympy/pull/14926.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/14926","number":14926,"state":"open","locked":false,"title":"Added function to calculate Cauchy's principal value in sympy/integrals/integrals.py","user":{"login":"avishrivastava11","id":35996093,"node_id":"MDQ6VXNlcjM1OTk2MDkz","avatar_url":"https://avatars0.githubusercontent.com/u/35996093?v=4","gravatar_id":"","url":"https://api.github.com/users/avishrivastava11","html_url":"https://github.com/avishrivastava11","followers_url":"https://api.github.com/users/avishrivastava11/followers","following_url":"https://api.github.com/users/avishrivastava11/following{/other_user}","gists_url":"https://api.github.com/users/avishrivastava11/gists{/gist_id}","starred_url":"https://api.github.com/users/avishrivastava11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avishrivastava11/subscriptions","organizations_url":"https://api.github.com/users/avishrivastava11/orgs","repos_url":"https://api.github.com/users/avishrivastava11/repos","events_url":"https://api.github.com/users/avishrivastava11/events{/privacy}","received_events_url":"https://api.github.com/users/avishrivastava11/received_events","type":"User","site_admin":false},"body":"Added function `cauchy_principal_value` in `sympy/integrals/integrals.py` to implement calculation of Cauchy's principal value\r\n\r\nTook help (code) and reviews by @asmeurer  in #14538 \r\n\r\nNote : I found this PR (#14538) quite helpful, and since there wasn't any on-going activity for quite some time, I decided to take it up and fix the issues and also add the reviews given by @asmeurer in the original PR.\r\n\r\nAlso, If required, I will add more tests and examples for the same.\r\n\r\nPlease review this PR and give me a feedback.\r\nThanks ","created_at":"2018-07-16T07:24:39Z","updated_at":"2018-07-18T09:36:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a88c2758ca0b53b0acb883af14c7c3fcfd0ba67","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Abdullahjavednesar","id":20975634,"node_id":"MDQ6VXNlcjIwOTc1NjM0","avatar_url":"https://avatars0.githubusercontent.com/u/20975634?v=4","gravatar_id":"","url":"https://api.github.com/users/Abdullahjavednesar","html_url":"https://github.com/Abdullahjavednesar","followers_url":"https://api.github.com/users/Abdullahjavednesar/followers","following_url":"https://api.github.com/users/Abdullahjavednesar/following{/other_user}","gists_url":"https://api.github.com/users/Abdullahjavednesar/gists{/gist_id}","starred_url":"https://api.github.com/users/Abdullahjavednesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abdullahjavednesar/subscriptions","organizations_url":"https://api.github.com/users/Abdullahjavednesar/orgs","repos_url":"https://api.github.com/users/Abdullahjavednesar/repos","events_url":"https://api.github.com/users/Abdullahjavednesar/events{/privacy}","received_events_url":"https://api.github.com/users/Abdullahjavednesar/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/14926/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/14926/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/14926/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/fa8c83b4e8217c11e742c31f15aa5869f4118993","head":{"label":"avishrivastava11:avishrivastava11_pull_#14538","ref":"avishrivastava11_pull_#14538","sha":"fa8c83b4e8217c11e742c31f15aa5869f4118993","user":{"login":"avishrivastava11","id":35996093,"node_id":"MDQ6VXNlcjM1OTk2MDkz","avatar_url":"https://avatars0.githubusercontent.com/u/35996093?v=4","gravatar_id":"","url":"https://api.github.com/users/avishrivastava11","html_url":"https://github.com/avishrivastava11","followers_url":"https://api.github.com/users/avishrivastava11/followers","following_url":"https://api.github.com/users/avishrivastava11/following{/other_user}","gists_url":"https://api.github.com/users/avishrivastava11/gists{/gist_id}","starred_url":"https://api.github.com/users/avishrivastava11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avishrivastava11/subscriptions","organizations_url":"https://api.github.com/users/avishrivastava11/orgs","repos_url":"https://api.github.com/users/avishrivastava11/repos","events_url":"https://api.github.com/users/avishrivastava11/events{/privacy}","received_events_url":"https://api.github.com/users/avishrivastava11/received_events","type":"User","site_admin":false},"repo":{"id":139850245,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk4NTAyNDU=","name":"sympy","full_name":"avishrivastava11/sympy","owner":{"login":"avishrivastava11","id":35996093,"node_id":"MDQ6VXNlcjM1OTk2MDkz","avatar_url":"https://avatars0.githubusercontent.com/u/35996093?v=4","gravatar_id":"","url":"https://api.github.com/users/avishrivastava11","html_url":"https://github.com/avishrivastava11","followers_url":"https://api.github.com/users/avishrivastava11/followers","following_url":"https://api.github.com/users/avishrivastava11/following{/other_user}","gists_url":"https://api.github.com/users/avishrivastava11/gists{/gist_id}","starred_url":"https://api.github.com/users/avishrivastava11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avishrivastava11/subscriptions","organizations_url":"https://api.github.com/users/avishrivastava11/orgs","repos_url":"https://api.github.com/users/avishrivastava11/repos","events_url":"https://api.github.com/users/avishrivastava11/events{/privacy}","received_events_url":"https://api.github.com/users/avishrivastava11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avishrivastava11/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/avishrivastava11/sympy","forks_url":"https://api.github.com/repos/avishrivastava11/sympy/forks","keys_url":"https://api.github.com/repos/avishrivastava11/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avishrivastava11/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avishrivastava11/sympy/teams","hooks_url":"https://api.github.com/repos/avishrivastava11/sympy/hooks","issue_events_url":"https://api.github.com/repos/avishrivastava11/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/avishrivastava11/sympy/events","assignees_url":"https://api.github.com/repos/avishrivastava11/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/avishrivastava11/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/avishrivastava11/sympy/tags","blobs_url":"https://api.github.com/repos/avishrivastava11/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avishrivastava11/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avishrivastava11/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/avishrivastava11/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avishrivastava11/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/avishrivastava11/sympy/languages","stargazers_url":"https://api.github.com/repos/avishrivastava11/sympy/stargazers","contributors_url":"https://api.github.com/repos/avishrivastava11/sympy/contributors","subscribers_url":"https://api.github.com/repos/avishrivastava11/sympy/subscribers","subscription_url":"https://api.github.com/repos/avishrivastava11/sympy/subscription","commits_url":"https://api.github.com/repos/avishrivastava11/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/avishrivastava11/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/avishrivastava11/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/avishrivastava11/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/avishrivastava11/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/avishrivastava11/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avishrivastava11/sympy/merges","archive_url":"https://api.github.com/repos/avishrivastava11/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avishrivastava11/sympy/downloads","issues_url":"https://api.github.com/repos/avishrivastava11/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/avishrivastava11/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/avishrivastava11/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/avishrivastava11/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avishrivastava11/sympy/labels{/name}","releases_url":"https://api.github.com/repos/avishrivastava11/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/avishrivastava11/sympy/deployments","created_at":"2018-07-05T13:01:45Z","updated_at":"2018-07-17T14:22:34Z","pushed_at":"2018-07-18T08:54:41Z","git_url":"git://github.com/avishrivastava11/sympy.git","ssh_url":"git@github.com:avishrivastava11/sympy.git","clone_url":"https://github.com/avishrivastava11/sympy.git","svn_url":"https://github.com/avishrivastava11/sympy","homepage":"http://sympy.org/","size":91866,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sympy:master","ref":"master","sha":"e53b24ad345e11769dd1989e4873380c0f94b4e2","user":{"login":"sympy","id":260832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDgzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/260832?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnk2NDA1MzQ=","name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDgzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/260832?v=4","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":"2018-07-18T05:08:05Z","pushed_at":"2018-07-18T09:33:53Z","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":92039,"stargazers_count":4947,"watchers_count":4947,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2306,"mirror_url":null,"archived":false,"open_issues_count":3388,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2306,"open_issues":3388,"watchers":4947,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/14926"},"html":{"href":"https://github.com/sympy/sympy/pull/14926"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/14926"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/14926/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/14926/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/14926/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/fa8c83b4e8217c11e742c31f15aa5869f4118993"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jksuom"}}