Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Numerical Evaluation & Precision > Representation of Numbers >
Mathematica > Core Language > Expressions > Expression Structure > Atomic Elements of Expressions > Representation of Numbers >

RealExponent

RealExponent[x]
gives log_(10)(|x|).
RealExponent[x, b]
gives log_b(|x|).
The base 10 exponent for a number x:
This is the number y=log_(10)(x) such that 10^y=|x|:
The base 2 exponent:
This is the number y=log_2(|x|) such that 2^y=|x|:
The base 10 exponent for a number x:
In[1]:=
Click for copyable input
Out[1]=
This is the number y=log_(10)(x) such that 10^y=|x|:
In[2]:=
Click for copyable input
Out[2]=
The base 2 exponent:
In[3]:=
Click for copyable input
Out[3]=
This is the number y=log_2(|x|) such that 2^y=|x|:
In[4]:=
Click for copyable input
Out[4]=
The real exponent for an arbitrary-precision number:
The result of RealExponent is given as a machine number whatever the precision of x:
The real exponent for an exact number:
The real exponent for an exact numeric quantity:
Real exponent for zeros:
This is -Accuracy[x]:
The same is true for arbitrary-precision zeros:
Also for exact zero:
The real exponent for different bases:
The base can be any number strictly greater than 1:
The base can be an exact numeric quantity:
RealExponent automatically threads over lists:
Determine quickly if a power will overflow:
This predicts that the power can be represented:
A larger power will not work:
Determine quickly the largest power tower b^(b^(b^...)) that will not overflow for a given number:
For any approximate number x, RealExponent[x] is equal to Precision[x]-Accuracy[x]:
Also true for arbitrary-precision numbers:
If x is an approximate zero, then RealExponent[x] gives -Accuracy[x]:
This is the same as saying that the identity RealExponent[x] is equal to Precision[x]-Accuracy[x]:
Since precision is zero for approximate zeros:
The real exponent of a product is the sum of the real exponents:
The real exponent of a power is the real exponent of the base times the power:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team