## This value must be a scalar

## This value must be a scalar

(OP)

Hi,

Please find the attached image:

I'm not aware how this could be solved.

Any help would be highly appreciated.

Please find the attached image:

I'm not aware how this could be solved.

Any help would be highly appreciated.

## RE: This value must be a scalar

You may want to write a for loop to make this happen. Example from mathcad 15:

S&T - www.re-tug.com

## RE: This value must be a scalar

I'm sorry if I didn't provide whole data.

Please find the attached image:

## RE: This value must be a scalar

I imagine that line would work if you did the "vectorization" operator, as per your other thread. In the "Math" tab of the ribbon, click on "Operators" (has a cube root symbol on my version of mathcad), and at the bottom of the drop-down are the Vector and Matrix operators. The one you're looking for is a "V" with an arrow above it.

Make sure to highlight " lambda_w <= lambda_pw " and the apply the operator. Let us know if that fixes your problem.

## RE: This value must be a scalar

I'm sorry, but that doesn't fix the problem.

If you note the right side of the image, the comparison is OK. But when dealing with If statement, the problem comes.

## RE: This value must be a scalar

TTFN (ta ta for now)

I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg

FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

## RE: This value must be a scalar

## RE: This value must be a scalar

I would make a for loop for your situation, compare lambda w [i] to lambda pw in your for loop.

My example up above should be enough to make you dangerous.

S&T - www.re-tug.com

## RE: This value must be a scalar

I removed the lower two If statements.

I tried with other comparison operators.

I tried also If and else statement instead of lower two If statements.

I tried If( , , , , , ) statement.

But with no success.

Any help will be highly appreciated.

## RE: This value must be a scalar

## RE: This value must be a scalar

I know you have so many contribution in PTC Mathcad. So, I hope you be able to give a solution for this problem.

## RE: This value must be a scalar

## RE: This value must be a scalar

## RE: This value must be a scalar

This time I've stuck with this:

Any help would be highly appreciated.

## RE: This value must be a scalar

TTFN (ta ta for now)

I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg

FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

## RE: This value must be a scalar

## RE: This value must be a scalar

## RE: This value must be a scalar

Your help is highly appreciated and accepted as solution.

P.S., By accepted as solution, I mean I tried your approach and the problem is solved.

## RE: This value must be a scalar

Is there any way combining these two steps into one step when calculating R_pc2 ?

## RE: This value must be a scalar

TTFN (ta ta for now)

I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg

FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

## RE: This value must be a scalar

I meant the inclusion of the R_pc2<=M_p2/M_y2 condition into the If statement. How this can be done?

## RE: This value must be a scalar

Can anyone share thoughts with my query?

## RE: This value must be a scalar

_{pc2}to see if it's less than the ratio between its plastic moment and yield moment (the shape factor, if I recall correctly).So, what happens if R

_{pc2}exceeds that ratio? I assume you need to check all your R_{pc}values against the moment ratio?## RE: This value must be a scalar

## RE: This value must be a scalar

UNLESS, is there ever a case where lambda

_{w}is less than lambda_{rw}, but you could still end up with a value that is greater than your M_{p}/M_{y}? If the answer to this is "no", then you don't need to perform the check separately.## RE: This value must be a scalar

Please find the attached image for more clarification.

P.S

Lambda_w=h_c/t_w

## RE: This value must be a scalar

Any input would be highly appreciated.

## RE: This value must be a scalar

Can't my issue be solved?

## RE: This value must be a scalar

## RE: This value must be a scalar

Thanks. Should it be max or min function?

Please find the attached image. Am I doing it correctly?

## RE: This value must be a scalar

## RE: This value must be a scalar

Thanks, I highly appreciate your help.