Skip to main content
13-Aquamarine
Jun 24, 2024 8:23 AM UTC
Solved

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

 

 

terryhendicott
21-Topaz II
Jun 28, 2024 8:09 AM UTC

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

 

3 replies

terryhendicott
21-Topaz II
Jun 24, 2024 12:20 PM UTC

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 

Translate
13-Aquamarine
Jun 28, 2024 3:59 AM UTC

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

Translate
terryhendicott
21-Topaz II
Jun 28, 2024 8:09 AM UTC

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

 

Translate