#4282: [with patch, needs work] symbolic minpoly
-------------------------+--------------------------------------------------
Reporter: robertwb | Owner: burcin
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.2
Component: calculus | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by mhampton):
* summary: [with patch, needs review] symbolic minpoly => [with patch,
needs work] symbolic minpoly
Comment:
There's a problem that comes up testing this, which may be something the
improved doctests are exposing rather than causing:
{{{
sage: sin(pi/7).minpoly()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/Users/mh/sagestuff/sage-3.1.4/<ipython console> in <module>()
/Users/mh/sagestuff/sage-3.1.4/local/lib/python2.5/site-
packages/sage/calculus/calculus.pyc in minpoly(self, *args, **kwds)
1343 from sage.rings.all import QQbar
1344 try:
-> 1345 return QQbar(self).minpoly()
1346 except TypeError, ValueError:
1347 return self.minpoly_numeric(*args, **kwds)
/Users/mh/sagestuff/sage-3.1.4/local/lib/python2.5/site-
packages/sage/rings/qqbar.pyc in __call__(self, x)
661 return AlgebraicNumber(x._descr)
662 elif hasattr(x, '_algebraic_'):
--> 663 return x._algebraic_(QQbar)
664 return AlgebraicNumber(x)
665
/Users/mh/sagestuff/sage-3.1.4/local/lib/python2.5/site-
packages/sage/calculus/calculus.pyc in _algebraic_(self, field)
6432 res = mag *
QQbar.zeta(rat_arg.denom())**rat_arg.numer()
6433 elif func_name in ['sin', 'cos', 'tan']:
-> 6434 exp_ia =
exp(SR(-1).sqrt()*operand)._algebraic_(QQbar)
6435 if func_name == 'sin':
6436 res = (exp_ia - ~exp_ia)/(2*QQbar.zeta(4))
AttributeError: 'SymbolicConstant' object has no attribute 'sqrt'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4282#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---