Skip to main content
Best answer by RichardJ

Your problem is that f and tpas are both range variables. Range variables are NOT vectors. They are iterators (i.e. loop variables). That means TF1, for example, is calculated for every value of f AND every value of tpas. You need to make f and tpas vectors (as a good rule of thumb, only use range variable to index vectors. Use vectors for everything else).

2 replies

1-Visitor
February 1, 2012

Please, Help me ....

RichardJ19-TanzaniteAnswer
19-Tanzanite
February 1, 2012

Your problem is that f and tpas are both range variables. Range variables are NOT vectors. They are iterators (i.e. loop variables). That means TF1, for example, is calculated for every value of f AND every value of tpas. You need to make f and tpas vectors (as a good rule of thumb, only use range variable to index vectors. Use vectors for everything else).