Skip to main content
13-Aquamarine
August 16, 2020
Solved

Use end result as input for next calculation

  • August 16, 2020
  • 2 replies
  • 1838 views

This is most likely a very stupid question but I do not succeed in this simple program. Attached is a MC 15 file I would like to automate in a small program the process mentioned in the highlighted comment. Would anyone be so kind to help me out as I do not "see" it right now.

Best answer by Werner_E

OK, here is the all in one version

Werner_E_0-1597596671566.png

Or a bit shorter:

Werner_E_0-1597611444273.png

 

And in case that you also need the intermediate results, here's a way to get them:

Werner_E_0-1597596805964.png

 

MC15 worksheet attached

2 replies

25-Diamond I
August 16, 2020

Hct.cyclestart should be replaced in eq. 6 and 7 but not in eq 5, which you wrote after eq. 6 and before eq. 7? Are you sure?

Obviously you'll need to use a "while" loop to do the iterations.

Why don't you make k and V.blood an argument of function CS, too?

25-Diamond I
August 16, 2020

Here is an approach using your function CS, assuming that the value in eq.5 has to be replaced, too:

Werner_E_0-1597595557076.png

Of course its not mandatory to split the calculation into two functions. I was simply lazy 😉

 

 

Werner_E25-Diamond IAnswer
25-Diamond I
August 16, 2020

OK, here is the all in one version

Werner_E_0-1597596671566.png

Or a bit shorter:

Werner_E_0-1597611444273.png

 

And in case that you also need the intermediate results, here's a way to get them:

Werner_E_0-1597596805964.png

 

MC15 worksheet attached

FDS13-AquamarineAuthor
13-Aquamarine
August 17, 2020

Werner I must have had a complete blackout... but you made my morning. Thank you for your assistance.