Re: comparing all the elements of an array

2013-09-16 Thread Nathan Hilterbrand
See below On 09/15/2013 06:48 PM, Unknown User wrote: I have an array of numbers, and i want to find the percentage difference between all the elements. Say my @a = ($a,$b,$c); I need to calculate the percentage difference of element a with b, b with c and c with a. The 3 items above are an ex

comparing all the elements of an array

2013-09-15 Thread Unknown User
I have an array of numbers, and i want to find the percentage difference between all the elements. Say my @a = ($a,$b,$c); I need to calculate the percentage difference of element a with b, b with c and c with a. The 3 items above are an example, it can be hundreds of numbers. Is there an algorithm