Re: Problems with Plot in Mathematica 4.0
- To: mathgroup at smc.vnet.net
- Subject: [mg45850] Re: [mg45806] Problems with Plot in Mathematica 4.0
- From: Hugh Walker <hwalker at gvtc.com>
- Date: Tue, 27 Jan 2004 04:50:48 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On Monday, January 26, 2004, at 12:53 AM, Manfred Fischer wrote: > I want to plot the two functions in one Plot output > +0.5x^2-x (definition-range -3<=x<=0) > -0.5x^2+x (definition-range 0<=x<=3) > > I can't find a mathematica 4.0 solution, please help! > > -ManFis - Here is one way: fun[x_] := If[-3 <= x <= 0, 0.5*x^2 - x, 0.5*x^2 + x]; Plot[fun[x], {x, -3, 3}]; ========== Hugh Walker Gnarly Oaks