[clean-list] FFT with Clean

Martin Wierich martinw@cs.kun.nl
Mon, 06 Nov 2000 18:17:32 +0100


Hi Siegfried,

Siegfried Gonzi wrote:
> So, now comes my problem: what in hell is the Start code doing:
> 
> Start:: {#Real}
> Start= {xx.[i] \\i<- [1..8]}
> where
>     xx= FFT delta
>     delta = {x \\ x <- ([1.0]++(repeatn 4095 0.0))}
> 
> What should that suspected '4095' mean? What say me the above code: I
> get
> an array with 8 members, where every member is the result of the FFT
> from
> values ranging from 1,0,0,...0,0,0 (until 4095 zeros) ?
> FFT {1.0,0.0,0.0,0.0,0.0...0.0} and that 8 times? I cannot cope with
> that.

"repeatn 4095 0.0" creates a list with 4095 zeros, so "delta" is an array with
4096 elements where all but the first one are zeros. This array is passed to
"FFT" and the result will be another array with (I guess) 4096 elements from
which the elements with indices 1 to 8 form the overall result.

> ..for amateur astronomers exists for Winzigweich..

yak, yak, yak (I didn't know that joke)

bye 
  Martin Wierich