// print an array of Doubles to screen with truncation
// No line returns except at the end
public static void print(Double[] aa, int trunc){
ArrayMaths am = new ArrayMaths(aa);
am = am.truncate(trunc);
Double[] aaa = am.array_as_Double();
for(int i=0; i<aa.length; i++){
System.out.print(aaa[i]+" ");
}
System.out.println();
}