Re: Small question about Filling between two functions in a
- To: mathgroup at smc.vnet.net
- Subject: [mg94329] Re: [mg94284] Small question about Filling between two functions in a
- From: Syd Geraghty <sydgeraghty at me.com>
- Date: Wed, 10 Dec 2008 04:50:03 -0500 (EST)
- References: <200812100411.XAA24208@smc.vnet.net>
Felipe,
Try
u[x_] := 48 x
k[x_] := 2 x^3 - 18 x^2 + 60 x + 32
p1 = Plot[{k[x], u[x]}, {x, -2, 2}];
p2 = Plot[{k[x], u[x]}, {x, 2, 8}, Filling -> {1 -> {2}}];
p3 = Plot[{k[x], u[x]}, {x, 8, 10}];
Show[p1, p2, p3, PlotRange -> All]
Cheers ... Syd
Syd Geraghty B.Sc, M.Sc.
sydgeraghty at mac.com
Mathematica 7.0.0 for Mac OS X x86 (64 - bit) (21st November, 2008)
MacOS X V 10.5.4
MacBook Pro 2.33 Ghz Intel Core 2 Duo 2GB RAM
On Dec 9, 2008, at 8:11 PM, Felipe Mannshardt wrote:
> Hello,
>
> i have been trying to get this working, without much success.
>
> What i want, is to fill an area between two functions, but only
> between the
> interval from x=2 to x=8
>
> I have,
>
> u[x_]:=48x
> k[x_]:=2x^3-18x^2+60x+32
>
> Plot[{k[x], u[x]}, {x, -2, 10}, Filling -> {1 -> {2}}]
>
> It draws (fills) every area between k(x) and u(x).
>
> How can i tell Mathematica to just fill between a determined
> interval (x
> Axis : 2->8 ) ?
>
> Thanks !
>
> PS: Between, what is the most used way of pasting text from
> Mathematica in
> here ? (Plain Text ? LATEX ? ??? )
>
>
> Thanks !!!
>
>
- References:
- Small question about Filling between two functions in a determined interval
- From: "Felipe Mannshardt" <vexie.infamous@googlemail.com>
- Small question about Filling between two functions in a determined interval