On Thu, Oct 21, 2021 at 2:37 PM David Bailey <[email protected]> wrote:
>
> 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::
You would have to represent that as the index being an argument of the
function. For example, J_n(x) is besselj(n, x).
Aaron Meurer
>
> 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.
--
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/CAKgW%3D6%2BteFZ9qs6QSLwbtwcrgGfzEv5bpTq0LQ6Bn6qYHwX1uw%40mail.gmail.com.