ExponentFunction

ExponentFunction

is an option for NumberForm and related functions that determines the exponent to use in printing approximate real numbers.

Details

  • Functions like NumberForm first find the exponent that would make exactly one digit appear to the left of the decimal point when the number is printed in scientific notation. Then they take this exponent and apply the function specified by ExponentFunction to it. If the value obtained from this function is an integer, it is used as the exponent of the number. If it is Null, then the number is printed without scientific notation.
  • The argument provided for the function specified by ExponentFunction is always an integer.
  • In NumberForm, the default setting for ExponentFunction never modifies the exponent, but returns Null for machine numbers with exponents between -5 and 5, and for highprecision numbers where insignificant zeros would have to be inserted if the number were not printed in scientific notation.
  • In ScientificForm, the default setting for ExponentFunction returns Null only for real numbers with single-digit integer parts.
  • In EngineeringForm, the default setting for ExponentFunction returns an exponent that is a multiple of 3.
  • In AccountingForm, the default setting for ExponentFunction always returns Null.

Examples

open allclose all

Basic Examples  (1)

Compute approximate powers of :

Default formatting to 5 digits:

Restrict exponents to multiples of 3:

Scope  (3)

Use ExponentFunction with PaddedForm:

EngineeringForm:

ScientificForm:

AccountingForm:

Include exponents only for powers with absolute value greater than 10:

Format numbers without using scientific notation:

Wolfram Research (1991), ExponentFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ExponentFunction.html.

Text

Wolfram Research (1991), ExponentFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ExponentFunction.html.

CMS

Wolfram Language. 1991. "ExponentFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExponentFunction.html.

APA

Wolfram Language. (1991). ExponentFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExponentFunction.html

BibTeX

@misc{reference.wolfram_2024_exponentfunction, author="Wolfram Research", title="{ExponentFunction}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/ExponentFunction.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_exponentfunction, organization={Wolfram Research}, title={ExponentFunction}, year={1991}, url={https://reference.wolfram.com/language/ref/ExponentFunction.html}, note=[Accessed: 30-December-2024 ]}