Here you can find the source of sum(double[] x, int start, int end)
public static double sum(double[] x, int start, int end)
//package com.java2s; //License from project: Apache License public class Main { public static double sum(double[] x, int start, int end) { double sum = 0; for (int i = start; i < end; i++) { sum += x[i];// w w w.ja va 2 s .c o m } return sum; } }