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.339048s (cpu); 0.250541s (thread); 0s (gc)
i3 : time denseResultant(f0,f1,f2,Algorithm=>"Macaulay"); -- using Macaulay formula
 -- used 0.635778s (cpu); 0.561982s (thread); 0s (gc)
i4 : time (denseResultant(1,2,2)) (f0,f1,f2); -- using sparseResultant
 -- used 0.518645s (cpu); 0.521133s (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.