Hey guys Ive been working on this problem for standard deviation, and so far ive got it all right accept my declaration in this module, was wondering if anyone can help me see whats wrong with my formula or the decelerations i have made
Here is the code for my function:
double findStdDev(double x1, double x2, double x3, double x4, double x5)
{
double sDev,x;
x=1;
sDev=sqrt((x1-pow(x,2))+(x2-pow(x,2))+(x3-pow(x,2))+(x3-pow(x,2))+(x4-pow(x,2))+(x5-pow(x,2)));
return sDev;
}