Re: simple question for mathematica (corrected)
- To: mathgroup at smc.vnet.net
- Subject: [mg106879] Re: simple question for mathematica (corrected)
- From: Raffy <raffy at mac.com>
- Date: Tue, 26 Jan 2010 06:32:49 -0500 (EST)
- References: <hjjqfo$92b$1@smc.vnet.net>
On Jan 25, 2:06 am, MANOLIS VOSKAKIS <emperor_... at hotmail.com> wrote:
> we have a function that is divided in 2 sub equations
> f=150 when 0<x<15
> f=x^3 when 15<x<24
>
> how can i create a plot of this function in mathematica??
> i want all in 1 graph
>
> thanks alot
> manolis
Plot[Piecewise[{{150, 0 < x < 15}, {x^3, 15 < x < 24}}, None], {x, 0,
24}]