Skip to main content
1-Visitor
October 10, 2019
Solved

Allowable/not allowable

hi, how to compare the results with the allowable stress? If the result is less than allowable stress,the stress is acceptable or else not acceptable. 

Thank you

Werner_E
Werner_EAnswer
25-Diamond I
October 10, 2019

First you have to decide what your allowable and notallowable should be. If they should be variables you'll have to define them first - I replace them by strings of text.

Here are two ways to accomplish what you are looking for. The first one uses an auxiliary function and vectorization and the second one a program with a for-loop.

I include a very simple third one which gives you 1 and 0 instead of the text strings.

clipboard_image_0.png

10 replies

Werner_E
25-Diamond I
October 10, 2019

Obviously you forgot to attach your worksheet or at least a picture of the problem.

Or if you just looked for a more generic answer: You can either use the programmed if-statement to do so or the if-function (which is similar to what you probably know from your spreadsheet program).

Translate
rizz121-VisitorAuthor
1-Visitor
October 10, 2019

i dont have much practice with the programming as i just started using mathcad. i have given some random values to find if its allowable or not.

Thank you

Translate
Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
October 10, 2019

First you have to decide what your allowable and notallowable should be. If they should be variables you'll have to define them first - I replace them by strings of text.

Here are two ways to accomplish what you are looking for. The first one uses an auxiliary function and vectorization and the second one a program with a for-loop.

I include a very simple third one which gives you 1 and 0 instead of the text strings.

clipboard_image_0.png

Translate
23-Emerald I
October 10, 2019

Capture.JPG

Translate
rizz121-VisitorAuthor
1-Visitor
October 10, 2019

Thank you

Translate