Skip to main content
1-Visitor
February 17, 2018
Solved

This Value Must Be an Integer Error

  • February 17, 2018
  • 1 reply
  • 4689 views

Hey having once more trouble this time with integer.. Se the image.

Best answer by Werner_E

First let me say that's is hard to debug a picture and that it would be far better if you would attach your Mathcad worksheet.

We don't see which part of your program throws that error and what type or dimension all you variables are of.

Is n an integer?

 

Its at least confusing that you use T_i as literal indexed variable as well as as vector variable.

In your loop with loop counter j you never use j - is this done on purpose?

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
February 17, 2018

First let me say that's is hard to debug a picture and that it would be far better if you would attach your Mathcad worksheet.

We don't see which part of your program throws that error and what type or dimension all you variables are of.

Is n an integer?

 

Its at least confusing that you use T_i as literal indexed variable as well as as vector variable.

In your loop with loop counter j you never use j - is this done on purpose?

 

24-Ruby IV
February 18, 2018

@Werner_E wrote:

First let me say that's is hard to debug a picture and that it would be far better if you would attach your Mathcad worksheet.

 

 


Or send please the picture in this form - we can see what kind of index you have used:

2indexes.png

 

25-Diamond I
February 18, 2018

> Or send please the picture in this form - we can see what kind of index you have used:

You can see which type of index was used even without the region being active, because a vector index always is a little bit lower than a literal index. So in the picture posted in the first place the T_i in the second line is a literal indexed variable, all the others are vectors.

Not sure why my answer was chosen as "solution" - best guess is that n (which was used a vector index) wasn't an integer in the worksheet.