Group Abstract Group Abstract

Message Boards Message Boards

Why do i get different outputs for equivalent commands?

Dear all, first i'd like to apologize if my post is out of topic or in the wrong form but is my first experience with both Mathematica and this forum. I have a problem extracting the first Fourier coefficient of a function, which you can see in the image enter image description here ![][2]

G(w) is a lorentzian function, lambda is a wavelenght, z is the space dependance, w the frequency and t the time

My problem is that if i define the function (the same separeting the terms) and then try to extract the first coefficient ( by definitio, using NIntegrate and the defining integral of the fourier coefficient), i get something different than if i just put the whole definition of the function in the integral. I hope my problem is clear, i don't know which result i should trust because it gives two different output just substituting to a function its expression, which is of course nonsense. Do you know what i can do?? Thank you very much.

POSTED BY: Matteo Di Loreto
4 Replies
POSTED BY: Matteo Di Loreto
POSTED BY: David Reiss

thanks, i edited the post right now, it should be visible!

POSTED BY: Matteo Di Loreto
POSTED BY: Jesse Friedman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard