Please test ministat.
Find the average of a set of numbers.
$ echo -e '1\n2\n3\n5.0\n\n' | numaverage -i 2 $ echo -e '1\n2\n3\n5.0\n\n' | numaverage -I .75 $ echo -e '1\n2\n3\n5.0\n\n' | numaverage -M 3 $ echo -e '1\n2\n3\n5.0\n\n' | numaverage -l 2.75
Find boundary numbers in files or STDIN.
$ echo -e '1\n2\n3\n5.0\n\n' | numbound 5.0 $ echo -e '1\n2\n3\n5.0\n\n' | numbound -l 1
This program is the numeric equivilent of the grep utility.
Show the numeric intervals between each line in a file.
$ echo -e '1\n2\n3\n5.0\n\n' | numinterval 1 1 2
Normalize a set of numbers. By default between 0 and 1.
$ echo -e '1\n2\n3\n5.0\n\n' | numnormalize 0.0909090909090909 0.181818181818182 0.272727272727273 0.454545454545455
This program mutates numbers as it encounters them.
Convert from celcius to fahreheit degrees. Multiply by 9, divide by 5 and add 32:
$ echo -e '1\n2\n3\n5.0\n\n' | numprocess /*9,%5,+32/ 33.8 35.6 37.4 41
Print out a random number.
$ numrandom /1..10/ 7
Print out a range of numbers for use in for loops and such.
$ numrange /1..10,15..20/ 1 2 3 4 5 6 7 8 9 10 15 16 17 18 19 20
A program that rounds off numbers it encounters.