cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

This value must be an integer error in for loop

JE_11060022
1-Newbie

This value must be an integer error in for loop

Hello, 

 

I am using mathcad prime 10.0 and have created a program to solve for F_rated. I then want reference this program in a for loop, however it says the inputs to the function must be integers. Outside the for loop the equation works fine so I am a bit confused.

ACCEPTED SOLUTION

Accepted Solutions

Hi,

Mathcad Prime is unable to distinguish between function Frated and variable Frated.

Simple change the name of the function.

Capture.JPG

Capture2.JPG

Cheers

Terry

View solution in original post

5 REPLIES 5

Here is a screen shot if that is helpful. 

JE_11060022_1-1723826263445.png

 

 

Hi,

Mathcad Prime is unable to distinguish between function Frated and variable Frated.

Simple change the name of the function.

Capture.JPG

Capture2.JPG

Cheers

Terry

Thank you so much for the help Terry, that did the Trick!

Hi,

On the side,

Matrix indices start at zero bty default and your loops for "i" and "j" start at 1 which gives a row and column of zeros in matrix F.

In menu Calculation | Worksheet Options | Origin you can set the first index to 1.

Capture3.JPG

Cheers

Terry

Ah seems as though I missed that as well, thanks finding that error too! I appreciate all the help!

Announcements

Top Tags