package com.imsl.test.example.math; import com.imsl.math.*; /** *
* Initializes and prints a complex matrix.
* * AComplex
matrix is initialized and printed.
*
* @see Code
* @see Output
*/
public class ComplexMatrixEx1 {
public static void main(String args[]) {
Complex a[][] = {
{new Complex(1, 3), new Complex(3, 5), new Complex(7, 9)},
{new Complex(8, 7), new Complex(9, 5), new Complex(1, 9)},
{new Complex(2, 9), new Complex(6, 9), new Complex(7, 3)},
{new Complex(5, 4), new Complex(8, 4), new Complex(5, 9)}
};
// Construct a PrintMatrix object with a title
PrintMatrix p = new PrintMatrix("A Complex Matrix");
// Print the matrix
p.print(a);
}
}