MathGroup Archive 2010

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

Search the Archive

Re: Filling from x_1 to x_2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111975] Re: Filling from x_1 to x_2
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 23 Aug 2010 02:37:27 -0400 (EDT)

f[x_] := x^2 - 4 x + 3;

Plot[{f[x], f[x] Boole[1 < x < 3]},
 {x, 0, 4}, Filling -> {2 -> Axis}]

or

Plot[{f[x], f[x] Boole[1 < x < 3]},
 {x, 0, 4}, Filling -> {2 -> 0}]


Bob Hanlon

---- Anders <and3rsha at gmail.com> wrote: 

=============
Hi,

I'm trying to only fill the area under a function from one x-value
(x_1) to another x-value (x_2) (the purpose is to represent an
integral with the filling) . I'm using the Filling -> Axis option, but
I'm not sure how to limit the x-values.

Do you guys know anything about this?


Andrew



  • Prev by Date: Re: Launch kernel and packages from Mac OS's launchd utility
  • Next by Date: Re: Quick way to return the boundaries of an inequality?
  • Previous by thread: Filling from x_1 to x_2
  • Next by thread: Re: Filling from x_1 to x_2