On Jan 7, 1:08 am, Martin Rubey <martin.ru...@univie.ac.at> wrote:
> What did I do wrong? I have no idea how to proceed!
Hi Martin,
> Martin
>
> sage: f=Integers(5)[y][x](x*(y^2-x)^2+y^5); g=Integers(5)[y][x](y^4+y^3-x^2);
> sage: f
> x^3 + 3*y^2*x^2 + y^4*x + y^5
> sage: f.res
> f.reset_name f.resultant
> sage: f.resultant(g)
>
> *** Mod(1, 5)*x already exists with incompatible valence.
> /home/martin/Documents/sage-3.1.4/local/bin/sage-sage: line 198: 9834 Aborted
> sage-ipython "$
> @" -i
>
>
> Process *ansi-term*<2> exited abnormally with code 134
Is this what you want?
----------------------------------------------------------------------
| Sage Version 3.2.3, Release Date: 2009-01-05 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: P.<x,y>=IntegerModRing(5)[]
sage: f=x*(y^2-x)^2+y^5;
sage: g=y^4+y^3-x^2
sage: f
x*y^4 + y^5 + 3*x^2*y^2 + x^3
sage: g
y^4 + y^3 - x^2
sage: f.res
f.reset_name f.resultant
sage: f.resultant(g)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/mabshoff/<ipython console> in <module>()
/usr/local/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/polynomial_singular_interface.pyc in resultant(self, other,
variable)
304 return lcm_func(self, singular, have_ring)
305 def resultant(self, other, variable=None):
--> 306 return resultant_func(self, other, variable)
307
308 def _singular_func(self, singular=singular_default,
have_ring=False, force=False):
/usr/local/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/polynomial_singular_interface.pyc in resultant_func(self,
other, variable)
454 if variable is None:
455 variable = self.parent().gen(0)
--> 456 rt = self._singular_().resultant(other._singular_(),
variable._singular_())
457 r = rt.sage_poly(self.parent())
458 if self.parent().ngens() <= 1 and r.degree() <= 0:
/usr/local/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/polynomial_singular_interface.pyc in _singular_(self,
singular, have_ring, force)
298 """
299 def _singular_(self, singular=singular_default,
have_ring=False, force=False):
--> 300 return _singular_func(self, singular, have_ring,
force)
301 def _singular_init_func(self, singular=singular_default,
have_ring=False, force=False):
302 return _singular_init_func(self, singular, have_ring,
force)
/usr/local/sage/local/lib/python2.5/site-packages/sage/rings/
polynomial/polynomial_singular_interface.pyc in _singular_func(self,
singular, have_ring, force)
350 """
351 if not have_ring:
--> 352 self.parent()._singular_(singular,force=force).set_ring
() #this is expensive
353
354 try:
/usr/local/sage/local/lib/python2.5/site-packages/sage/structure/
sage_object.so in sage.structure.sage_object.SageObject._singular_
(sage/structure/sage_object.c:4153)()
TypeError: _singular_() got an unexpected keyword argument 'force'
sage:
It seems broken also in the current release :(
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---