Macaulay2 » Documentation
Packages » Valuations :: padicValuation
next | previous | forward | backward | up | index | toc

padicValuation -- The p-adic valuation

Synopsis

Description

This function constructs a valuation which returns the number of times that $p$ divides the numerator minus the number of times that $p$ divides the denominator.

i1 : v = padicValuation 7;
i2 : v 98

o2 = 2
i3 : v (2/7)

o3 = -1
i4 : v 0

o4 = infinity

o4 : InfiniteNumber
i5 : v (-42)

o5 = 1

See also

Ways to use padicValuation:

For the programmer

The object padicValuation is a method function.