payload: {"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/17928","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/17928/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/17928/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/17928/events","html_url":"https://github.com/sympy/sympy/issues/17928","id":525312948,"node_id":"MDU6SXNzdWU1MjUzMTI5NDg=","number":17928,"title":"This integral yields different values if a constant is inside or outside the expression","user":{"login":"caph1993","id":5473460,"node_id":"MDQ6VXNlcjU0NzM0NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/5473460?v=4","gravatar_id":"","url":"https://api.github.com/users/caph1993","html_url":"https://github.com/caph1993","followers_url":"https://api.github.com/users/caph1993/followers","following_url":"https://api.github.com/users/caph1993/following{/other_user}","gists_url":"https://api.github.com/users/caph1993/gists{/gist_id}","starred_url":"https://api.github.com/users/caph1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caph1993/subscriptions","organizations_url":"https://api.github.com/users/caph1993/orgs","repos_url":"https://api.github.com/users/caph1993/repos","events_url":"https://api.github.com/users/caph1993/events{/privacy}","received_events_url":"https://api.github.com/users/caph1993/received_events","type":"User","site_admin":false},"labels":[{"id":71685091,"node_id":"MDU6TGFiZWw3MTY4NTA5MQ==","url":"https://api.github.com/repos/sympy/sympy/labels/Wrong%20Result","name":"Wrong Result","color":"e11d21","default":false,"description":"The output produced by SymPy is mathematically incorrect."},{"id":758421190,"node_id":"MDU6TGFiZWw3NTg0MjExOTA=","url":"https://api.github.com/repos/sympy/sympy/labels/integrals.definite","name":"integrals.definite","color":"0000ff","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-11-19T22:47:24Z","updated_at":"2020-01-12T17:55:12Z","closed_at":null,"author_association":"NONE","body":"Consider the following minimal example. Since `c` is constant with respect to `x`, it can be put inside or outside the integral, as shown in `sol1` and `sol2`, and the results should be the same. But they are not.\r\n\r\n```python\r\nprint('This is a bug report of two expressions that should yield the same value...')\r\nfrom sympy import symbols, exp, integrate, factor\r\n\r\nx,a,d = symbols('x,a,d', positive=True)\r\nc = 1 / (exp(-a)-exp(-a-d))\r\nsol1 = integrate(c*x*exp(-x), (x,a,a+d))\r\nsol2 = c*integrate(x*exp(-x), (x,a,a+d))\r\nprint('They are diferent (subtraction not zero) :', float((sol1-sol2).subs({a:0,d:1})))\r\n```\r\nOutput shows `0.37...` and the two expressions `sol1` and `sol2` are indeed very different (`sol2` is the correct one)."},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/573440021","html_url":"https://github.com/sympy/sympy/issues/17928#issuecomment-573440021","issue_url":"https://api.github.com/repos/sympy/sympy/issues/17928","id":573440021,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MzQ0MDAyMQ==","user":{"login":"sachin-4099","id":46645803,"node_id":"MDQ6VXNlcjQ2NjQ1ODAz","avatar_url":"https://avatars0.githubusercontent.com/u/46645803?v=4","gravatar_id":"","url":"https://api.github.com/users/sachin-4099","html_url":"https://github.com/sachin-4099","followers_url":"https://api.github.com/users/sachin-4099/followers","following_url":"https://api.github.com/users/sachin-4099/following{/other_user}","gists_url":"https://api.github.com/users/sachin-4099/gists{/gist_id}","starred_url":"https://api.github.com/users/sachin-4099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachin-4099/subscriptions","organizations_url":"https://api.github.com/users/sachin-4099/orgs","repos_url":"https://api.github.com/users/sachin-4099/repos","events_url":"https://api.github.com/users/sachin-4099/events{/privacy}","received_events_url":"https://api.github.com/users/sachin-4099/received_events","type":"User","site_admin":false},"created_at":"2020-01-12T17:55:12Z","updated_at":"2020-01-12T17:55:12Z","author_association":"CONTRIBUTOR","body":"Shall I go ahead and open a PR to fix the issue, when there is only one condition @jksuom.  "}}
other: {"actor":{"display_login":"sachin-4099"}}