Macaulay2 » Documentation
Packages » MultiprojectiveVarieties :: degree(RationalMap,Option)
next | previous | forward | backward | up | index | toc

degree(RationalMap,Option) -- degree of a multi-rational map using a probabilistic approach

Description

i1 : R = ZZ/33331[x_0..x_4];
i2 : Phi = (last graph rationalMap legacyRationalMap transpose jacobian(-x_2^3+2*x_1*x_2*x_3-x_0*x_3^2-x_1^2*x_4+x_0*x_2*x_4))||projectiveVariety ideal(random(2,R));

o2 : RationalMap (rational map from threefold in PP^4 x PP^4 to hypersurface in PP^4)
i3 : ? Phi

o3 = rational map between projective varieties
     represented by a tuple of homogeneous polynomials of degree (0,1)
     source variety: threefold in PP^4 x PP^4 cut out by 13 hypersurfaces of multi-degrees (0,2)^1 (1,1)^3 (2,1)^8 (4,0)^1 
     target variety: quadric hypersurface in PP^4
i4 : time degree(Phi,Strategy=>"random point")
 -- used 3.06163s (cpu); 2.289s (thread); 0.816s (gc)

o4 = 2
i5 : time degree(Phi,Strategy=>"0-th projective degree")
 -- used 0.371939s (cpu); 0.284062s (thread); 0.126s (gc)

o5 = 2
i6 : time degree Phi
 -- used 0.289581s (cpu); 0.246372s (thread); 0.07s (gc)

o6 = 2

Note, as in the example above, that calculation times may vary depending on the strategy used.

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/MultiprojectiveVarieties.m2:3776:0.