Hello all,
I'm thinking of using SympyCore as the basis for a project where I
would make extensive use of SLICE, SUBSCRIPT and ATTR heads within
expressions (including using symbolic expressions as indices), mostly
within the Verbatim algebra but occasionally converting fragments of
expressions to Calculus.
It seems that SLICE, SUBSCRIPT and ATTR heads are not currently used
much (except probably in the Matrix classes) and that there are a few
rough edges, for instance:
In [149]: Verbatim("a[3]").as_algebra(Verbatim)
NotImplementedError: SUBSCRIPT.walk(func, cls, data, target) method
Please report this issue to
http://code.google.com/p/sympycore/issues/
.
So, I've implemented a walk() method for Subscript heads, but there
are further errors downstream. Is this just because these methods need
implementing, or am I trying to do things the wrong way?
One last question:
In [142]: Verbatim(3)
Out[142]: Verbatim(SYMBOL, 3)
In [145]: Verbatim("3")
Out[145]: Verbatim(NUMBER, 3)
Any reason the head is SYMBOL in the first case and not NUMBER?
Regards!