Question: Two dimensional piecewise function

Is there any command for defining piecewise functions in 2 dimensional domain (x, y)

Say (x,y) such that ((0,0)<(x,y)<(1,1), x+y, (1,1)<(x,y)<(2,1), x-y), x=0..2, y=0..1)

 

Thanks for help.

Ramakrishnan

Please Wait...