Skip to content

Commit

Permalink
Add documentation for getMExponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Alstad authored and Colin Alstad committed Feb 9, 2024
1 parent fc847bf commit 693157b
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion Valuations/Valuations.m2
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ doc ///
padicValuation
///


doc ///
Key
padicValuation
Expand Down Expand Up @@ -637,6 +636,35 @@ doc ///
"trivialValuation"
///

doc ///
Key
getMExponent
(getMExponent, Ideal, RingElement)
Headline
Finds the smallest power of an ideal that a given ring element belongs to.
Usage
n = getMExponent(I, r)
Inputs
I:Ideal
An ideal of R
r:RingElement
An element of R
Outputs
n:ZZ
Smallest n such that r is in I^n
Description
Text
Returns the smallest power of the ideal $I$ that contains $r$
Example
R = QQ[x,y];
I = ideal(x,y);
getMExponent(I, 1 + x + y)
getMExponent(I, x^4 + x^2*y^2 + x^7 + y^3)
getMExponent(I, x^2 + x*y + y^2)
SeeAlso
localRingValuation
///

doc ///
Key
Valuations
Expand Down

0 comments on commit 693157b

Please sign in to comment.