Solve and Piecewise Functions

*To*: mathgroup at smc.vnet.net*Subject*: [mg76392] Solve and Piecewise Functions*From*: Michael Madrid <mfmadrid at yahoo.com>*Date*: Mon, 21 May 2007 06:00:50 -0400 (EDT)

I was hoping something like this: Clear["*"] g=Piecewise[{{0,x<0},{2 x-x^2,0<=x<4},{16 x-x^2,x³4}}] h=x-2; Solve[g?h,x] would give me a meaningful answer. But all I get is this: Solve[\[Piecewise]{ {0, x<0}, {2 x-x2, 0£x<4}, {16 x-x2, x³4} }?-2+x,x] Any thoughts on how to do this?