1 package JSci.maths.groups; 2 3 import JSci.maths.Complex; 4 import JSci.maths.matrices.AbstractComplexSquareMatrix; 5 import JSci.maths.matrices.ComplexDiagonalMatrix; 6 7 17 public final class U1 extends LieGroup { 18 private static final AbstractComplexSquareMatrix U1gens[]={ComplexDiagonalMatrix.identity(1)}; 19 20 private static final U1 _instance = new U1(); 21 24 private U1() { 25 super(U1gens); 26 } 27 31 public static final U1 getInstance() { 32 return _instance; 33 } 34 37 public String toString() { 38 return "U(1)"; 39 } 40 44 public Complex getElement(double param) { 45 return Complex.polar(1.0,param); 46 } 47 51 public boolean isIdentity(Complex a) { 52 return Complex.ONE.equals(a); 53 } 54 59 public boolean isInverse(Complex a,Complex b) { 60 return Complex.ONE.equals(a.multiply(b)); 61 } 62 } 63 64 | Popular Tags |