I need help figuring out how to input the equation for standard deviation. I'm not allowed to use the one given in my cobol software for my class assignment. thanks
I guess there is some software in MicroFocus cobol that automatically does the standard deviation. I'm not supposed to use that. I know the equation is (((x-mean)**2) /N )**.5. I just don't know how to get it into a statement to get it to run. I've tried compute statements for each bracket() individually but that doesn't seem to work. HELP.
Thanks
Option 2:
MULTIPLY X-MEAN BY X-MEAN GIVING X-MEAN-SQD ROUNDED.
DIVIDE N INTO X-MEAN-SQD GIVING STD-DEV-SQD ROUNDED
COMPUTE STD-DEV ROUNDED = STD-DEV-SQD ** .5.
Both should do exactly the same thing. Choose whichever one you think gets you far enough away from the one you're not supposed to use. Betty Scherber
Brainbench MVP for COBOL II
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.