#11576: make it possible to generate sequences of variables easily
-------------------------------+--------------------------------------------
Reporter: kcrisman | Owner: burcin
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.6
Component: symbolics | Resolution:
Keywords: Cernay2012 | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by kcrisman):
> I just rebased the patch I was working on at the Sage days in Cernay.
With Sage 5.6.beta2:
{{{
patching file sage/libs/ginac.pxd
Hunk #2 FAILED at 101
}}}
The two lines with `dbgprint` are gone in beta2.
> Apart from lack of documentation and tests, this patch provides the
functionality discussed in this ticket. The main problem holding it up was
the fact that it allows you to use arbitrary Python objects as indices,
and these are not handled properly when the expression is being converted
to Maxima.
We could just disallow anything that didn't fit a number or regular
expression with commas or something.
This patch is somewhat different also in that
{{{
raise NotImplementedError("don't know what to do with multiple indices
yet!")
}}}
and I have to say I do like being able to use slice notation directly on
the variable.
Also,
{{{
sage: x.ind[2:6]
x.2
}}}
seems counterintuitive for a couple reasons - the dot suggests an
attribute to me in Python, and where are the other indices? I'm also not
sure I like allowing indexing of non-variables, but that might be
ignorance and fear speaking. I just don't know what
{{{
sage: ex.ind[p]
(x + 1).[2, 1, 3]
}}}
really means.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11576#comment:23>
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 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-trac?hl=en.