public void printPoints() {
   for (int i = 0; i < npoint; i++) {
     SequencePoint sp = (SequencePoint) points.elementAt(i);
     Format.print(System.out, "%5d ", i);
     for (int j = 0; j < 3; j++) {
       Format.print(System.out, "%13.3f  ", sp.coord[j]);
     }
     System.out.println();
   }
 }
예제 #2
0
  public void print(PrintStream ps) {

    for (int i = 0; i < rows; i++) {
      for (int j = 0; j < cols; j++) {
        Format.print(ps, "%8.2f", value[i][j]);
      }
      ps.println();
    }
  }
예제 #3
0
  public void printE(PrintStream ps) {

    for (int j = 0; j < rows; j++) {
      Format.print(ps, "%15.4e", e[j]);
    }
  }