This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Rescale

Rescale
gives x rescaled to run from 0 to 1 over the range min to max.
Rescale
gives x rescaled to run from to over the range min to max.
Rescale[list]
rescales each element of list to run from 0 to 1 over the range Min[list] to Max[list].
  • Rescale is effectively equivalent to .
  • For exact numeric quantities, Rescale internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
  • Rescale works with complex numbers and symbolic quantities.
Rescale to run from 0 to 1 over the range to 10:
Rescale x to run from to when its values run from to :
Rescale so that all the list elements run from 0 to 1:
Rescale to run from 0 to 1 over the range to 10:
In[1]:=
Click for copyable input
Out[1]=
 
Rescale x to run from to when its values run from to :
In[1]:=
Click for copyable input
Out[1]=
 
Rescale so that all the list elements run from 0 to 1:
In[1]:=
Click for copyable input
Out[1]=
Rescale a list of values:
Rescale with exact or symbolic quantities:
Rescale in the complex plane:
Make a Celsius-to-Fahrenheit conversion table:
In the complex plane, Rescale just scales and rotates a region:
Reversing both range specifications gives back the same result:
Rescale is effectively linear with respect to its first argument:
New in 5.1