[back] [prev] [next] [index] [root]

 


OrderPrintFlags

Set or get Flags to reduce or extend the output level of print_order.

Syntax:

OrderPrintFlags(a);
a := OrderPrintFlags();

record
  a  

Description:

OrderPrint can be used to set or get Flags, which are saved in a record. The record entrys can be the following \begin{tabular}{l|c|l} name & type & description disc & int & information about discriminant reg & int & information about regulator fac_disc & int & information about factorizing unit & int & information about units index & int & information about index class_group& bool & information about class group class & bool & information about class number trafo & bool & information about transform. Matrix trafo_inv & bool & information about inverse Trafomatrix trafo_den & bool & information about Matrix denominator galois & bool & information about galois groups sign & bool & information about sign autom & bool & information about automorphisms \end{tabular} where number = -1: maximal output number = 0: no output number = \langle any number rangle: prints if length of output string is less or equal then num- \hspace*{3.92cm} ber, otherwise prints "Known" and bool = true: prints if known bool = false: prints nothing To get the settings call OrderPrintFlags();


Example:

Set output level of unit and signature to 0 (prints nothing) even if unit or signature are known.

kash> OrderPrintFlags(rec(unit:=0,sign:=false));

kash> a:=OrderPrintFlags();
rec(
  disc := -1,
  reg := -1,
  fac_disc := 0,
  unit := 0,
  index := 0,
  class_group := true,
  class := false,
  trafo_inv := false,
  trafo_den := false,
  trafo := false,
  galois := false,
  sign := false,
  autom := false,
  coef_ideals := true )
kash> a.unit:=0;
0
kash> a.sign:=false;
false
kash> OrderPrintFlags(a);

kash> q:=Order(Z, 2, 2^15);; OrderUnitsFund(q);;
kash> o:= OrderMaximal(Z, 4, 2);; O := Order(o, 5, 3);;
kash> OrderSig(O);;
kash> q;
Generating polynomial: x^2 - 32768
Discriminant: 131072 
Regulator: 112.815819138501507229773993597413415555604522017489 

kash> O;
      F[1]
        /
       /
   E1[1]
  /
 /
Q
F  [ 1]     x^5 - 3
E 1[ 1]     x^4 - 2

kash> OrderPrintFlags(rec(unit:=-1,sign:=true));
kash> q;
Generating polynomial: x^2 - 32768
Discriminant: 131072 
Regulator: 112.815819138501507229773993597413415555604522017489 
Fundamental unit:
[4946041176255201878775086487573351061418968498177, -2732327543560891540641290\
5094301272808109095411]
Signature: [2, 0]

kash> O;
      F[1]
        /
       /
   E1[1]
  /
 /
Q
F  [ 1]     x^5 - 3
E 1[ 1]     x^4 - 2
Signature: [ [1, 2]  [1, 2]  [5, 0] ] 

kash> OrderPrintFlags(rec(unit:=3));
kash> q;
> Generating polynomial: x^2 - 32768
Discriminant: 131072 
Regulator: 112.815819138501507229773993597413415555604522017489 
Fundamental unit: Known 
Signature: [2, 0]



<- back[back] [prev] [next] [index] [root]