here is another "report a problem" message from the notebook
interface. It's not a bug (i think) but it gives insight in how Sage
is used and over what users stumble when using it for simple things.

------------------
This doesn't work:

var('k')
u = 1 + k
k = 1
u.n()
------------------
It is maybe not a bug, but I would expect it to give the same as

var('k')
k = 1
(1+k).n()

I think that .n() should try to evaluate the expression before to
throw an exception.
------------------

Comment:
I think n() could be made more intelligent in a way that it searches
the globals()? Or not .n(), but a new method ".evaluate()" or
something that does this? Any ideas? Just u.subs(globals()) didn't
work for me.

H

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to