Skip to main content
1-Visitor
Aug 16, 2024 4:30 PM UTC
Solved

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.

terryhendicott
21-Topaz II
Aug 16, 2024 5:47 PM UTC

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

5 replies

1-Visitor
Aug 16, 2024 4:38 PM UTC

Here is a screen shot if that is helpful. 

JE_11060022_1-1723826263445.png

 

 

Translate
terryhendicott
21-Topaz II
Aug 16, 2024 5:47 PM UTC

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

Translate
1-Visitor
Aug 16, 2024 5:50 PM UTC

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

Translate