Given an ideal I, this function computes the j-multiplicity of I following the method of Nishida-Ulrich.
i1 : R = QQ[x,y,z] o1 = R o1 : PolynomialRing |
i2 : I = ideal"xy,yz,zx" o2 = ideal (x*y, y*z, x*z) o2 : Ideal of R |
i3 : elapsedTime jMult I -- 0.0376099 seconds elapsed o3 = 2 |
i4 : elapsedTime monjMult I -- 0.1749 seconds elapsed o4 = 2 |
i5 : elapsedTime multiplicitySequence I -- 0.246105 seconds elapsed o5 = HashTable{2 => 3} 3 => 2 o5 : HashTable |
The object jMult is a method function.