On 20/10/2021 22:51, Aaron Meurer wrote:
Idx lets you specify a range of values. I think it is also handled
better by the code printers. If you don't need any of those features,
just using a Symbol should work fine.
Aaron Meurer
Thanks Aaron,
That clarifies things a lot, but I think if you look at the
documentation, this isn't clear.
That leaves me with one question. Can this be used to index a sequence
of functions (as opposed to values) - think of the conventional notation
J_n for the n'th Bessel function, for example? This test suggests that
such a sequence can't be constructed::
X=IndexedBase('X')
x[3]=sin
Generates an error:
TypeError: 'IndexedBase' object does not support item assignment
David
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/b97cffac-c0be-7851-515f-e23bd19459d9%40dbailey.co.uk.