MathGroup Archive 2010

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

Search the Archive

Re: simple question for mathematica tool

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106875] Re: [mg106817] simple question for mathematica tool
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 25 Jan 2010 05:10:17 -0500 (EST)
  • Reply-to: hanlonr at cox.net

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

Plot[{f[x], f'[x]}, {x, 0, 24},
 PlotStyle -> {
   Directive[Blue, Thick],
   Directive[Red, Thick]},
 Frame -> True, Axes -> False]


Bob Hanlon

---- MANOLIS VOSKAKIS <emperor_mvs at hotmail.com> wrote: 

=============
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: Compile and Interpolating Functions
  • Next by Date: Re: Journals dying?, apparently rather slowly (was ,
  • Previous by thread: Re: simple question for mathematica tool
  • Next by thread: Re: simple question for mathematica tool