{"action":"closed","pull_request":{"state":"closed","review_comments":4,"created_at":"2011-09-15T20:11:46Z","patch_url":"https://github.com/sympy/sympy/pull/598.patch","updated_at":"2011-12-07T14:52:25Z","changed_files":4,"_links":{"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/598/comments"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/598/comments"},"html":{"href":"https://github.com/sympy/sympy/pull/598"},"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/598"}},"issue_url":"https://github.com/sympy/sympy/issues/598","user":{"gravatar_id":"61e106a28e171b4407171702b182759f","id":90703,"url":"https://api.github.com/users/smichr","login":"smichr","avatar_url":"https://secure.gravatar.com/avatar/61e106a28e171b4407171702b182759f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":20,"merged":false,"body":"This function allows one to group all non-x symbols together into lumped variables:\r\n\r\n    >>> from sympy import model, exp\r\n    >>> from sympy.abc import x, y, z\r\n    >>> model(y + 3, x)\r\n    C0\r\n    >>> model(y + 3, x, 'k')\r\n    k0\r\n    >>> model(x + 3, x)\r\n    x + 3\r\n    >>> model(x + 3, x, numbers=True)\r\n    C0 + x\r\n    >>> model(-x + 3, x, numbers=True)\r\n    C0 - x\r\n    >>> model(x + 3*y, x)\r\n    C0 + x\r\n    >>> model(x + 3*y, x, 'x')\r\n    x + x0\r\n    >>> model(exp(x + 3), x)\r\n    exp(x + 3)\r\n    >>> model(y*exp(x + 3), x)\r\n    C0*exp(x)\r\n    >>> model(3*exp(y + x), x)\r\n    C0*exp(x)\r\n\r\nAn attempt was made to be able to simply use constantsimp in ode to do this, but the logic there is to ode-centric and there are many corner cases that led to code that became increasingly unwieldy, so I reverted to writing a standalone routine.","deletions":10,"mergeable":false,"commits":16,"id":333496,"number":598,"merged_by":null,"base":{"user":{"gravatar_id":"cbddfebe00a15f38108875eaafa827de","id":260832,"url":"https://api.github.com/users/sympy","login":"sympy","avatar_url":"https://secure.gravatar.com/avatar/cbddfebe00a15f38108875eaafa827de?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"repo":{"pushed_at":"2011-12-07T08:33:42Z","created_at":"2010-04-30T20:37:14Z","updated_at":"2011-12-07T13:26:40Z","private":false,"clone_url":"https://github.com/sympy/sympy.git","name":"sympy","watchers":261,"master_branch":null,"svn_url":"https://svn.github.com/sympy/sympy","language":"Python","forks":178,"owner":{"gravatar_id":"cbddfebe00a15f38108875eaafa827de","id":260832,"url":"https://api.github.com/users/sympy","login":"sympy","avatar_url":"https://secure.gravatar.com/avatar/cbddfebe00a15f38108875eaafa827de?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"id":640534,"homepage":"http://sympy.org/","description":"A computer algebra system written in pure Python","git_url":"git://github.com/sympy/sympy.git","html_url":"https://github.com/sympy/sympy","size":6412,"open_issues":59,"fork":false,"url":"https://api.github.com/repos/sympy/sympy","ssh_url":"git@github.com:sympy/sympy.git"},"sha":"3d427a48502eab7e6f952a4d04f4e91243acc7a2","ref":"master","label":"sympy:master"},"additions":318,"head":{"user":{"gravatar_id":"61e106a28e171b4407171702b182759f","id":90703,"url":"https://api.github.com/users/smichr","login":"smichr","avatar_url":"https://secure.gravatar.com/avatar/61e106a28e171b4407171702b182759f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"pushed_at":"2011-12-07T14:40:19Z","created_at":"2010-11-04T05:52:58Z","updated_at":"2011-12-07T14:40:19Z","private":false,"clone_url":"https://github.com/smichr/sympy.git","name":"sympy","watchers":4,"master_branch":null,"svn_url":"https://svn.github.com/smichr/sympy","language":"Python","forks":1,"owner":{"gravatar_id":"61e106a28e171b4407171702b182759f","id":90703,"url":"https://api.github.com/users/smichr","login":"smichr","avatar_url":"https://secure.gravatar.com/avatar/61e106a28e171b4407171702b182759f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":1050285,"homepage":"http://sympy.org/","description":"SymPy main development repo","git_url":"git://github.com/smichr/sympy.git","html_url":"https://github.com/smichr/sympy","size":576,"open_issues":1,"fork":true,"url":"https://api.github.com/repos/smichr/sympy","ssh_url":"git@github.com:smichr/sympy.git"},"sha":"5d1aa72a5da386041e5b1d2c82775ba3f97305cc","ref":"model","label":"smichr:model"},"title":"Model function added to simplify","html_url":"https://github.com/sympy/sympy/pull/598","closed_at":"2011-12-07T14:52:25Z","diff_url":"https://github.com/sympy/sympy/pull/598.diff","url":"https://api.github.com/repos/sympy/sympy/pulls/598","merged_at":null},"number":598}