Here you can find the source of multiplycst(int k, double[] t)
static public double[] multiplycst(int k, double[] t)
//package com.java2s; //License from project: Open Source License public class Main { static public double[] multiplycst(int k, double[] t) { if (t == null) { System.err.println("empty array for multiplying by constant"); return null; } else {//from w ww .j a v a 2 s .c om double[] res = new double[t.length]; for (int i = 0; i < t.length; i++) { res[i] = t[i] * k; } return res; } } }