* your platform and operating system * which version of Sage you use (command: "version()" in Sage) * how you have acquired Sage (binary build, compiled from source, ...) * and if applicable, include reproducible commands which cause the error, along with possible error messages.
The tutorial has a bug at the following link: http://www.sagemath.org/doc/tutorial/tour_algebra.html#solving-equations-numerically sage: theta = var('theta') sage: solve(cos(theta)==sin(theta)) [sin(theta) == cos(theta)] This example does not produce the output indicated. {{{ sage: theta = var('theta') sage: type(theta) <type 'sage.symbolic.expression.Expression'> sage: solve(cos(theta)==sin(theta)) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/<ipython console> in <module>() /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/symbolic/relation.pyc in solve(f, *args, **kwds) 478 """ 479 try: --> 480 return f.solve(*args,**kwds) 481 except AttributeError: 482 from sage.symbolic.ring import is_SymbolicVariable /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/symbolic/expression.so in sage.symbolic.expression.Expression.solve (sage/symbolic/ expression.cpp:21623)() TypeError: solve() takes at least 1 positional argument (0 given) }}} solve(cos(theta)==sin(theta), theta), really pissed sage off! {{{ sage: solve(cos(theta)==sin(theta), theta) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/<ipython console> in <module>() /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/symbolic/relation.pyc in solve(f, *args, **kwds) 478 """ 479 try: --> 480 return f.solve(*args,**kwds) 481 except AttributeError: 482 from sage.symbolic.ring import is_SymbolicVariable /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/symbolic/expression.so in sage.symbolic.expression.Expression.solve (sage/symbolic/ expression.cpp:22150)() /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/interfaces/expect.pyc in __call__(self, *args, **kwds) 1380 1381 def __call__(self, *args, **kwds): -> 1382 return self._obj.parent().function_call(self._name, [self._obj] + list(args), kwds) 1383 1384 def help(self): /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/interfaces/expect.pyc in function_call (self, function, args, kwds) 1288 [s.name() for s in args], 1289 ['%s=%s'%(key,value.name ()) for key, value in kwds.items()]) -> 1290 return self.new(s) 1291 1292 def _function_call_string(self, function, args, kwds): /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/interfaces/expect.pyc in new(self, code) 1084 1085 def new(self, code): -> 1086 return self(code) 1087 1088 ################################################################### /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/interfaces/expect.pyc in __call__(self, x, name) 1019 1020 if isinstance(x, basestring): -> 1021 return cls(self, x, name=name) 1022 try: 1023 return self._coerce_from_special_method(x) /home/steve/sage-4.1-linux-AtomN270-Ubuntu-i686-Linux/local/lib/ python2.6/site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name, name) 1423 except (TypeError, KeyboardInterrupt, RuntimeError, ValueError), x: 1424 self._session_number = -1 -> 1425 raise TypeError, x 1426 self._session_number = parent._session_number 1427 TypeError: Error executing code in Maxima CODE: sage4 : to_poly_solve(sage0,sage3)$ Maxima ERROR: Nonalgebraic argument given to 'topoly' #0: to_poly_solve(e=cos(theta) = sin(theta),vars=theta) (topoly_solver.mac line 10) sage: }}} Asus eeepc 1000 running Ubuntu 9.04 sage-4.1-linux-AtomN270-Ubuntu-i686-Linux.tar.gz from Harvard md5sum checked. peace --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---