Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Translate the entire conversation x

Automate MathCAD Prime 8 Iterations

LP_12590548
3-Newcomer

Automate MathCAD Prime 8 Iterations

I have an iteration in a calculation that requires I select “Calculate” repeatedly until two numbers are relatively equal. Is there a way to automate this iteration so that I only need to select “Calculate” once?

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(To:LP_12590548)


@LP_12590548 wrote:
I’m unable to share my worksheet. Any chance you can provide generic instructions?

Can you at least provide an example?  For example, a screenshot, a photograph, pdf, sketch or text of the equations?

 

There are a multiplicity of methods of solving iterative problems within Mathcad.  Which one is best (for values of best) depends upon the nature of your problem.  Indeed, there may well be non-iterative solutions to your problem.   Here's a starter ...

 

2024 12 14 B.png

 

2024 12 14 C.png

 

2024 12 14 D.png

 

Of course, it could well be that none of these methods suits your problem.  If no methods are suitable within Mathcad Prime itself, it might be possible to use JScript within an Advanced Control or some external program that calls the Mathcad Prime API (there are plenty of examples within the Mathcad Prime Help; search for Automation or API).

 

Stuart

 

Sorry, I don't have my Mathcad Prime 8 laptop to hand at the moment, so the attached worksheet is in Mathcad Prime 10 format.

View solution in original post

4 REPLIES 4
StuartBruff
23-Emerald III
(To:LP_12590548)


@LP_12590548 wrote:

I have an iteration in a calculation that requires I select “Calculate” repeatedly until two numbers are relatively equal. Is there a way to automate this iteration so that I only need to select “Calculate” once?


Very likely. Please post a worksheet with your calculation. 

Stuart

I’m unable to share my worksheet. Any chance you can provide generic instructions?
StuartBruff
23-Emerald III
(To:LP_12590548)


@LP_12590548 wrote:
I’m unable to share my worksheet. Any chance you can provide generic instructions?

Can you at least provide an example?  For example, a screenshot, a photograph, pdf, sketch or text of the equations?

 

There are a multiplicity of methods of solving iterative problems within Mathcad.  Which one is best (for values of best) depends upon the nature of your problem.  Indeed, there may well be non-iterative solutions to your problem.   Here's a starter ...

 

2024 12 14 B.png

 

2024 12 14 C.png

 

2024 12 14 D.png

 

Of course, it could well be that none of these methods suits your problem.  If no methods are suitable within Mathcad Prime itself, it might be possible to use JScript within an Advanced Control or some external program that calls the Mathcad Prime API (there are plenty of examples within the Mathcad Prime Help; search for Automation or API).

 

Stuart

 

Sorry, I don't have my Mathcad Prime 8 laptop to hand at the moment, so the attached worksheet is in Mathcad Prime 10 format.

LucMeekes
23-Emerald III
(To:StuartBruff)

Stuart's worksheet translated to Prime8 is attached.

 

Success!
Luc

 

Announcements

Top Tags