Scientific notation: Difference between revisions
Reverted to revision 522075014 by WikiDan61: That didn't really help.. (TW) |
No edit summary |
||
Line 3: | Line 3: | ||
In scientific notation all numbers are written in the form of |
In scientific notation all numbers are written in the form of |
||
:<math>a \times 10^b</math> |
:<math>a \times 10^b</math> |
||
( |
(<math>a</math> times ten raised to the power of <math>b</math>), where the [[exponentiation|exponent]] <math>b</math> is an [[integer]], and the [[coefficient]] <math>a</math> is any [[real number]] (however, see [[#Normalized notation|normalized notation]] below), called the ''[[significand]]'' or ''[[mantissa]]''. The term "mantissa" may cause confusion, however, because it can also refer to the [[fraction (mathematics)|fractional]] part of the common [[logarithm]].<!-- actually these are floating-point terms, not scientific notation --> If the number is negative then a minus sign precedes ''a'' (as in ordinary decimal notation). |
||
{| class="wikitable" style="float:right" |
{| class="wikitable" style="float:right" |
Revision as of 16:13, 13 November 2012
Scientific notation (more commonly known as standard form) is a way of writing numbers that are too big or too small to be conveniently written in decimal form. Scientific notation has a number of useful properties and is commonly used in calculators and by scientists, mathematicians and engineers.
In scientific notation all numbers are written in the form of
( times ten raised to the power of ), where the exponent is an integer, and the coefficient is any real number (however, see normalized notation below), called the significand or mantissa. The term "mantissa" may cause confusion, however, because it can also refer to the fractional part of the common logarithm. If the number is negative then a minus sign precedes a (as in ordinary decimal notation).
Standard decimal notation | Normalized scientific notation |
---|---|
2 | 2×100 |
300 | 3×102 |
4,321.768 | 4.321768×103 |
-53,000 | −5.3×104 |
6,720,000,000 | 6.72×109 |
0.2 | 2×10−1 |
0.000 000 007 51 | 7.51×10−9 |
Decimal floating point is a computer arithmetic system closely related to scientific notation.
Normalized notation
Any given number can be written in the form of a×10 b in many ways; for example, 350 can be written as 3.5×102 or 35×101 or 350×100.
In normalized scientific notation, the exponent b is chosen so that the absolute value of a remains at least one but less than ten (1 ≤ |a| < 10). Following these rules, 350 would always be written as 3.5×102. This form allows easy comparison of two numbers of the same sign in a, as the exponent b gives the number's order of magnitude. In normalized notation, the exponent b is negative for a number with absolute value between 0 and 1 (e.g., negative one half is written as −5×10−1). The 10 and exponent are usually omitted when the exponent is 0. Note that 0 cannot be written in normalized scientific notation since it cannot be expressed as a×10 b for any non-zero a.
Normalized scientific form is the typical form of expression of large numbers for many fields, except during intermediate calculations or when an unnormalised form, such as engineering notation, is desired. Normalized scientific notation is often called exponential notation—although the latter term is more general and also applies when a is not restricted to the range 1 to 0 (as in engineering notation for instance) and to bases other than 10 (as in 315× 2 20).
Engineering notation
Engineering notation differs from normalized scientific notation in that the exponent b is restricted to multiples of 3. Consequently, the absolute value of a is in the range 1 ≤ |a| < 1000, rather than 1 ≤ |a| < 10. Though similar in concept, engineering notation is rarely called scientific notation. This allows the numbers to explicitly match their corresponding SI prefixes, which facilitates reading and oral communication. For example, 12.5×10−9 m can be read as "twelve-point-five nanometers" or written as 12.5 nm, while its scientific notation counterpart 1.25×10−8 m would likely be read out as "one-point-two-five times ten-to-the-negative-eight meters".
Significant figures
A significant figure is a digit in a number that adds to its precision. This includes all nonzero numbers, zeroes between significant digits, and zeroes indicated to be significant. Leading and trailing zeroes are not significant because they exist only to show the scale of the number. Therefore, 1,230,400 has five significant figures—1, 2, 3, 0, and 4; the two zeroes serve only as placeholders and add no precision to the original number.
When a number is converted into normalized scientific notation, it is scaled down to a number between 1 and 10. All of the significant digits remain, but all of the place holding zeroes are incorporated into the exponent. Following these rules, 1,230,400 becomes 1.2304 x 106.
Ambiguity of the last digit
It is customary in scientific measurements to record all the significant digits from the measurements, and to guess one additional digit if there is any information at all available to the observer to make a guess.[citation needed] The resulting number is considered more valuable than it would be without that extra digit, and it is considered a significant digit because it contains some information leading to greater precision in measurements and in aggregations of measurements (adding them or multiplying them together.)
Additional information about precision can be conveyed through additional notations. In some cases, it may be useful to know how exact the final significant digit is. For instance, the accepted value of the unit of elementary charge can properly be expressed as 1.602176487(40)×10−19 C,[1] which is shorthand for (1.602176487±0.000000040)×10−19 C
E notation
Most calculators and many computer programs present very large and very small results in scientific notation. Because superscripted exponents like 107 cannot always be conveniently displayed, the letter E or e is often used to represent times ten raised to the power of (which would be written as "x 10b") and is followed by the value of the exponent. Note that in this usage the character e is not related to the mathematical constant e or the exponential function ex (a confusion that is less likely with capital E); and though it stands for exponent, the notation is usually referred to as (scientific) E notation or (scientific) e notation, rather than (scientific) exponential notation (though the latter also occurs). The use of this notation is not encouraged by publications.[2][3]
Examples and other notations
- In the Ada, C++, FORTRAN, MATLAB, Perl, Java[4] and Python programming languages,
6.0221418E23
or6.0221418e23
is equivalent to 6.0221418×1023. FORTRAN also uses "D" to signify double precision numbers.[5] - The ALGOL 60 programming language uses a subscript ten "10" character instead of the letter E, for example:
6.02214151023
.[6] - The ALGOL 68 programming language has the choice of 4 characters: e, E, \, or 10. By examples:
6.0221415e23
,6.0221415E23
,6.0221415\23
or6.02214151023
.[7]
- Decimal Exponent Symbol is part of "The Unicode Standard 6.0" e.g.
6.0221415⏨23
- it was included to accommodate usage in the programming languages Algol 60 and Algol 68. - The TI-83 series and TI-84 Plus series of calculators use a stylized E character to display decimal exponent and the 10 character to denote an equivalent Operator[7].
- The Simula programming language requires the use of & (or && for long), for example:
6.0221415&23
(or6.0221415&&23
).[8]
Order of magnitude
Scientific notation also enables simpler order-of-magnitude comparisons. A proton's mass is 0.0000000000000000000000000016726 kg. If written as 1.6726×10−27 kg, it is easier to compare this mass with that of an electron, given below. The order of magnitude of the ratio of the masses can be obtained by comparing the exponents instead of the more error-prone task of counting the leading zeros. In this case, −27 is larger than −31 and therefore the proton is roughly four orders of magnitude (about 10000 times) more massive than the electron.
Scientific notation also avoids misunderstandings due to regional differences in certain quantifiers, such as billion, which might indicate either 109 or 1012.
Use of spaces
In normalized scientific notation, in E notation, and in engineering notation, the space (which in typesetting may be represented by a normal width space or a thin space) that is allowed only before and after "×" or in front of "E" or "e" is sometimes omitted, though it is less common to do so before the alphabetical character.[9]
Examples
- An electron's mass is about 0.00000000000000000000000000000091093822 kg. In scientific notation, this is written 9.1093822×10−31 kg.
- The Earth's mass is about 5973600000000000000000000 kg. In scientific notation, this is written 5.9736×1024 kg.
- The Earth's circumference is approximately 40000000 m. In scientific notation, this is 4×107 m. In engineering notation, this is written 40×106 m. In SI writing style, this may be written "40 Mm" (40 megameters).
- An inch is 25400 micrometers. Describing an inch as 2.5400×104 μm unambiguously states that this conversion is correct to the nearest micrometer. An approximated value with only three significant digits would be 2.54×104 μm instead. In this example, the number of significant zeros is actually infinite (which is not the case with most scientific measurements, which have a limited degree of precision). It can be properly written with the minimum number of significant zeros used with other numbers in the application (no need to have more significant digits that other factors or addends).[clarification needed] Or a bar can be written over a single zero, indicating that it repeats forever. The bar symbol is just as valid in scientific notation as it is in decimal notation.
Converting numbers
Converting a number in these cases means to either convert the number into scientific notation form, convert it back into decimal form or to change the exponent part of the equation. None of these alter the actual number, only how it's expressed.
Decimal to scientific
First, move the decimal separator point the required amount, n, to make the number's value within a desired range, between 1 and 10 for normalized notation. If the decimal was moved to the left, append x 10n; to the right, x 10-n. To represent the number 1,230,400 in normalized scientific notation, the decimal separator would be moved 6 digits to the left and x 106 appended, resulting in 1.2304×106. The number -0.004 0321 would have its decimal separator shifted 3 digits to the right instead of the left and yield −4.0321×10−3 as a result.
Scientific to decimal
Converting a number from scientific notation to decimal notation, first remove the x 10n on the end, then shift the decimal separator n digits to the right (positive n) or left (negative n). The number 1.2304×106 would have its decimal separator shifted 6 digits to the right and become 1 230 400, while −4.0321×10−3 would have its decimal separator moved 3 digits to the left and be -0.0040321.
Exponential
Conversion between different scientific notation representations of the same number with different exponential values is achieved by performing opposite operations of multiplication or division by a power of ten on the significand and an subtraction or addition of one on the exponent part. The decimal separator in the significand is shifted x places to the left (or right) and 1x is added to (subtracted from) the exponent, as shown below.
- 1.234×103 = 12.34×102 = 123.4×101 = 1234
Basic operations
Given two numbers in scientific notation,
and
Multiplication and division are performed using the rules for operation with exponential functions:
and
Some examples are:
and
Addition and subtraction require the numbers to be represented using the same exponential part, so that the significand can be simply added or subtracted. :
Next, add or subtract the significands:
An example:
Other bases
While base 10 is normally used for scientific notation, powers of other bases can be used too, base 2 being the next most commonly used one.
For example, in base-2 scientific notation, the number 9 (1001 in binary) is written as:
- 1.125 23 (using decimal representation), or, in E notation,
- 1.001 E11 (using binary and with the letter E now standing for times two to the power).
This is closely related to the base-2 floating-point representation commonly used in computer arithmetic.
Engineering notation can be viewed as base-1000 scientific notation.
See also
- Engineering notation
- Binary prefix
- Floating point
- ISO 31-0
- ISO 31-11
- Significant figure
- Scientific pitch notation
Notes and references
- ^ "NIST value for the elementary charge". Physics.nist.gov. Retrieved 2012-03-06.
- ^ http://hps.org/publicinformation/ate/q930.html
- ^ http://hps.org/documents/2010_midyear_author-submission-guidelines.pdf
- ^ "Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics)". Download.oracle.com. Retrieved 2012-03-06.
- ^ "UH Mānoa Mathematics » Fortran lesson 3: Format, Write, etc". Math.hawaii.edu. 2012-02-12. Retrieved 2012-03-06.
- ^ Report on the Algorithmic Language ALGOL 60, Ed. P. Naur, Copenhagen 1960
- ^ "Revised Report on the Algorithmic Language Algol 68". 1973. Retrieved April 30, 2007.
{{cite web}}
: Unknown parameter|month=
ignored (help) - ^ "SIMULA Standard As defined by the SIMULA Standards Group - 3.1 Numbers". 1986. Retrieved October 6, 2009.
{{cite web}}
: Unknown parameter|month=
ignored (help) - ^ Samples of usage of terminology and variants: [1], [2], [3], [4], [5], [6]