SMath Studio Forum
»
SMath Studio
»
Questions
»
Subscripts to produce multiple outputs?
Rank: Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 19 Location: WA Was thanked: 1 time(s) in 1 post(s)
|
What I'd like to do is put in one set of equations to evaluate 6 sets of inputs. So I would get F.1i = {x,x,x,x,x,x,}. I hope this makes sense. Sorry I couldn't really find what I was looking for already, although I'm sure someone has already been through this.
Ex.
N:=6 i:=0..(N-1) m=1
F.1i:={0,3,5,3,5,2}
F.1i/m=a
a:={0,3,5,3,5,2}
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
I miss a point, what is the purpose of the ranged variable i? File Attachment(s): Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 19 Location: WA Was thanked: 1 time(s) in 1 post(s)
|
That's perfect. I'll have different variables using that subscript and I don't want to type it in for each one. I also have a string of about 10 equations that I'm running multiple inputs through. I've got six different "regions" that I'm working with and the ranged variable will help me keep things straight by the end of the process. The ranged variable # will match up with other variables so I can group them together as a set of outputs at the end. One other thing. I can't figure out how to input the ".." between the variable numbers to range them. I've been dancing all over the keyboard to figure this out.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Nice. Yes, this is a common issue (there is a request here to have this function in the functions palette) Just type range on your worksheet best regards, Davide Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Subscripts to produce multiple outputs?
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.