cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Mathcad prime programming

NM_10165576
6-Contributor

Mathcad prime programming

Is there a way to ressign the values to a variable in mathcad programming?
For example Es is 2.175 and Ec is 3.5 in a loop. Ec is fixed here and iterate Es until MEd is almost equal to MRd. If it doesn't happen then change the values of Es to 25 which is fixed and Ec iterated from 0 to 3.5 until MEd is almost equal to MRd. How to write a Mathcad program without repeating the steps.

NM_10165576_0-1719217291921.png

NM_10165576_1-1719217336028.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

hI,

Replace the common lines by a function.

Example is used for three instances of common lines,

Their replacement in major program highlight in the third instance what could be a mistake in following lines.

Capture.JPG

 

First Use:

Capture2.JPG

 

Second Use:

Capture3.JPG

 

Last Use which might highlight a msitake in following lines

Capture4.JPG

 

Cheers

Terry

 

View solution in original post

3 REPLIES 3

Hi,

Welcome to the forum.

Please upload your worksheet.

Look below the text input area box on the topic screen and you can see the file upload section of a post.

 

Cheers

Terry 

Hello dear Terry,
here is the Mathcad sheet, which i am working on.

hI,

Replace the common lines by a function.

Example is used for three instances of common lines,

Their replacement in major program highlight in the third instance what could be a mistake in following lines.

Capture.JPG

 

First Use:

Capture2.JPG

 

Second Use:

Capture3.JPG

 

Last Use which might highlight a msitake in following lines

Capture4.JPG

 

Cheers

Terry

 

Top Tags