Macaulay2 » Documentation
Packages » RandomIdeals :: AlexanderProbability
next | previous | forward | backward | up | index | toc

AlexanderProbability -- option to randomSquareFreeStep

Description

Controls how often the Alexander dual is taken

i1 : setRandomSeed 1
 -- setting random seed to 1

o1 = 1
i2 : S = ZZ/2[vars(0..3)]

o2 = S

o2 : PolynomialRing
i3 : J = monomialIdeal"ab,ad,bcd"

o3 = monomialIdeal (a*b, a*d, b*c*d)

o3 : MonomialIdeal of S
i4 : first randomSquareFreeStep(J, AlexanderProbability => 1.0)

o4 = monomialIdeal (a*b, a*c, a*d, b*d)

o4 : MonomialIdeal of S

See also

Functions with optional argument named AlexanderProbability:

  • randomSquareFreeStep(...,AlexanderProbability=>...) -- see randomSquareFreeStep -- A step in a random walk with uniform distribution over all monomial ideals

For the programmer

The object AlexanderProbability is a symbol.


The source of this document is in RandomIdeals.m2:971:0.