MathGroup Archive 2001

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

Search the Archive

Re: Determine the "value range" of a function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27176] Re: Determine the "value range" of a function
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Fri, 9 Feb 2001 03:10:22 -0500 (EST)
  • References: <95tqbj$m8j@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Dirk,
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
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Dirk Heidenreich" <Heidenreich at helimail.de> wrote in message
news:95tqbj$m8j at smc.vnet.net...
> 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?