|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Is there a simpler way??by yabba (Initiate) |
| on Apr 08, 2001 at 03:07 UTC ( [id://70774]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.yabba has asked for the wisdom of the Perl Monks concerning the following question:
Ok, I have 6 test grades: 70 74 80 82 68 76 and the average comes out to 75. Now, I need to figure out the standard deviation, which is square root of (sum of squares of these differences)/(class size). I did it this way:
Now, if I had a DAT file already containing the scores, $score, and I already have the variable $avg, is there a simpler way??
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||