Mathematical commands on whole lists

lmath_calc ?list1? ?action? ?list2?
makes calculations on lists. Action can be one of +, -, * or /
eg.:
	% lmath_calc {1 2 3.2 4} + {1 2 3.2 4}
	2.0 4.0 6.4 8.0
lmath_sum ?list?
returns the sum of the numbers in the list
lmath_min ?list?
returns the minimum of the numbers in the list
lmath_max ?list?
returns the maximum of the numbers in the list
lmath_cumul ?list?
returns a list containing the cumulative sums of the numbers in the list
lmath_incr ?list? ?value?
returns a list containing the numbers in the list incremented by value
lmath_between ?list? ?min? ?max?
returns a list containing the numbers in the list but with a minimum and maximum: Any value higher than the maximum is changed to the maximum. Any value lower than the minimum is changed to the minimum.
lmath_between ?list?
returns the average of the numbers in the list.