Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/anupq/src/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 28.7.2025 mit Größe 1 kB image not shown  

Quelle  print_word.c   Sprache: C

 
/****************************************************************************
**
*A  print_word.c                ANUPQ source                   Eamonn O'Brien
**
*Y  Copyright 1995-2001,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
*Y  Copyright 1995-2001,  School of Mathematical Sciences, ANU,     Australia
**
*/


#include "pq_defs.h"
#include "pcp_vars.h"

/* print out a word of a pcp presentation */

void print_word(int ptr, struct pcp_vars *pcp)
{
   register int *y = y_address;

   register int gen, exp;
   register int i;
   register int count;
#include "access.h"

   if (ptr == 0)
      printf(" IDENTITY\n");
   else if (ptr > 0)
      printf(" .%d\n", ptr);
   else {
      ptr = -ptr + 1;
      count = y[ptr];
      for (i = 1; i <= count; i++) {
         exp = FIELD1(y[ptr + i]);
         gen = FIELD2(y[ptr + i]);
         printf(" .%d", gen);
         if (exp != 1)
            printf("^%d", exp);
      }
      printf("\n");
   }
}

/* print out exponent-vector with base address cp, first
   converting it to string stored at str for printing */


void setup_word_to_print(char *type, int cp, int str, struct pcp_vars *pcp)
{
   register int *y = y_address;

#if defined(GROUP)
   vector_to_string(cp, str, pcp);

   /* may need to set up pointer to this string at a later stage */
   ++str;

   printf("The %s is ", type);
   if (y[str] == 0)
      print_word(0, pcp);
   else
      print_word(-str + 1, pcp);

#endif
}

Messung V0.5
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.