From c6e64eda95150d9d78d069674b9e20131a1c25d6 Mon Sep 17 00:00:00 2001 From: Jan De Beule Date: Tue, 29 Oct 2024 18:53:08 +0100 Subject: [PATCH] wrote some comments in generate_examples_files_new.g --- examples/generate_example_files_new.g | 9 ++++++--- examples/include/preservedforms2.include | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/generate_example_files_new.g b/examples/generate_example_files_new.g index a898034..7e5449d 100644 --- a/examples/generate_example_files_new.g +++ b/examples/generate_example_files_new.g @@ -16,7 +16,7 @@ quit; #restart gap now. -#initialize filenames +#initialize filenames. for each filename, there exists a .g file in ./pkg/forms/examples/gap/ files := ["conic", "w53", "preservedform", "bg_th_ex1", "bg_th_ex2","bg_th_ex3","bg_th_ex4", "bg_th_ex5", "bg_th_ex6", "bg_th_ex7", "bg_th_ex8", "bg_th_ex9", "bilformbymatrix", @@ -42,7 +42,7 @@ pathsstr := Concatenation("\"",paths,"\""); exampledir := DirectoriesPackageLibrary("forms","examples/gap")[1]; outputdir := DirectoriesPackageLibrary("forms","examples/output")[1]; -filename := "conic"; +#filename := "conic"; #cmd := ["gap4r13.1 -l "./;/opt/gap-4.13.1/" -L forms.ws -c "LogTo(\"test.out\");" < conic.g] #gap4r13.1 -l "./;/opt/gap-4.13.1/" -L forms.ws -c "LogTo(\"test.out\");" < conic.g @@ -56,12 +56,15 @@ cmd := JoinStringsWithSeparator(cmdlist," "); AppendTo(scriptfile,cmd); od; -filename := "conic"; +#Now there is a .sh file ready called generate_output_forms.sh. Make it executable and execute it, then for each filename +#in files an .out file will be generated in ./pkg/forms/examples/gap/output. Each of these .out files contains output almost suitable +#to include in the documentation, or to include in the test directory. #create .include files #for the include files, some characters will be translated to suitable xml #codes, taking more then one character. Therefore we widen the screen a little bit. #includir: directory containing the include files: ".../pkg/forms/examples/include" + SizeScreen([85,24]); includedir := DirectoriesPackageLibrary("forms","examples/include")[1]; for filename in files do diff --git a/examples/include/preservedforms2.include b/examples/include/preservedforms2.include index 9ef678f..86179a7 100644 --- a/examples/include/preservedforms2.include +++ b/examples/include/preservedforms2.include @@ -23,10 +23,10 @@ gap> gens := [ [ [ Z(5)^0, 0*Z(5), 0*Z(5), 0*Z(5) ], gap> group := Group(gens); <matrix group with 3 generators> gap> PreservedForms(group); -[ < quadratic form > ] +[ < quadratic form >, < hermitian form > ] gap> PreservedForms(group); -[ < quadratic form > ] +[ < quadratic form >, < hermitian form > ] gap> PreservedForms(group); -[ < quadratic form > ] +[ < quadratic form >, < hermitian form > ] gap> PreservedForms(group); [ < quadratic form >, < hermitian form > ]