{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/7041","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/7041/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/7041/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/7041/events","html_url":"https://github.com/sympy/sympy/issues/7041","id":28952883,"number":7041,"title":"pproblem with integration","user":{"login":"kjetil1001","id":5469873,"avatar_url":"https://avatars.githubusercontent.com/u/5469873?v=3","gravatar_id":"","url":"https://api.github.com/users/kjetil1001","html_url":"https://github.com/kjetil1001","followers_url":"https://api.github.com/users/kjetil1001/followers","following_url":"https://api.github.com/users/kjetil1001/following{/other_user}","gists_url":"https://api.github.com/users/kjetil1001/gists{/gist_id}","starred_url":"https://api.github.com/users/kjetil1001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjetil1001/subscriptions","organizations_url":"https://api.github.com/users/kjetil1001/orgs","repos_url":"https://api.github.com/users/kjetil1001/repos","events_url":"https://api.github.com/users/kjetil1001/events{/privacy}","received_events_url":"https://api.github.com/users/kjetil1001/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sympy/sympy/labels/bug","name":"bug","color":"ededed"},{"url":"https://api.github.com/repos/sympy/sympy/labels/imported","name":"imported","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-07-12T06:07:32Z","updated_at":"2016-05-27T07:01:17Z","closed_at":"2016-05-25T20:56:56Z","body":"```\r\nThe following is todays version of sympy from git:\r\n\r\nIn [5]: integrate( (exp(t*x)-1)/x, (x,0,1))\r\nOut[5]: zoo + Ei(t) - Ei(0)\r\n\r\nThe result, using the value zoo which I understand means 1/0, is wrong, sine this integral is perfectly convergent. Wolphram alpha gives the result\r\nntegrate [e^[tx] - 1] / x, x=0..1\r\n\r\nresult:\r\n\r\nDefinite integral:\r\nChi(t)+Shi(t)- log(t) - gamma where\r\n\r\nRawBoxes[TemplateBox[{x}, CoshIntegral]] is the hyperbolic cosine integral »\r\nRawBoxes[RowBox[{log, RowBox[{(, x, )}]}]] is the natural logarithm »\r\nRawBoxes[TemplateBox[{x}, SinhIntegral]] is the hyperbolic sine integral »\r\nEulerGamma is the Euler‐Mascheroni constant »\r\n\r\n(But I am really not sure Wolphrams result is correct either, since it seems to have the wrong limit when $t \\rightarrow 0$.\r\n```\r\nOriginal issue for #7041: http://code.google.com/p/sympy/issues/detail?id=3942\r\nOriginal author: https://code.google.com/u/101829861740325140319/\r\n"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/222074726","html_url":"https://github.com/sympy/sympy/issues/7041#issuecomment-222074726","issue_url":"https://api.github.com/repos/sympy/sympy/issues/7041","id":222074726,"user":{"login":"oldk1331","id":14226565,"avatar_url":"https://avatars.githubusercontent.com/u/14226565?v=3","gravatar_id":"","url":"https://api.github.com/users/oldk1331","html_url":"https://github.com/oldk1331","followers_url":"https://api.github.com/users/oldk1331/followers","following_url":"https://api.github.com/users/oldk1331/following{/other_user}","gists_url":"https://api.github.com/users/oldk1331/gists{/gist_id}","starred_url":"https://api.github.com/users/oldk1331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oldk1331/subscriptions","organizations_url":"https://api.github.com/users/oldk1331/orgs","repos_url":"https://api.github.com/users/oldk1331/repos","events_url":"https://api.github.com/users/oldk1331/events{/privacy}","received_events_url":"https://api.github.com/users/oldk1331/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T07:01:17Z","updated_at":"2016-05-27T07:01:17Z","body":"@asmeurer : should a test case be added for this issue?\r\n````\r\ndiff --git a/sympy/integrals/tests/test_integrals.py b/sympy/integrals/tests/test_integrals.py\r\nindex 96f4cdc..4ec843e 100644\r\n--- a/sympy/integrals/tests/test_integrals.py\r\n+++ b/sympy/integrals/tests/test_integrals.py\r\n@@ -1140,3 +1140,6 @@ def test_issue_4950():\r\n \r\n def test_issue_4968():\r\n     assert integrate(sin(log(x**2))) == x*sin(2*log(x))/5 - 2*x*cos(2*log(x))/5\r\n+\r\n+def test_issue_7041():\r\n+    assert integrate((exp(t*x)-1)/x, (x, 0, 1)) == -log(t) + Ei(t) - EulerGamma\r\n````"}}
{"actor":{"display_login":"oldk1331"}}