The function reductionNumber takes a pair of ideals $I,J$, homogeneous or inhomogeneous (in the latter case $I$ and $J$ are to be regarded as ideals in the localization of the polynomial ring at the origin.). The ideal $J$ must be a reduction of $I$ (that is, $J\subset{} I$ and $I$ is integrally dependent on $J$. This condition is checked by the function isReduction. It returns the smallest integer $k$ such that $JI^k = I^{k+1}$.
For further information, see the book: Huneke, Craig; Swanson, Irena: Integral closure of ideals, rings, and modules, London Mathematical Society Lecture Note Series, 336. Cambridge University Press, Cambridge, 2006.








It is possible for the routine to not finish in reasonable time, due to the probabilistic nature of the routine. What happens is that the routine minimalReduction occasionally, but rarely, returns an ideal which is not a minimal reduction. In this case, the routine goes into an infinite loop. This will be addressed in a future version of the package. In the meantime, simply interrupt the routine, and restart the computation.
The object reductionNumber is a method function.