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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

switched return

Efried
7-Bedrock

switched return

Hello,

before running to deep into the obvious wrong error message, allow me to ask wether is possible with mathcad 14:

if condition ==true

return vector of elements divided by their different units

else

return another vector with another size and other orininal units (also divided by them removing them)

thanks

gerfried

3 REPLIES 3
StuartBruff
23-Emerald III
(To:Efried)

Gerfried Cebrat wrote:

Hello,

before running to deep into the obvious wrong error message, allow me to ask wether is possible with mathcad 14:

if condition ==true

return vector of elements divided by their different units

else

return another vector with another size and other orininal units (also divided by them removing them)

thanks

gerfried

Yes ... provided I've understood the question. See attached for an example.

Stuart

Fred_Kohlhepp
23-Emerald I
(To:Efried)

Gerfried Cebrat wrote:

Hello,

before running to deep into the obvious wrong error message, allow me to ask wether is possible with mathcad 14:

if condition ==true

return vector of elements divided by their different units

else

return another vector with another size and other orininal units (also divided by them removing them)

thanks

gerfried

Before you get too far into this, look up the UnitsOf() function. While it can (and has) caused much anguish and many errors, x/(UnitsOf(x) will render a quantity that has no units and is numerically the correct value of x expressed in default units. Keeping track of what the units SHOULD be will still be problematic.

Can you provide a worksheet indicating what your after, will save people guessing.

Mike

Announcements

Top Tags