Java Matrix Square sqrt(double[] v)

Here you can find the source of sqrt(double[] v)

Description

sqrt

License

Apache License

Declaration

public static double[] sqrt(double[] v) 

Method Source Code

//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*/
}

Related

  1. sqr(double[] a, double res[])
  2. sqrdist(float[] a, float[] b)
  3. sqrEuclidianDist(float[] p, float[] q)
  4. sqrt(double[] vector)