Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sqrt function
//gcc 4.9.3 #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; } float syn(float *a, float *b, int dimensions) { float similarity=0; float sumup=0; float sumdown=0; float as=0; float bs=0; int i; for(i=0; i<dimensions; i++) { sumup = sumup + a[i] * b[i]; as = as + a[i] * a[i]; bs = bs + b[i] * b[i]; } sumdown = sqrtf(as) * sqrtf(bs); similarity = sumup / sumdown; return similarity; }
run
|
edit
|
history
|
help
0
ALPAHABET PATTERNS
Nice1
bitmask shift
challoc
structt
Array Practice
child process
ayudantia ejercicio 2 numero nashee
orange blue bell Einstein's piece chastitise then
bitmask2