M2_SETI/A4/Example/toto.c

20 lines
313 B
C
Raw Normal View History

2023-01-30 11:26:08 +01:00
#include <stdio.h>
void f(float * data, int n){
for(int i = 0; i<n; i++){
data[i] = 1.f/(data[i]*data[i]);
}
}
float fsum(float * data, int n){
float s = 0;
for(int i = 0; i<n; i++){
data[i] = 1.f/(data[i]*data[i]);
s += data[i];
}
return s;
}
int main(void){
}