Jama.examples
Class MagicSquareExample
- java.lang.Object
-
- Jama.examples.MagicSquareExample
-
public class MagicSquareExample extends java.lang.ObjectExample of use of Matrix Class, featuring magic squares.
-
-
Constructor Summary
Constructors Constructor and Description MagicSquareExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringfixedWidthDoubletoString(double x, int w, int d)Format double with Fw.d.static java.lang.StringfixedWidthIntegertoString(int n, int w)Format integer with Iw.static Matrixmagic(int n)Generate magic square test matrix.static voidmain(java.lang.String[] argv)
-
-
-
Method Detail
-
magic
public static Matrix magic(int n)
Generate magic square test matrix.
-
fixedWidthDoubletoString
public static java.lang.String fixedWidthDoubletoString(double x, int w, int d)Format double with Fw.d.
-
fixedWidthIntegertoString
public static java.lang.String fixedWidthIntegertoString(int n, int w)Format integer with Iw.
-
main
public static void main(java.lang.String[] argv)
-
-
DMelt 3.0 © DataMelt by jWork.ORG