Here you can find the source of abs(double... values)
public static double[] abs(double... values)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] abs(double... values) { double[] values2 = new double[values.length]; for (int i = 0; i < values.length; i++) { values2[i] = Math.abs(values[i]); }/* w w w. ja va 2s .c o m*/ return values2; } }