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

 


Ideal2EltKnown

Returns true if the ideal is given in two element representation.

Syntax:

b := Ideal2EltKnown(I);

Boolean
  b  
ideal
  I  

See also:  IdealGenerators

Description:

The representation is not computed, this is only a check. This function is useful when programming in kash if an algorithm can handle both basis and 2-element-representation but prefers the 2-element-representation. The computation of the 2-element-representation can be cumbersome in large orders because it involves a trial-and-error algorithm. So it can be handy just to check if the 2-element-representation is already present.


Example:


kash> O := OrderMaximal(Order(Poly(Zx, [1, 6, 6, 6])));;
kash> Lp := Factor(6*O);
[ [ <2, [0, 1, 0]>, 3 ], [ <3, [0, 1, 0]>, 3 ] ]
kash> I := Lp[1][1]*Lp[2][1];
<
[6 0 0]
[0 1 0]
[0 0 1]
>

kash> Ideal2EltKnown(I);
false
kash> IdealGenerators(I);
[ 6, [0, 1, 35] ]
kash> Ideal2EltKnown(I);
> true


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