Mathematica 9 is now available

ExponentFunction

Usage

ExponentFunctionNumberForm及其相关函数的可选项,用来确定输出近似实数时使用的指数.


Notes

• 当该数字以科学计数法输出时, 类似NumberForm的函数首先找到确实会使一个数位出现在小数点左边的指数.然后,它们选取这个指数,并把由ExponentFunction指定的函数应用到它上面.如果从这个函数得到的值是一个整数, 它会被作为这个数的指数. 如果结果为Null, 则该数字不会以科学记数法输出.
• 由 ExponentFunction 指定的函数的参数总是一个整数.
• 在 NumberForm中,ExponentFunction的缺省设置不会修改指数.
• 在ScientificForm中,ExponentFunction的缺省设置不会返回Null.
• 在EngineeringForm中,ExponentFunction的缺省设置返回一个3的倍数的指数.
• 在AccountingForm中,ExponentFunction的缺省设置总返回Null.
• 参见 Mathematica 全书:2.8.7节.
• 同时参见:NumberFormat.
Further Examples

Here are some numbers to be displayed.

In[1]:=  

Out[1]=

This forces the exponent to always be  .

In[2]:=  

Out[2]//NumberForm=

If ExponentFunction is set to the function returning Null, then exponents are not used.

In[3]:=  

Out[3]//NumberForm=

If ExponentFunction is set to Identity, then the exponent is displayed even if it is zero.

In[4]:=  

Out[4]//NumberForm=

This shows the effect of shifting the exponent.

In[5]:=  

Out[5]//NumberForm=

It is often convenient to use ExponentFunction together with other options.

In[6]:=  

Out[6]//PaddedForm=

This clears the definition.

In[7]:=  



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.