MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / approx

Function approx

contents/cooley_tukey/code/c/fft.c:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void approx(double complex *X, double complex *Y, size_t N) {
98 for (size_t i = 0; i < N; ++i) {
99 if (cabs(X[i]) - cabs(Y[i]) > 1E-5) {
100 printf("This is not approximate.\n");
101 return;
102 }
103 }
104 printf("This is approximate.\n");
105}
106
107int main() {
108 srand((unsigned int)time(NULL));

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected