Skip to main content
1-Visitor
November 27, 2013
Solved

Passing a for loop variable

  • November 27, 2013
  • 1 reply
  • 1336 views

Pls. see attached file. On the last page is my question which is regarding passing a range variable defined by a for loop, into a previously defined function. I get an error message.

TIA,

Jason

Best answer by Werner_E

See attached. Basically the error is thrown because you attempted to create a range 0,0..0 which is not allowed. Mathcad insists that the second value (the one after the comma) is greater than the first.

It can easily be fixed because the range in your routine I90 can be written simpler. See attached.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
November 27, 2013

See attached. Basically the error is thrown because you attempted to create a range 0,0..0 which is not allowed. Mathcad insists that the second value (the one after the comma) is greater than the first.

It can easily be fixed because the range in your routine I90 can be written simpler. See attached.

JasonC1-VisitorAuthor
1-Visitor
November 27, 2013

Thanks. The error message was a bit cryptic.

25-Diamond I
November 27, 2013

Jason Cuadra wrote:

Thanks. The error message was a bit cryptic.

Agreed, especially as it is not traceable up to the point where the real error "happens".