-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symbolic list element as expression? #160
Comments
The expression is not supported and is supposed to trigger an error. |
Thanks. Yes, it is not supported. But I had considered a more user-friendly (Symata-level) error. For instance
Although the Symata-level error is no longer working as I want now. As you can see. It is thrown to Julia. But, I think I did implement subscripted variables. I'll search for if/how I did it. |
You can use I'll open this again, because the error is exposing the implementation. |
More precisely, symata 1> a[1]
BoundsError("part specification 1 is longer than the depth of the object.", #undef) ...
symata 1> b = [0]
Out(1) = [0]
symata 2> b[1]
Out(2) = 0 |
Mathematica In[1]:= Table[a[i], {i, 10}]
Out[1]= {a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10]} Symata symata 1> Table(a(i) , [i, 10])
Out(1) = [a(1),a(2),a(3),a(4),a(5),a(6),a(7),a(8),a(9),a(10)] |
Hi,
I noticed that right now the list element cannot be used as an expression, e.g.
a[i]
,in which a and i are just two symbols, will trigger an error.
The text was updated successfully, but these errors were encountered: