Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

One condition for multiple variable

$
0
0

Hi

 

How to solve for multiple variable with one condition?

 

for example: how to solve this problem using mathcad program, I use mathcad prime 3.0

 

if n>2

 

m=x+y+z

n=x+y

p=x-y-z

 

else

 

m=x*y*z

n=x*y

p=x*y/z

 

 

 

I know how to solve one variable with multiple conditions using "if condition" in Mathcad. i.e

 

m=if n>2 then.........if else.........else............

 

In this example I have accommodated few conditions for one variable. But in above program, there is one condition for few variables. and I don't want to use separate "if conditions" for each of the variable. I want to use one condition for each variable in one formula/block, if possible.

 

 

Thanks

Jahangir Hossain


Viewing all articles
Browse latest Browse all 2936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>