Infinite recursion when it should not be.
Infinite recursion when it should not be.
(OP)
I'm trying to simulate cycle times as a function of work released at a station.
Please see attached worksheet.
Mathcad 14
http:/ /files.eng ineering.c om/getfile .aspx?fold er=1c8ef17 7-8bbd-475 5-bc66-bbc 536ff534&a mp;file=Ex ample.xmcd
Mathcad 11
http:/ /files.eng ineering.c om/getfile .aspx?fold er=1e85b91 b-6705-4e7 9-a83d-583 bae91b224& amp;file=E xample.mcd
The problem is, for the CT(w), it requires CT(w-1).
While understandable this leads to recursion, CT(1) is very easily calculated since some parts reduce to 0 for example:
w-1/CT(w-1)=0 for w=1
No need to know CT(w-1) as 0 divided by anything will always be 0.
So how can I avoid Mathcad worrying about 'infinite recursion' / overflow?
Note: w=1,2...32 at most. So definitely not infinite.
Please see attached worksheet.
Mathcad 14
http:/
Mathcad 11
http:/
The problem is, for the CT(w), it requires CT(w-1).
While understandable this leads to recursion, CT(1) is very easily calculated since some parts reduce to 0 for example:
w-1/CT(w-1)=0 for w=1
No need to know CT(w-1) as 0 divided by anything will always be 0.
So how can I avoid Mathcad worrying about 'infinite recursion' / overflow?
Note: w=1,2...32 at most. So definitely not infinite.





RE: Infinite recursion when it should not be.
http
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Infinite recursion when it should not be.
However think I've oversimplified the expression, please see attached files with expressions to describe multi-station lines. The expression is completely wrong, but describes what I'm trying to do. (Unfortunately, the second expression no longer contains redundancies.)
I guess a solution would be to separate all the CT_j(w) and sum them up later, i.e. move everything to different expressions like you might calculate everything in different cells in Excel.
But then each expression refers to another expression that has not yet been calculated -> every expression should be solved at the same time. Another form of problematic recursion I guess.
Note: CT_j should be a function of w rather than j. Didn't manage to formulate that in Mathcad.
Mathcad 11
http://
Mathcad 14
http://f
RE: Infinite recursion when it should not be.
Engineering.com appears to be non-responsive at the moment. I'll post the file later
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Infinite recursion when it should not be.
http:
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Infinite recursion when it should not be.