Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Determine the "value range" of a function

  • To: mathgroup at
  • Subject: [mg27176] Re: Determine the "value range" of a function
  • From: "Allan Hayes" <hay at>
  • Date: Fri, 9 Feb 2001 03:10:22 -0500 (EST)
  • References: <95tqbj$>
  • Sender: owner-wri-mathgroup at

Interval[ ] for combinations of common functions will give an aanswer that
will contain the range.

Sin[Interval[{-Infinity, Infinity}]]

        Interval[{-1, 1}]

Another possibilities:

Table[Sin[x],{x, 0, 10, .01}];

{Min[%], Max[%]}

{-0.999997, 1.}

Cases[Plot[Sin[x],{x, 0, 10}, DisplayFunction\[Rule]Identity],
  Line[pts_]\[RuleDelayed]Sequence[ Max[pts], Min[pts]], Infinity]

{10., -0.99998}

But clearly problems arise if the values do not make up an interval; and
there would need to be checking for open intervals.

Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Dirk Heidenreich" <Heidenreich at> wrote in message
news:95tqbj$m8j at
> Hello,
> maybe its trivial but how can i determine the "value range" of a function?
> like  f(x)=Sin(x)     -> Range =-1..1
> Dirk Heidenreich

  • Prev by Date: J/Link MathCanvas/Graphics/Interaction
  • Next by Date: Re: Making rectangular matrix
  • Previous by thread: Re: Determine the "value range" of a function
  • Next by thread: clever way to do a product?