Jim Tellier wrote: > If you want the arithmetic mean it's given by > (eqn 1) > > (V(min) + V(max) ) / 2 It is not. The arithmetic mean is the sum of a list of numbers, divided by the total number of numbers in the list. The equation you give is valid for lists containing one or two numbers, but invalid for all others. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.