MathGroup Archive 2011

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

Search the Archive

Re: How to plot y=f(x) or given y interval?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119213] Re: How to plot y=f(x) or given y interval?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 25 May 2011 05:56:34 -0400 (EDT)

f[x_] = Cos[x];

ymin = -Sqrt[2]/2; ymax = 1/2;

Plot[f[x], {x, -2 Pi, 2 Pi},
 RegionFunction ->
  Function[{x, y}, ymin < y < ymax],
 PlotRange -> {ymin - 0.2, ymax + 0.2}]


Bob Hanlon

---- Alexandre Araripe <araripe at ufba.br> wrote: 

=============
HI,

How can I plot a function y=f(x) for a given y interval?
Thank in advance
Araripe




  • Prev by Date: Problem with Simplify and Assumptions
  • Next by Date: Re: get a, b from numbers in the form a+b Pi
  • Previous by thread: How to plot y=f(x) or given y interval?
  • Next by thread: Re: How to plot y=f(x) or given y interval?