Subscripts to produce multiple outputs?

Subscripts to produce multiple outputs? - Like F sub 1i where i=0..6 - Messages

#1 Posted: 1/14/2015 12:12:43 PM
corradolvr

corradolvr

1 likes in 19 posts.

Group: User

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}
#2 Posted: 1/14/2015 7:20:16 PM
Davide Carpi

Davide Carpi

1415 likes in 2873 posts.

Group: Moderator

I miss a point, what is the purpose of the ranged variable i?
corradolvr.sm (4 KiB) downloaded 35 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 1/14/2015 7:53:14 PM
corradolvr

corradolvr

1 likes in 19 posts.

Group: User

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.
#4 Posted: 1/14/2015 8:00:41 PM
Davide Carpi

Davide Carpi

1415 likes in 2873 posts.

Group: Moderator

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
range.gif
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts