Group Abstract Group Abstract

Message Boards Message Boards

0
|
36 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Unexpected difference between functions plots involving oscillatory integrals

Posted 1 day ago

I'm trying to plot three functions involving oscillatory integrals.

I also implemented these functions in Python using SciPy, and the plots there look similar for all three functions. However, in Mathematica, the curves differ. What is the reason? Which one is correct? Python or Wolfram?
this is the link of the Python code which you can run it in colab

Here's my code in Mathematica 11:

POSTED BY: Reza rho
2 Replies

I took a symbolic look at the three functions to be integrated. The first two are identical. The third is not identical, but it differs from the others by an odd function, whose integral between -30 and 30 vanishes. Is this just a test for numerical algorithms?

POSTED BY: Gianluca Gorni

Try using "MultiPeriodic" method instead of "GlobalAdaptive" i would guess is better for this type of integral.

POSTED BY: Bruno Tenorio
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard