20 lines
No EOL
313 B
C
20 lines
No EOL
313 B
C
#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){
|
|
} |