Here you can find the source of minusC(double[] v, double[] u)
public static double[] minusC(double[] v, double[] u)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static double[] minusC(double[] v, double[] u) { double[] vc = Arrays.copyOf(v, v.length); for (int i = 0; i < v.length; i++) { vc[i] -= u[i];//from w w w . j a va2 s .co m } return vc; } }