Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Interval

Usage
Notes
Further Examples

You can use Max and Min to find the endpoints of intervals.

In[1]:=  

Out[1]=

You can take the union and intersection of two or more intervals.

In[2]:=  

Out[2]=

In[3]:=  

Out[3]=

Using IntervalMemberQ, you can check if an interval is contained in another.

In[4]:=  

Out[4]=

You can also check if a point belongs to an interval.

In[5]:=  

Out[5]=

You can do interval arithmetic with many functions. For example, this command reflects the fact that the square of any real number between -2 and 5 lies between 0 and 25.

In[6]:=  

Out[6]=

Taking the reciprocal gives two distinct intervals.

In[7]:=  

Out[7]=

You can use intervals in many kinds of functions.

In[8]:=  

Out[8]=

Some functions automatically generate intervals.

In[9]:=  

Out[9]=

With ordinary machine-precision arithmetic, this gives an incorrect result.

In[10]:=  

Out[10]=

The interval generated here, however, correctly includes the point 0.

In[11]:=  

Out[11]=

Interval arithmetic is useful in obtaining or proving bounds. Here we define a function ff, which depends on a parameter  .

In[12]:=  

This shows that ff is monotonically nonincreasing in x for all non-negative values of the parameter.

In[13]:=  

Out[13]=

In[14]:=  


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: