{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/74568138","id":74568138,"diff_hunk":"@@ -0,0 +1,472 @@\n+\"\"\"\n+This module can be used to solve 2D beam bending problems with\n+singularity functions in mechanics.\n+\n+\"\"\"\n+\n+from __future__ import print_function, division\n+\n+from sympy.core import S, Symbol, diff\n+from sympy.solvers import linsolve\n+from sympy.printing import sstr\n+from sympy.functions import SingularityFunction\n+from sympy.core import sympify\n+from sympy.integrals import integrate\n+\n+\n+class Beam(object):\n+    \"\"\"\n+    A Beam is a structural element that is capable of withstanding load\n+    primarily by resisting against bending. Beams are characterized by\n+    their cross sectional profile(Second moment of area), their length\n+    and their material.\n+\n+\n+    Examples\n+    ========\n+    There is a beam of length 4 meters. A constant distributed load of 6 Nm/m\n+    is applied from half of the beam till the end. There are two supports below\n+    the beam, one at the starting point and another at the ending point of the beam.\n+    The deflection of the beam at the end is resticted.\n+\n+    >>> from sympy.physics.continuum_mechanics.beam import Beam\n+    >>> from sympy import Symbol, Piecewise\n+    >>> x = Symbol('x')\n+    >>> E = Symbol('E')\n+    >>> I = Symbol('I')\n+    >>> b = Beam(4, E, I)\n+    >>> b.apply_load(value=-9, start=4, order=-1)\n+    >>> b.apply_load(value=-3, start=0, order=-1)\n+    >>> b.apply_load(order=0, start=2, value=6)","path":"sympy/physics/continuum_mechanics/beam.py","position":null,"original_position":40,"commit_id":"279334e434aa7d6842b80c581293eac4424911e1","original_commit_id":"509c7eb9d523cd890f021f166d2e4e72569bfed2","user":{"login":"moorepants","id":276007,"avatar_url":"https://avatars.githubusercontent.com/u/276007?v=3","gravatar_id":"","url":"https://api.github.com/users/moorepants","html_url":"https://github.com/moorepants","followers_url":"https://api.github.com/users/moorepants/followers","following_url":"https://api.github.com/users/moorepants/following{/other_user}","gists_url":"https://api.github.com/users/moorepants/gists{/gist_id}","starred_url":"https://api.github.com/users/moorepants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorepants/subscriptions","organizations_url":"https://api.github.com/users/moorepants/orgs","repos_url":"https://api.github.com/users/moorepants/repos","events_url":"https://api.github.com/users/moorepants/events{/privacy}","received_events_url":"https://api.github.com/users/moorepants/received_events","type":"User","site_admin":false},"body":"All of the arguments are non-optional except for `end`, so please don't show them in the examples such that it seems like they are all optional. It is a bit misleading. Given:\r\n\r\n```python\r\ndef f(a, b, c=1):\r\n```\r\n\r\nYou should show examples like:\r\n\r\n```python\r\n>>> f('s', 3, c=2)\r\n>>> f('y', 2)\r\n```","created_at":"2016-08-12T10:03:07Z","updated_at":"2016-08-12T10:03:07Z","html_url":"https://github.com/sympy/sympy/pull/11374#discussion_r74568138","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/11374","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/74568138"},"html":{"href":"https://github.com/sympy/sympy/pull/11374#discussion_r74568138"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11374"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/11374","id":76880772,"html_url":"https://github.com/sympy/sympy/pull/11374","diff_url":"https://github.com/sympy/sympy/pull/11374.diff","patch_url":"https://github.com/sympy/sympy/pull/11374.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11374","number":11374,"state":"open","locked":false,"title":"Beam Bending module using Singularity Function module.","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":"This PR is built on top of #11237 and #11266.\r\n\r\nAdditional features if extra time (in new PR):\r\n\r\n- Plot the shear, bending, slope and deflection diagrams.\r\n- See if this works with the units package in the physics package.\r\n- Compute the strain and stress at any location in the beam.","created_at":"2016-07-10T18:56:55Z","updated_at":"2016-08-12T10:03:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34f8d18b9d5e7998676fed41f527ec81547f9288","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/11374/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/11374/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11374/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/279334e434aa7d6842b80c581293eac4424911e1","head":{"label":"sampadsaha5:loading","ref":"loading","sha":"279334e434aa7d6842b80c581293eac4424911e1","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-08-12T09:54:31Z","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":73917,"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":"48fcd288ce523a7befe3bd40a6a632b1a2cc3096","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-08-12T08:11:56Z","pushed_at":"2016-08-12T09:54:33Z","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":116863,"stargazers_count":3032,"watchers_count":3032,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1534,"mirror_url":null,"open_issues_count":2491,"forks":1534,"open_issues":2491,"watchers":3032,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11374"},"html":{"href":"https://github.com/sympy/sympy/pull/11374"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/11374"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/11374/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11374/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11374/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/279334e434aa7d6842b80c581293eac4424911e1"}}}}
{"actor":{"display_login":"moorepants"}}