Macaulay2 » Documentation
Packages » SparseResultants :: denseResultant
next | previous | forward | backward | up | index | toc

denseResultant -- dense resultant (classical resultant)

Synopsis

Description

i1 : (f0,f1,f2) = genericLaurentPolynomials(1,2,2)

                           2               2                        2  
o1 = (a x  + a x  + a , b x  + b x x  + b x  + b x  + b x  + b , c x  +
       2 1    1 2    0   5 1    4 1 2    2 2    3 1    1 2    0   5 1  
     ------------------------------------------------------------------------
                 2
     c x x  + c x  + c x  + c x  + c )
      4 1 2    2 2    3 1    1 2    0

o1 : Sequence
i2 : time denseResultant(f0,f1,f2); -- using Poisson formula
 -- used 0.0709612s (cpu); 0.0709657s (thread); 0s (gc)
i3 : time denseResultant(f0,f1,f2,Algorithm=>"Macaulay"); -- using Macaulay formula
 -- used 0.241853s (cpu); 0.216182s (thread); 0s (gc)
i4 : time (denseResultant(1,2,2)) (f0,f1,f2); -- using sparseResultant
 -- used 0.29362s (cpu); 0.262714s (thread); 0s (gc)
i5 : assert(o2 == o3 and o3 == o4)

See also

Ways to use denseResultant:

For the programmer

The object denseResultant is a method function with a single argument.