Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

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?


  • Prev by Date: Image rotation?
  • Next by Date: Re: change $UserDocumentsDirectory
  • Previous by thread: Image rotation?
  • Next by thread: Re: Solve and Piecewise Functions