Skip to main content
13-Aquamarine
June 24, 2024
Solved

Mathcad prime programming

  • June 24, 2024
  • 1 reply
  • 1688 views

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

 

 

Best answer by terryhendicott

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

 

1 reply

21-Topaz II
June 24, 2024

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 

13-Aquamarine
June 28, 2024

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

21-Topaz II
June 28, 2024

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