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

 


Valuation

missing shortdoc

Syntax:

d := Valuation( [P,] a);
SHOTDOC Computes the valuation of the argument at a prime (if possible).

integer
  d  
ideal | integer | alff order ideal
  P  
must be prime.
ideal | algebraic element | integer
  a  
to valuate.
alff order ideal
  a  
to valuate.

Description:

Returns the valuation of a p-adic number, an integer, an algebraic element, an (fractional) ideal at a prime ideal, a rational prime or an alff order ideal at a prime ideal. If the first argument is an integer then the second argument must also be an integer. For alff order ideals they have to be defined in the same order which must be maximal. This function calls EltValuation, IdealValuation, IntValuation, or AlffIdealValuation.


Example:

Computation of the valuation of an algebraic number.

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> Valuation(P, Elt(O, 2));
2
kash> Valuation(P, Elt(O, [1, 1]));
> 1


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