How can I calculate the following integral:
$$ \int_{-\infty }^{\infty} e^{-x^{2} + sin x}dx$$
Thank you very much!
How can I calculate the following integral:
$$ \int_{-\infty }^{\infty} e^{-x^{2} + sin x}dx$$
Thank you very much!
Copyright © 2021 JogjaFile Inc.
Have you got any reason to believe that there is a closed form expression for it? The numerical value comes up to be 2.0671926894979906.
WolframAlpha does not accept the integral when you write it in plain text. I used
Or in MATLAB, you'd use
If you wanted to evaluate this yourself, you could implement midpoint rule, trapezoid rule etc. by hand. Of course math softwares usually have much better algorithms implemented.