Hi all:
I think i found a bug with simplify_full().
Alex
----------------------------------------------------------------------
| Sage Version 4.6, Release Date: 2010-10-30 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: (gamma(1/3)).simplify()
gamma(1/3)
sage: (gamma(1/3)).simplify_full()
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/Users/raichev/<ipython console> in <module>()
/Applications/sage/local/lib/python2.6/site-packages/sage/symbolic/
expression.so in sage.symbolic.expression.Expression.simplify_full
(sage/symbolic/expression.cpp:23539)()
/Applications/sage/local/lib/python2.6/site-packages/sage/symbolic/
expression.so in
sage.symbolic.expression.Expression.simplify_factorial (sage/symbolic/
expression.cpp:24222)()
/Applications/sage/local/lib/python2.6/site-packages/sage/structure/
parent.so in sage.structure.parent.Parent.__call__ (sage/structure/
parent.c:6462)()
/Applications/sage/local/lib/python2.6/site-packages/sage/structure/
coerce_maps.so in sage.structure.coerce_maps.NamedConvertMap._call_
(sage/structure/coerce_maps.c:4044)()
/Applications/sage/local/lib/python2.6/site-packages/sage/interfaces/
maxima.pyc in _symbolic_(self, R)
1810 sqrt(2)
1811 """
-> 1812 return R(self._sage_())
1813
1814 def __complex__(self):
/Applications/sage/local/lib/python2.6/site-packages/sage/interfaces/
maxima.pyc in _sage_(self)
1791 import sage.calculus.calculus as calculus
1792 return
calculus.symbolic_expression_from_maxima_string(self.name(),
-> 1793 maxima=self.parent())
1794
1795 def _symbolic_(self, R):
/Applications/sage/local/lib/python2.6/site-packages/sage/calculus/
calculus.pyc in symbolic_expression_from_maxima_string(x, equals_sub,
maxima)
1631 # evaluation of maxima code are assumed pre-simplified
1632 is_simplified = True
-> 1633 return symbolic_expression_from_string(s, syms,
accept_sequence=True)
1634 except SyntaxError:
1635 raise TypeError, "unable to make sense of Maxima
expression '%s' in Sage"%s
/Applications/sage/local/lib/python2.6/site-packages/sage/calculus/
calculus.pyc in symbolic_expression_from_string(s, syms,
accept_sequence)
1799 global _augmented_syms
1800 _augmented_syms = syms
-> 1801 return parse_func(s)
1802 finally:
1803 _augmented_syms = {}
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.parse_sequence (sage/misc/
parser.c:3744)()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.parse_sequence (sage/misc/
parser.c:3638)()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_sequence (sage/misc/parser.c:
4261)()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_tuple (sage/misc/parser.c:4908)
()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_eqn (sage/misc/parser.c:5017)()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_expr (sage/misc/parser.c:5333)
()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_term (sage/misc/parser.c:5554)
()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_factor (sage/misc/parser.c:5916)
()
/Applications/sage/local/lib/python2.6/site-packages/sage/misc/
parser.so in sage.misc.parser.Parser.p_power (sage/misc/parser.c:6125)
()
/Applications/sage/local/lib/python2.6/site-packages/sage/symbolic/
function.so in sage.symbolic.function.GinacFunction.__call__ (sage/
symbolic/function.cpp:6553)()
/Applications/sage/local/lib/python2.6/site-packages/sage/symbolic/
expression.so in sage.symbolic.expression.Expression.factorial (sage/
symbolic/expression.cpp:22293)()
/Applications/sage/local/lib/python2.6/site-packages/sage/symbolic/
pynac.so in sage.symbolic.pynac.py_factorial (sage/symbolic/pynac.cpp:
9294)()
/Applications/sage/local/lib/python2.6/site-packages/sage/rings/
arith.pyc in factorial(n, algorithm)
404 """
405 if n < 0:
--> 406 raise ValueError, "factorial -- must be nonnegative"
407 if algorithm == 'gmp':
408 return ZZ(n).factorial()
ValueError: factorial -- must be nonnegative
--
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-support
URL: http://www.sagemath.org