PolynomialSample2.java
01 /*
02  * $Id: PolynomialSample2.java,v 1.7 2008/02/02 03:06:27 koga Exp $
03  *
04  * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05  *
06  */
07 package matxbook.chap17;
08 
09 import org.mklab.nfc.matrix.DoubleMatrix;
10 import org.mklab.nfc.matrix.Matrix;
11 import org.mklab.nfc.scalar.Polynomial;
12 
13 
14 /**
15  * 係数ベクトルによる多項式の定義のサンプルです。
16  @author koga
17  @version $Revision: 1.7 $, 2004/04/15
18  */
19 public class PolynomialSample2 {
20 
21   /**
22    * メインメソッド
23    
24    @param args コマンドライン引数
25    */
26   @SuppressWarnings("nls")
27   public static void main(String[] args) {
28     Matrix u = new DoubleMatrix(new double[] {432});
29     Polynomial p2 = new Polynomial(u);
30     p2.print("p2");
31     Matrix v = p2.getCoefficients();
32     v.print("v");
33   }
34 }