Pure Programmer
Blue Matrix


Cluster Map

Project: Standard Deviation

Write a filter program that accepts text representations of floating point values on the standard input, one per line. The program should then compute the standard deviation of a list of floating point values. Finally the program should simply output the value of the standard deviation to 16 decimal places on a single line so that it can easily be used by other programs.

Output
$ perl StandardDeviation.pl < ../../data/text/FPList1.txt "pow" is not exported by the Math::Trig module Can't continue after import errors at StandardDeviation.pl line 9. BEGIN failed--compilation aborted at StandardDeviation.pl line 9. $ perl StandardDeviation.pl < ../../data/text/FPList2.txt "pow" is not exported by the Math::Trig module Can't continue after import errors at StandardDeviation.pl line 9. BEGIN failed--compilation aborted at StandardDeviation.pl line 9. $ perl StandardDeviation.pl < ../../data/text/FPList3.txt "pow" is not exported by the Math::Trig module Can't continue after import errors at StandardDeviation.pl line 9. BEGIN failed--compilation aborted at StandardDeviation.pl line 9.

Solution