/* sigma_error.c show error for different methods */ #include #include float stddeva(int n, float x[]) { float sdev, sumx2, sumx, rn; int i; rn = (float)n; sumx2 = 0.0; sumx = 0.0; for(i=0; i