MathGroup Archive 2010

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

Search the Archive

Re: simple question for mathematica tool


Use Piecewise. I don't know what value you want when x is outside the domain
you specified. I used 0.

f[x_] := Piecewise[{{150, 0 < x <= 15}, {x^3, 15 < x <= 24}}, 0]

Plot[f[x], {x, 0, 24},
 Frame -> True,
 Axes -> False]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  

From: MANOLIS VOSKAKIS [mailto:emperor_mvs at hotmail.com] 

we have an equation tha is divided in to sub equations
f=150 when  0<x15
f=x^3 when  15<x24

how can i create a plot in mathematica??
i want all in 1 graph

thanks alot
manoli




  • Prev by Date: Re: Journals dying?, apparently rather slowly (was ,
  • Next by Date: Re: simple question for mathematica tool
  • Previous by thread: Re: simple question for mathematica tool
  • Next by thread: Re: simple question for mathematica tool