Skip to main content
1-Visitor
August 16, 2024
Solved

This value must be an integer error in for loop

  • August 16, 2024
  • 1 reply
  • 1773 views

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.

Best answer by terryhendicott

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

1 reply

1-Visitor
August 16, 2024

Here is a screen shot if that is helpful. 

JE_11060022_1-1723826263445.png

 

 

21-Topaz II
August 16, 2024

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

1-Visitor
August 16, 2024

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