Skip to main content
10-Marble
June 11, 2019
Question

Function problem

  • June 11, 2019
  • 2 replies
  • 3343 views

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

 

2 replies

24-Ruby IV
June 11, 2019

Load please xmcd or mcdx file not rar

25-Diamond I
June 11, 2019

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.

 

21-Topaz II
June 11, 2019

It could also go like this:

WindLoad0.jpg

25-Diamond I
June 11, 2019

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