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 Rens Servais  
#1 Posted : 21 March 2018 16:17:31(UTC)
Rens Servais

Rank: Newbie

Groups: Registered
Joined: 21/03/2018(UTC)
Posts: 4
Netherlands
Location: Rosmalen

Does anyone know how to use vectors with subscripts (by typing: [) in SMAth as I have done in the attached Mathcad file (.pdf + .xmcd). I have tried it in SMath (see the attached SMath file) but this does not work in the same way. Does anyone knows a workaround?

Best regards,
Rens Servais

SMath file.sm (4kb) downloaded 14 time(s). Mathcad file.xmcd (20kb) downloaded 10 time(s). Mathcad print.pdf (96kb) downloaded 16 time(s).

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

Offline Davide Carpi  
#2 Posted : 21 March 2018 16:54:39(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
Hello Rens,

You can do it in the same way, but indices here are base 1 instead of base 0

SMath file (r1).sm (5kb) downloaded 19 time(s).

2018-03-21 14_55_53-SMath Studio - [SMath file (r1).sm_].png

2018-03-21 14_54_55-Mathcad%20print.pdf - Adobe Acrobat Reader DC.png

Edited by user 21 March 2018 16:57:08(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Rens Servais  
#3 Posted : 22 March 2018 13:12:23(UTC)
Rens Servais

Rank: Newbie

Groups: Registered
Joined: 21/03/2018(UTC)
Posts: 4
Netherlands
Location: Rosmalen

Thanks a lot Davide!

Best Regards
Rens

Edited by moderator 22 March 2018 13:58:32(UTC)  | Reason: marked as solved - title modified for future reference

Offline ElSid  
#4 Posted : 22 March 2018 17:09:04(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Reminded me of a loop I had for Mathcad. Somehow, the equal sign is not correct and not working. A little help? Range2Vec program.smz (3kb) downloaded 13 time(s).
Offline Davide Carpi  
#5 Posted : 22 March 2018 17:20:17(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
Originally Posted by: ElSid Go to Quoted Post
Reminded me of a loop I had for Mathcad. Somehow, the equal sign is not correct and not working. A little help? Range2Vec program.smz (3kb) downloaded 13 time(s).


What would be the expected result?

Edited by user 22 March 2018 17:23:01(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline alyles  
#6 Posted : 22 March 2018 17:26:42(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
You had Count as subscript instead of index in the loop.

Range2Vec program.smz (3kb) downloaded 15 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline ElSid  
#7 Posted : 22 March 2018 17:26:57(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Wrong subscript ... Fixed Range2Vec.smz (4kb) downloaded 22 time(s).
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.