static public void main(String args[])
        {
                if ( args[0].compareTo("6j") == 0 )
                {
                        try
                        {
                                String m1 = "6" ;
                                String t1 = "1 2 -3 -1 5 6" ;
                                String t2 = "4 -5 3 -4 -2 -6" ;
                                String j = "" ;
                                for (int i=1; i <= 6 ; i++)
                                        j += args[i]+" " ;
                                BigSurdVec w = wigner3j(m1,t1,t2,j) ;
                                System.out.println(w.toString()) ;
                        }
                        catch( Exception e)
                        {
                                System.out.println(e.getMessage()) ;
                        }
                }
                else if ( args[0].compareTo("9j") == 0 )
                {
                        try
                        {
                                String m1 = "9" ;
                                String t1 = "1 3 2 4 6 5 7 9 8" ;
                                String t2 = "2 8 5 6 3 9 7 4 1" ;
                                String j = "" ;
                                for (int i=1; i <= 9 ; i++)
                                        j += args[i]+" " ;
                                BigSurdVec w = wigner3j(m1,t1,t2,j) ;
                                System.out.println(w.toString()) ;
                        }
                        catch( Exception e)
                        {
                                System.out.println(e.getMessage()) ;
                        }
                }
                else if ( args[0].compareTo("3jm") == 0 )
                {
                        int j1 = (new Integer(args[1])).intValue() ;
                        int j2 = (new Integer(args[2])).intValue() ;
                        int j3 = (new Integer(args[3])).intValue() ;
                        int m1 = (new Integer(args[4])).intValue() ;
                        int m2 = (new Integer(args[5])).intValue() ;
                        int m3 = (new Integer(args[6])).intValue() ;
                        try
                        {
                                BigSurd w = wigner3jm(j1,j2,j3,m1,m2,m3) ;
                                System.out.println(w.toString()) ;
                                w =w.multiply(new BigSurd(j3+1,1)) ;
                                System.out.println("CG factor sqrt"+ (j3+1) + "sign " + ((j2-j2-m3)/2) + " " + w.toString() ) ;
                        }
                        catch( Exception e)
                        {
                                System.out.println(e.getMessage()) ;
                        }
                }
                else
                {
                        System.out.println("usage:") ;
                        System.out.println(args[0]+ " 6j 2j1+1 2j2+1 2j3+1 2j4+1 2j5+1 2j6+1") ;
                        System.out.println(args[0]+ " 9j 2j1+1 2j2+1 2j3+1 2j4+1 2j5+1 2j6+1.. 2j9+1 ") ;
                        System.out.println(args[0]+ " 3jm 2j1+1 2j2+1 2j3+1 2m1+1 2m2+1 2m3+1 ") ;
                }
        } /* Wigner3j.main */