Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mikekaganski  
#1 Posted : 21 April 2016 16:27:24(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
Why does this give "Syntax is incorrect"?

syntaxIncorrect.sm (11kb) downloaded 35 time(s).

Edited by moderator 25 April 2016 21:08:51(UTC)  | Reason: marked as issue

Best regards,
Mike Kaganski
thanks 1 user thanked mikekaganski for this useful post.
on 21/04/2016(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 21 April 2016 20:03:47(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Oh ! your coding is not very productive.

Forum Matrix [i,j].gif
Offline CBG  
#3 Posted : 23 April 2016 06:00:00(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
I think the mistake was put subscript to the subindex , Which I think is not allowed


sintaxis_sudbindice.png




Best regards
Offline mikekaganski  
#4 Posted : 23 April 2016 06:11:21(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
My question is exactly WHY is that not allowed?
The "subindex" is actually a fancy representation of ordinary function: el(#,#) (or el(#,#,#)), that gives an element of its first argument. If this element happens to be a matrix, I expect that its sub-elements are accessible using next el(#,#,#):

Code:
el(el(M,k),1,1)
Best regards,
Mike Kaganski
thanks 1 user thanked mikekaganski for this useful post.
on 29/04/2016(UTC)
Offline Davide Carpi  
#5 Posted : 10 May 2016 14:00:40(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Added as SS-2342
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#6 Posted : 10 May 2016 18:04:19(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: CBG Go to Quoted Post
I think the mistake was put subscript to the subindex , Which I think is not allowed


Maybe like this

Forum MDA Create.gif

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.