13 lines
227 B
C++
13 lines
227 B
C++
#include <math.hpp>
|
|
#include <cmath>
|
|
|
|
int main(int argc, char** argv) {
|
|
math::csignal s;
|
|
|
|
for (int i=0; i<100; ++i) {
|
|
s.push_back(std::sin(2*math::pi()*50*i/100));
|
|
}
|
|
math::csignal tfd = math::fft(s);
|
|
|
|
return 0;
|
|
}
|