Anonymous user
Fast Fourier transform: Difference between revisions
→{{header|Lua}}
m (Add Klong example) |
|||
Line 1,879:
data = toComplex{1, 1, 1, 1, 0, 0, 0, 0};
-- this works for old lua versions
print("orig:", unpack(data))▼
-- print("
-- print("fft:", unpack(fft(data)))
-- Beginning with Lua 5.2 you have to write
▲print("orig:", table.unpack(data))
print("fft:", table.unpack(fft(data)))</lang>
=={{header|Maple}}==
|