17 lines
No EOL
280 B
C
17 lines
No EOL
280 B
C
#include <stdio.h>
|
|
#include <math.h>
|
|
|
|
void f(float * x, float * y, float a, int n){
|
|
for(int i = 0; i<n; i++){
|
|
y[i] += a*x[i];
|
|
}
|
|
}
|
|
|
|
void f2(float * x, float * y, float a, int n){
|
|
for(int i = 0; i<n; i++){
|
|
y[i] += sqrt(a*x[i]);
|
|
}
|
|
}
|
|
|
|
int main(void){
|
|
} |