#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 bruno):
* Many examples given so far use `sage: var('x')` while `x` is the one
variable that is injected automatically into the namespace. I feel like
this particularity of `x` does not help an easy understanding of how it
works for newcomers.
* Many users may be satisfied if any non-yet-defined symbol was
automatically injected into the namespace. I guess it would also help
users to understand the difference between a "symbol" (from `SR`), on
which nothing is known, and a "polynomial variable" (for instance from
`ZZ['x']`). In some sense, this would imply that one can play around with
symbolic variables, perform some simple calculations, etc. but that one
should properly define their objects to obtain more functionalities and
better performances.
* Note that the previous point can be activated, in the Notebook only,
using `automatic_names(True)`. We may have a magic function to activate
this behavior, as well as `implicit_multiplication(True)`.
* Amongst the different propositions for a new name if one is needed, I
like the use of the keyword `math` that helps to makes the difference
between a math symbol/variable/whatever and a python variable.
* I also like the proposition to define `%var x,y` (or even `%var x y`). I
think it would be nice to have something printed as for
`inject_variables()` in this case, such as `Defining x, y as symbolic
variables.`
* For the deprecation, it is certainly less annoying for users if the
change occurs with a new version number such as 7.0 or 8.0.
--
Ticket URL: <http://trac.sagemath.org/ticket/17958#comment:59>
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.