Here you can find the source of sumSq(double... values)
public static double sumSq(double... values)
//package com.java2s; //License from project: Apache License public class Main { public static double sumSq(double... values) { double sum = 0; for (double v : values) { sum += v * v;/*from ww w.ja v a 2 s .c om*/ } return sum; } }