Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/ferret/nongap-tst/symmetry_detect/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 11.8.2025 mit Größe 1 kB image not shown  

Quelle  symmetry_detect_test.sh   Sprache: Shell

 
#!/usr/bin/env bash

#validate arguments
usage='usage: [-eprime eprime_file]|[-json json_graph] permutation_group_json_file'
if [ $# -ne 3 ] ; then
 echo $usage
 exit 1
fi

tempfile=".symmetry_tester_temp_file"
#run savilerow if eprime symmetry detect if json, exit if invalid args
if [ "$1" = "-json" ] ; then
 json=${2}
  $(dirname $0)/jsonToGap.py <(symmetry_detect --json "$json")  "$3" | gap -q | grep 'true' > /dev/null
 status=$?
elif [ "$1" = "-eprime" ]  ; then
 savilerow "$2" -var-sym-breaking > /dev/null
 if [ $? -ne 0 ] ; then
  echo "error in running savilerow on input file $2"
  exit 2
 fi
 json=${2}.json
 $(dirname $0)/jsonToGap.py <(symmetry_detect --json "$json""$3" | gap -q | grep 'true' > /dev/null
 status=$?
 else
  echo $usage
  exit 1
fi

if [ $status -eq 0 ] ; then
 echo "passed for input file $2 compared against permutation group $3."
 if [ "$1" = "-eprime" ] ; then
  rm -f ${2}.aux ${2}.json ${2}.minion
 fi
else
 echo "failed test with input file $2 Compared against permutation group $3."
 echo "symmetry groups being compared:"
 symmetry_detect "$json" -q
 echo "--------"
 cat "$3"
  echo "--------"
fi

exit $status

Messung V0.5
C=94 H=95 G=94

¤ Dauer der Verarbeitung: 0.13 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.