Skip to main content
14-Alexandrite
Jun 25, 2014 2:20 PM UTC
Solved

Functions not evaluating the range of values

Hello,

please scroll down in the attached sheet where i start to evaluate the function for a certain range, then i need to put the results in a vector format so i can use some of the values inside the vector. i am not sure why the functions are not evaluating the variables in the range. Thanks!

1-Visitor
Jun 25, 2014 2:36 PM UTC

How about the attached?

I have done away with the range variable by converting it to a vector using a user defined function 'vec'.

I have also changed ORIGIN to zero after the list boxes, I would recommend keeping it at zero in the future.

3 replies

1-Visitor
Jun 25, 2014 2:36 PM UTC

How about the attached?

I have done away with the range variable by converting it to a vector using a user defined function 'vec'.

I have also changed ORIGIN to zero after the list boxes, I would recommend keeping it at zero in the future.

Translate
SFares14-AlexandriteAuthor
14-Alexandrite
Jun 25, 2014 2:41 PM UTC

Mike,

what was wrong with what i was doing? i thought function evaluation of variables in a rane is an easy thing and i did it before. do you see any thing wrong with what i did? i like your method. Thanks!

Translate
1-Visitor
Jun 25, 2014 2:49 PM UTC

sameer fares wrote:

what was wrong with what i was doing? i thought function evaluation of variables in a rane is an easy thing and i did it before. do you see any thing wrong with what i did?

Range variables are implicit for loops and not data structures like vectors. You may want to read the articles by Stuart I posted http://communities.ptc.com/docs/DOC-6073 here to better understand the difference between ranges and vector and how ranges should be used.

Translate