Description
Consider this example, which fails:
R.<x,y> = RR[]
p = x + y
q = x*y
p.resultant(q)
(as reported here: http://groups.google.com/group/sage-support/browse_thread/thread/1d6289cead33d063#)
This is because multivariate resultants are implemented using the Singular pexpect interface, which does not support RR.
A workaround for this particular problem (and a possible basis for an improved version) is:
p.polynomial(x).resultant(q.polynomial(x))
That is, fall back to univariate resultants, which are implemented using Pari and are somewhat more generic. (This is still not truly generic, though, since there are Sage rings which have no Pari equivalent.)
CC: @tscrim @videlec @vinklein
Component: algebraic geometry
Keywords: resultant
Author: Frédéric Chapoton
Branch/Commit: 30bd620
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/2693