Code Search for Developers
 
 
  

debug-AbelianInfinitenessProblem.C from Magnus at Krugle


Show debug-AbelianInfinitenessProblem.C syntax highlighted

#include "global.h"
#include "Map.h"
#include "AbelianInfinitenessProblem.h"


int main ( )
{
  cout << "\n\nEnter a group presentation, e.g.,\n";
  cout << "  <x,y;x^2=y^3>\n" << endl;

  FPGroup G;
  Chars errMsg = cin >> G;

  if ( errMsg.length() > 0 ) {
    cout << errMsg << endl << endl;
    return 1;
  }

  cout << "\n\nYou entered:\n";
  cout << G << endl << endl;

  cout << "Checking of infiniteness..." << endl << endl;
  AbelianInfinitenessProblem AIP(G);
  AIP.startComputation();
  while ( !AIP.continueComputation() ) ;

  cout << "The group is ";
  if( AIP.isInfinite() )
    cout << "in";
  cout << "finite." << endl;
}





See more files for this project here

Magnus

Magnus is a special purpose mathematical package for Infinite Group Theory computations

Project homepage: http://sourceforge.net/projects/magnus
Programming language(s): C,C++
License: other

  debug-AbelianGroup.C
  debug-AbelianInfinitenessProblem.C
  debug-EquationParser.C
  debug-MSCGConjugacyProblem.C
  debug-MSCGroup.C
  debug-MSCGroup.data
  debug-MSCGroup.testout
  debug-RandomAutomorphism.C
  debug-RandomMSCGroup.C
  debug-RandomPrimitiveElement.C
  debug-TietzeTrekker.C
  test-SymmetricRelators.C