Message from discussion
fft from numerical recipes
Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!not-for-mail
From: heiko liebhart <heiko.liebh...@googlemail.com>
Newsgroups: sci.image.processing,sci.math.num-analysis,comp.lang.fortran
Subject: fft from numerical recipes
Date: Tue, 17 Apr 2007 22:48:23 +0200
Organization: albasani.net
Lines: 40
Message-ID: <f03ar3$kt7$1@news.albasani.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.albasani.net uiUj6iFbMLT5w4usdGWHhnDOtCNzAhLbb3Bp0LH0OQlWD35Hcb6AGUgg43TqWYbu/4HhgNG24EiNWqL//+/cXhOrFBYi9zCR6w648ScGFuh82dZJPaQ9FlU/nVSZX14o
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Tue, 17 Apr 2007 20:31:31 +0000 (UTC)
X-User-ID: N2PW54vWvNQKR7a0WTqFjmEDm1tgaNq85gQ5sXLjq9kanoQdaURf+ln3RJJNNPD/YVFP4v/EATq6Ad3A9MS2Hw==
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
X-NNTP-Posting-Host: uo1SSamnX44+TlxMcTxPBt2abnMOLhBBKLeA5C7UgkJ0OURfPxAKj1LntpDBW4FM4nTRNwJfEbhw7cWAmYpQwA==
greetings
i am quite as new to programming in general and to fortran in particular
as to programming ffts.
as i wanted to apply a fouriertransformation to one of my progs for
pulseshaping i started with the subroutine four1 provided in numerical
recipes.
as a start i used a gaussian as input data expecting to get another
gaussian as output data.
so i generated the input values, filled in the zeros in the imag part in
order to use a real function, called the subroutine an off we go for the
crunching.
after rearranging the outputarray in the way according to the book i had
to realize unfortunately the output i got was not really what i suspected.
what i got was something like a double gaussian. i.e. the sign was
alternating. like sign of every second value was inverted oszillating
from plus to minus.
in the next step i took a sin wave as input.
again what i got was not the suspected delta peak at the frequency of
the oszillation but two antsymmetric peaks in the imaginary part.
according to the symmetry mentioned in the book this should be right for
a real and odd funktion like sin but is not fitting to my
understanding of fouriertransformation.
i was wondering whats going wrong. is the trick in the rearranging of
the output or even deeper in the theory of the transformation so that
maybe i would have to use the product of H and H*.
can somebody please give me a hand to get me through this numerical
jungle even step by step.
i would appreciate every hint and assistance.
thanks alot