if...and...
if...and...
(OP)
Hi
I realy searched in mathcad help for this one but cant find it.
I would like mathcad to do this:
f(x)=a+b if a>0 and b>0
i know how to do it with just one condition but how do i get it to check both if a>0 and b>0 ??
I realy searched in mathcad help for this one but cant find it.
I would like mathcad to do this:
f(x)=a+b if a>0 and b>0
i know how to do it with just one condition but how do i get it to check both if a>0 and b>0 ??





RE: if...and...
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: if...and...
RE: if...and...
I know how to do this:
f= a+b if a>0
a-b otherwise
witch in words meens that matchad check wether a is bigger than 0 and the set f=a+b. if a should happen to be smaler than 0 it set f to a-b.
Now i want mathcad to check wether both a and b is bigger than 0 and then set f=a+b otherwice f should be a-b.
I thought something like this would work:
f=a+b if a>0,b>0
a-b otherwise
but it dident. I simply want to write an if...and..then... formula
Do I make myself clear?
RE: if...and...
if((a>0)^(b>0),a+b,"not valid")
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: if...and...
RE: if...and...
http://w
see page 5/15.
Peter Nachtwey
Delta Computer Systems
http://www.deltamotion.com
RE: if...and...