double sum(double array[]);