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

Function problem

Highlighted
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
Highlighted

Re: Function problem

Load please xmcd or mcdx file not rar

Highlighted

Re: Function problem

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.

 

Highlighted

Re: Function problem

It could also go like this:

WindLoad0.jpg

Highlighted

Re: Function problem

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

 

Highlighted

Re: Function problem

Wonderful!!! However I have always done so.

Highlighted

Re: Function problem

Gentlemen Thank you for your help.

Highlighted

Re: Function problem

You may consider closing the thread

Announcements