Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8326

Re: Filling area between curves

From David Reiss <dbreiss@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Filling area between curves
Date 2012-02-04 11:29 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jgj4qj$mtg$1@smc.vnet.net> (permalink)
References <jgg1fq$bpm$1@smc.vnet.net>

Show all headers | View raw


Plot[
 { Piecewise[{
    {-1 + 4 x - x^2, x < 1/2 (3 + Sqrt[13]) && x > 1/2 (5 -
Sqrt[13])},
    {0, x > 1/2 (3 + Sqrt[13]) && x < 0},
    {-1 + 4 x - x^2,
     x < 1/2 (3 + Sqrt[13]) && x > 1/2 (5 - Sqrt[13])}}] ,
  Piecewise [{{x - 2, x > 2 && x < 1/2 (3 + Sqrt[13])}, {2 - x ,
     x < 2 && x > 1/2 (5 - Sqrt[13])}}],
  Piecewise [{{x - 2, x > 1/2 (3 + Sqrt[13])}, {2 - x ,
     x < 1/2 (5 - Sqrt[13])}}],
  Piecewise[{{-1 + 4 x - x^2, x > 1/2 (5 - Sqrt[13])}}],
  Piecewise[{{-1 + 4 x - x^2, x < 1/2 (3 + Sqrt[13])}}]
  }, {x, 0, 5},
 Filling -> {1 -> {2}}]


--David




On Feb 3, 2:14 am, Elaine Ritter <eyenin...@gmail.com> wrote:
> I have 3 curves, and I want to fill one of the areas that they bound.
> The equations are
> F[x] = -1 + 4 x - x^2
> G[x] := x - 2
> H[x] := 2 - x
> and I want to fill the region that I shaded in this picture:http://i.imgur.com/X2urH.png
>
> I've been trying to figure this out on my own, but to no avail. How do
> I do this?

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Filling area between curves Elaine Ritter <eyeninei9@gmail.com> - 2012-02-03 07:14 +0000
  Re: Filling area between curves "Oleksandr Rasputinov" <oleksandr_rasputinov@ymail.com> - 2012-02-04 11:28 +0000
  Re: Filling area between curves David Reiss <dbreiss@gmail.com> - 2012-02-04 11:29 +0000

csiph-web