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

Function problem

OLUBUKOLAADEBOY
5-Regular Member

Function problem

Good Morning Community,

Attached is a copy of Mathcad file for Wind load for gable structure. The function is turned "Red" and I do not know how to trouble shoot the problem. Please see if any one can help.

 

Moses

 

7 REPLIES 7

Load please xmcd or mcdx file not rar

Move the highlighted assignment in front of the for-loop. Otherwise  RA is assigned he dimension "per area" the second time the loops runs.

B.png

 

BTW, you don't need to strip the units from RA if you add them in your program at the correct places:

B2.png

 

As Valery already mentioned there is no need to put the file in an archive (unless you want to pack it along with needed input data files) You may attach Mathcad sheets here directly.

 

-MFra-
21-Topaz I
(To:Werner_E)

It could also go like this:

WindLoad0.jpg

Werner_E
24-Ruby IV
(To:-MFra-)

Too much cluttered IMHO. And why variable k0?

After all I'd prefer using a function which later is called vectorized.

And to avoid the nested if..otherwise statements (which aren't necessary because of the special way Mathcad interprets successive if-statements) I'd prefer using return statements to quit the program as soon as possible:

B3.png

 

-MFra-
21-Topaz I
(To:Werner_E)

Wonderful!!! However I have always done so.

OLUBUKOLAADEBOY
5-Regular Member
(To:Werner_E)

Gentlemen Thank you for your help.

You may consider closing the thread

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."