{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/165821963","pull_request_review_id":93823946,"id":165821963,"diff_hunk":"@@ -374,6 +374,62 @@ def centroid(self):\n             cy += v*(y1 + y2)\n         return Point(simplify(A*cx), simplify(A*cy))\n \n+\n+    def second_moment_of_area(self, p=None):","path":"sympy/geometry/polygon.py","position":5,"original_position":5,"commit_id":"bf6573bb3cda8162ca77973fa52492a837f6032f","original_commit_id":"bf6573bb3cda8162ca77973fa52492a837f6032f","user":{"login":"gxyd","id":7712241,"avatar_url":"https://avatars0.githubusercontent.com/u/7712241?v=4","gravatar_id":"","url":"https://api.github.com/users/gxyd","html_url":"https://github.com/gxyd","followers_url":"https://api.github.com/users/gxyd/followers","following_url":"https://api.github.com/users/gxyd/following{/other_user}","gists_url":"https://api.github.com/users/gxyd/gists{/gist_id}","starred_url":"https://api.github.com/users/gxyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gxyd/subscriptions","organizations_url":"https://api.github.com/users/gxyd/orgs","repos_url":"https://api.github.com/users/gxyd/repos","events_url":"https://api.github.com/users/gxyd/events{/privacy}","received_events_url":"https://api.github.com/users/gxyd/received_events","type":"User","site_admin":false},"body":"Having default as `p='centroid'` seems more understandable, instead of `None`. And hence update the docstring as well.","created_at":"2018-02-03T18:44:30Z","updated_at":"2018-02-03T18:48:53Z","html_url":"https://github.com/sympy/sympy/pull/13939#discussion_r165821963","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/13939","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/165821963"},"html":{"href":"https://github.com/sympy/sympy/pull/13939#discussion_r165821963"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/13939"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/13939","id":163190093,"html_url":"https://github.com/sympy/sympy/pull/13939","diff_url":"https://github.com/sympy/sympy/pull/13939.diff","patch_url":"https://github.com/sympy/sympy/pull/13939.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/13939","number":13939,"state":"open","locked":false,"title":"second moment of area of 2d polygon","user":{"login":"rushyam","id":23614977,"avatar_url":"https://avatars3.githubusercontent.com/u/23614977?v=4","gravatar_id":"","url":"https://api.github.com/users/rushyam","html_url":"https://github.com/rushyam","followers_url":"https://api.github.com/users/rushyam/followers","following_url":"https://api.github.com/users/rushyam/following{/other_user}","gists_url":"https://api.github.com/users/rushyam/gists{/gist_id}","starred_url":"https://api.github.com/users/rushyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rushyam/subscriptions","organizations_url":"https://api.github.com/users/rushyam/orgs","repos_url":"https://api.github.com/users/rushyam/repos","events_url":"https://api.github.com/users/rushyam/events{/privacy}","received_events_url":"https://api.github.com/users/rushyam/received_events","type":"User","site_admin":false},"body":"implemented the function for the second moment and product moment of area of a polygon. which can be used in sympy continuum mechanics for normal stress calculation in beam.\r\n@moorepants  @ylemkimon  @jksuom please review it.\r\n\r\nCompletes PR #13665 ","created_at":"2018-01-16T14:19:21Z","updated_at":"2018-02-03T18:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed33548f292e3a87c9cb2bcf941bf992985cdace","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/13939/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/13939/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/13939/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/bf6573bb3cda8162ca77973fa52492a837f6032f","head":{"label":"rushyam:master","ref":"master","sha":"bf6573bb3cda8162ca77973fa52492a837f6032f","user":{"login":"rushyam","id":23614977,"avatar_url":"https://avatars3.githubusercontent.com/u/23614977?v=4","gravatar_id":"","url":"https://api.github.com/users/rushyam","html_url":"https://github.com/rushyam","followers_url":"https://api.github.com/users/rushyam/followers","following_url":"https://api.github.com/users/rushyam/following{/other_user}","gists_url":"https://api.github.com/users/rushyam/gists{/gist_id}","starred_url":"https://api.github.com/users/rushyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rushyam/subscriptions","organizations_url":"https://api.github.com/users/rushyam/orgs","repos_url":"https://api.github.com/users/rushyam/repos","events_url":"https://api.github.com/users/rushyam/events{/privacy}","received_events_url":"https://api.github.com/users/rushyam/received_events","type":"User","site_admin":false},"repo":{"id":117691058,"name":"sympy","full_name":"rushyam/sympy","owner":{"login":"rushyam","id":23614977,"avatar_url":"https://avatars3.githubusercontent.com/u/23614977?v=4","gravatar_id":"","url":"https://api.github.com/users/rushyam","html_url":"https://github.com/rushyam","followers_url":"https://api.github.com/users/rushyam/followers","following_url":"https://api.github.com/users/rushyam/following{/other_user}","gists_url":"https://api.github.com/users/rushyam/gists{/gist_id}","starred_url":"https://api.github.com/users/rushyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rushyam/subscriptions","organizations_url":"https://api.github.com/users/rushyam/orgs","repos_url":"https://api.github.com/users/rushyam/repos","events_url":"https://api.github.com/users/rushyam/events{/privacy}","received_events_url":"https://api.github.com/users/rushyam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rushyam/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/rushyam/sympy","forks_url":"https://api.github.com/repos/rushyam/sympy/forks","keys_url":"https://api.github.com/repos/rushyam/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rushyam/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rushyam/sympy/teams","hooks_url":"https://api.github.com/repos/rushyam/sympy/hooks","issue_events_url":"https://api.github.com/repos/rushyam/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/rushyam/sympy/events","assignees_url":"https://api.github.com/repos/rushyam/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/rushyam/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/rushyam/sympy/tags","blobs_url":"https://api.github.com/repos/rushyam/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rushyam/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rushyam/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rushyam/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rushyam/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/rushyam/sympy/languages","stargazers_url":"https://api.github.com/repos/rushyam/sympy/stargazers","contributors_url":"https://api.github.com/repos/rushyam/sympy/contributors","subscribers_url":"https://api.github.com/repos/rushyam/sympy/subscribers","subscription_url":"https://api.github.com/repos/rushyam/sympy/subscription","commits_url":"https://api.github.com/repos/rushyam/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rushyam/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rushyam/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rushyam/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rushyam/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/rushyam/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rushyam/sympy/merges","archive_url":"https://api.github.com/repos/rushyam/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rushyam/sympy/downloads","issues_url":"https://api.github.com/repos/rushyam/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/rushyam/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/rushyam/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/rushyam/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rushyam/sympy/labels{/name}","releases_url":"https://api.github.com/repos/rushyam/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/rushyam/sympy/deployments","created_at":"2018-01-16T14:04:33Z","updated_at":"2018-01-16T14:04:40Z","pushed_at":"2018-01-21T18:55:57Z","git_url":"git://github.com/rushyam/sympy.git","ssh_url":"git@github.com:rushyam/sympy.git","clone_url":"https://github.com/rushyam/sympy.git","svn_url":"https://github.com/rushyam/sympy","homepage":"http://sympy.org/","size":87385,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sympy:master","ref":"master","sha":"1090d5e36e8cc0c130df4e249c2a88f00eb029f7","user":{"login":"sympy","id":260832,"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,"name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"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-02-03T11:30:34Z","pushed_at":"2018-02-03T18:01:30Z","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":88076,"stargazers_count":4570,"watchers_count":4570,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2176,"mirror_url":null,"archived":false,"open_issues_count":3097,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":2176,"open_issues":3097,"watchers":4570,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/13939"},"html":{"href":"https://github.com/sympy/sympy/pull/13939"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/13939"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/13939/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/13939/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/13939/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/bf6573bb3cda8162ca77973fa52492a837f6032f"}},"author_association":"NONE"}}
{"actor":{"display_login":"gxyd"}}