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

 


KASHLEVEL

Reads or sets different defaults for KASH.

Syntax:

x := KASHLEVEL(s);
x := KASHLEVEL(s,level);

integer
  x  
string
  s  
integer
  level  

Description:

The Order command creates a new order and checks if the polynomial which creates the order is irreducible. Furthermore it calculates the real basis of the new order. It is possible to change these defaults. The real basis is only calculated if KASH_REAL_BASIS_CALC is not equal 0. If KASH_ORDER_POLY_FACTOR is 0 the test of irreducibility is omitted. In the case KASH_ORDER_POLY_FACTOR equals 1 kash tests the polynomial only in the case that the polynomial is given over Zx.


Example:


kash> KASHLEVEL("KASH_ORDER_POLY_FACTOR",2);
2
kash> O:=Order(x^2-1);
Error, polynomial is not irreducible
kash> KASHLEVEL("KASH_ORDER_POLY_FACTOR",0);
0
kash> O:=Order(x^2-1);
> Generating polynomial: x^2 - 1



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