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

 


EltValuation

Compute the valuation of an algebraic element or an integer.

Syntax:

val := EltValuation(P, alpha);

  val}{integer}{returned value.  
  P}{ideal}{a prime ideal.  
  alpha}{algebraic element or integer}{number to evaluate.  

See also:  IdealValuation, IntValuation

Description:

This function returns the valuation of an algebraic element or an integer at a prime ideal.


Example:


kash> o := OrderMaximal(Order(Z,2,3));
Generating polynomial: x^2 - 3
Discriminant: 12 

kash> L:=Factor(2*o);
[ [ <2, [1, 1]>, 2 ] ]
kash> P := L[1][1];
<2, [1, 1]>
kash> EltValuation(P, Elt(o,2));
2
kash> EltValuation(P, Elt(o,[1,1]));
1
kash> o := OrderMaximal (Order (Poly (Zx,[1,6,6,6])));
Generating polynomial: x^3 + 6*x^2 + 6*x + 6
Discriminant: -1836 

kash> P := Factor(2*o)[1][1];
<2, [0, 1, 0]>
kash> EltValuation (P, 3);
0
kash> EltValuation (P, 2);
3
kash> EltValuation (P, 2^7);
21
kash> EltValuation (P, 2^40);
> 120


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