#17958: implement declare_var, deprecate (None)var
-----------------------------+------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+------------------------
Comment (by jhpalmieri):
Re `SR.var('x')`: "What does SR mean?" "The Symbolic Ring." "What's a
ring?"
Remember that we have users who just want to do calculus. They don't know
what a ring is. They also are not that familiar with Python, and we
shouldn't use this particular situation to educate them on Python syntax.
So I think we need a top-level function. The proposed `declare_var('x')`,
which returns `None` but injects the variable into the global namespace,
seems like the more natural behavior for novices. (We can have two
functions, as Nils says, one like this and a second one which does not
inject anything but returns the symbol. I would suggest advertising the
first of these in the tutorial and other parts of the documentation. )
The name `declare_var` could maybe be improved because of the different
uses of the word "variable". Something like `declare_math_var`?
`declare_math_symbol`? `new_math_symbol`?
--
Ticket URL: <http://trac.sagemath.org/ticket/17958#comment:22>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.