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