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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Mathcad prime programming

NM_10165576
11-Garnet

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

 

 

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

 

Announcements

Top Tags