Skip to main content
1-Visitor
April 8, 2013
Solved

Programming a loop for iteration solving problem. "Expresion is divided by zero" error.

  • April 8, 2013
  • 1 reply
  • 5311 views

Hello Mathcad community!

I'm unexpirienced Mathcad user, but I was able to solve all my problems and misunderstandings by myself. Till now.

I'm need to calculate thickness of segments of the wall for container. It's sort of empirical method(so there is bit mess with units) and requires simple iteration.

I had done some programming in Mathcad prime succesfully, but now I can't find where my mistake is.

I'm attaching sheet and imgs.

Thank you for any kind of help.

PS.

I'm using Mathcad Prime 2.0

Best answer by Werner_E

For i=5 x2=0, then i is incremented and tn6=0. Next you divide by tn6 and this throws the error. See attached.

Unfortunately Prime does not have any serious debugging tools like real Mathcad (15) has.

You may reconsider and check you iteraton formulas.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
April 8, 2013

For i=5 x2=0, then i is incremented and tn6=0. Next you divide by tn6 and this throws the error. See attached.

Unfortunately Prime does not have any serious debugging tools like real Mathcad (15) has.

You may reconsider and check you iteraton formulas.

1-Visitor
April 8, 2013

Wow, I was so blinded.

Thank you for finding my mistake. Indeed my formulas was faulty.

Cheers