01 /*
02 * $Id: RationalPolynomialMatrixDerivativeIntegral.java,v 1.6 2008/01/14 09:06:53 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.Matrix;
10 import org.mklab.nfc.matrix.RationalPolynomialMatrix;
11 import org.mklab.nfc.scalar.Polynomial;
12 import org.mklab.nfc.scalar.RationalPolynomial;
13
14
15 /**
16 * @author koga
17 * @version $Revision: 1.6 $, 2004/04/19
18 */
19 public class RationalPolynomialMatrixDerivativeIntegral {
20
21 /**
22 * メインメソッド
23 *
24 * @param args コマンドライン引数
25 */
26 @SuppressWarnings("nls")
27 public static void main(String[] args) {
28 Polynomial s = new Polynomial("s");
29 RationalPolynomialMatrix a = new RationalPolynomialMatrix(new RationalPolynomial[] {s.inverse(), new RationalPolynomial(2, s.multiply(2).add(1))});
30 Matrix a1 = a.derivative();
31 Matrix a2 = a.derivative(2);
32 a1.print("a1");
33 a2.print("a2");
34 }
35 }
|