Fraction (mathematics): Difference between revisions
imported>Olier Raby (→Notation: Added text.) |
imported>Olier Raby (Shorter.) |
||
Line 4: | Line 4: | ||
Fractions are a special case of [[ratio]]s. For instance, <math> \scriptstyle \frac{e}{\pi} </math> is a valid ratio, but it is not a fraction since we cannot compute an [[#Equivalent fractions|equivalent fraction]] with an integer numerator and a natural number denominator. A fraction with equal numerator and denominator is equal to one (e.g., <math> \scriptstyle \frac{5}{5} = 1 </math>). Because the [[division by zero]] is undefined, zero should never be the denominator of a fraction. | Fractions are a special case of [[ratio]]s. For instance, <math> \scriptstyle \frac{e}{\pi} </math> is a valid ratio, but it is not a fraction since we cannot compute an [[#Equivalent fractions|equivalent fraction]] with an integer numerator and a natural number denominator. A fraction with equal numerator and denominator is equal to one (e.g., <math> \scriptstyle \frac{5}{5} = 1 </math>). Because the [[division by zero]] is undefined, zero should never be the denominator of a fraction. | ||
Due to tradition and conventions, there are at least two ways to write a fraction. The numerator and the denominator may be separated by a slash ( | Due to tradition and conventions, there are at least two ways to write a fraction. The numerator and the denominator may be separated by a slash (e.g., 3/4), or by a vinculum (e.g., <math> \scriptstyle \frac{3}{4}</math>). Since we can compute the quotient from a fraction, we can represent any fraction with a [[decimal numeral]] (e.g., <math> \scriptstyle \frac{3}{5} = 3 \div 5 = 0.6 </math>). | ||
{{TOC-right}} | {{TOC-right}} | ||
Revision as of 07:42, 9 March 2008
![](http://s9.addthis.com/button1-share.gif)
In mathematics, a fraction (from the Latin fractus, meaning broken) is a concept used to convey a proportional relation between a part and the whole. It consists of a numerator (an integer - the part) and a denominator (a natural number - the whole). For instance, the fraction Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{5} } can represent three equal parts of a whole object, if the object is divided into five equal parts. We can represent all rational numbers with fractions.
Fractions are a special case of ratios. For instance, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{e}{\pi} } is a valid ratio, but it is not a fraction since we cannot compute an equivalent fraction with an integer numerator and a natural number denominator. A fraction with equal numerator and denominator is equal to one (e.g., Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{5}{5} = 1 } ). Because the division by zero is undefined, zero should never be the denominator of a fraction.
Due to tradition and conventions, there are at least two ways to write a fraction. The numerator and the denominator may be separated by a slash (e.g., 3/4), or by a vinculum (e.g., Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{4}} ). Since we can compute the quotient from a fraction, we can represent any fraction with a decimal numeral (e.g., Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{5} = 3 \div 5 = 0.6 } ). Template:TOC-right
Forms
A vulgar fraction (or common fraction) simply refers to a numerator divided by a denominator (e.g., Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{5}{11}} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{4}{3}} ). It is said to be a proper fraction if the absolute value of the numerator is less than the absolute value of the denominator (e.g. Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{-5}{11}} ). An improper fraction (in Great Britain, top-heavy fraction) is said if the absolute value of the numerator is greater than or equal to the absolute value of the denominator (e.g. Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{4}{3}} ). All non-zero integers can be represented by an improper fraction, since for example Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 7 \div 1 = \frac{7}{1}} . The 1 at the denominator is sometimes called an "invisible denominator".
A mixed number is the sum of an integer and a proper fraction (e.g., Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 2 \frac{3}{4} = 2 + \frac{3}{4}} ). An improper fraction can be transformed into a mixed number and vice-versa.
Notation
There are many equivalent notations for a fraction.
The numerator and the denominator may be separated by a slash, sometimes called a solidus, a slanted line (e.g., 3/4), or by a vinculum, an horizontal line (e.g., Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{4}} ). In some contexts, it is clear that two numerals are the numerator and the denominator. They are written wthout any separator : a b (e.g., 3 4).
It is sometimes represented by a rectangular grid. We could represent Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{7}{12} } by this grid :
Special cases
- A vulgar fraction with a numerator of 1, e.g. Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{1}{7}} , is a unit fraction.
- An Egyptian fraction is the sum of distinct unit fractions, e.g. Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{7}{10} = \frac{1}{2} + \frac{1}{5}} .
- A decimal fraction is a vulgar fraction in which the denominator is a power of ten, e.g. Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{1}{1000}} .
- A dyadic fraction is a vulgar fraction in which the denominator is a power of two, e.g. Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{1}{16}} .
- An expression that has the form of a fraction but actually represents division by or into an irrational number is sometimes called an "irrational fraction". A common example found in trigonometry is Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \textstyle{\frac{\pi}{2}}} , the measure of a right angle in radians.
- A continued fraction is an expression such as Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_0 + \frac{3}{a_1 + \frac{5}{a_2 + ...}} } , where the Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_i\,} are integers.
- Rational functions are represented in the form of a fraction, where the numerator and denominator are polynomials. They are the quotient field of the polynomials.
- In algebra, some rational expressions (a fraction with an algebraic expression in the denominator) are written as the sum of other rational expressions with denominators of lesser degree. For instance, the rational expression Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \textstyle{2x \over (x^2-1)}} can be rewritten as the sum of two fractions : Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \textstyle{1 \over (x+1)}} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \textstyle{1 \over (x-1)}} . The decomposition is made of partial fractions.
Arithmetic operations
The most common arithmetic operations on fractions are addition, subtraction, multiplication, and division. When adding and subtracting, we must often compute the equivalent fractions. When dividing, we usually compute the multiplicative inverse. After any computation, the end result should be an irreducible fraction.
In this section, it is understood that Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a, b, c, d \in \mathbb{Z} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle b \neq 0, c \neq 0, d \neq 0 \,} .
Equivalent fractions
Multiplying (or integer dividing) the numerator and the denominator of a fraction by the same non-zero integer results in a new fraction that is said to be equivalent to the original fraction. For instance, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \tfrac{4}{20} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \tfrac{1}{5} } are equivalent, since the quotient of both fractions is 0.2.
A fraction where the numerator and the denominator do not have any common factor, 1 excepted, is said irreducible (or in its lowest terms). If it is not the case, then divide its numerator and its denominator by their gcd. For instance, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \tfrac{4}{20} } is not in lowest terms because both 4 and 20 can be exactly divided by 4, giving Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \tfrac{1}{5} } . In contrast, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \tfrac{3}{5} } is in lowest terms.
Multiplication
Formally, apply this algorithm to multiply the fractions Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{a}{b} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{c}{d} } :
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle e = gcd(ac, bd) \,}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{a}{b} \times \frac{c}{d} = \frac{ac \div e }{ bd \div e}}
By hands, the multiplication is done like this.
- For the resulting fraction,
- Set its numerator to the product of both numerators.
- Set its numerator to the product of both denominators.
- Reduce the resulting fraction if you need to.
For instance, what is the result of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{5} \times \frac{1}{3} } ?
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{4}{5} \times \frac{1}{6} = \frac{4 \times 1}{5 \times 6} }
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = \frac{4}{30} }
Since the result is not an irreducible fraction, we may reduce it. We divide the numerator and the denominator by their gcd, 2 :
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{4 \div 2}{30 \div 2} = \frac{2}{15} } .
Multiplicative inverse
The multiplicative inverse of a fraction is :
- .
Division
Dividing by a fraction is the same as multiplying by its inverse.
Formally, apply this algorithm to divide the fractions Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{a}{b} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{c}{d} } :
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle e = gcd(ad, bc) \,}
By hands, the division is done like this.
- Exchange the numerator and the denominator in the second fraction (equivalent to computing the multiplicative inverse).
- For the resulting fraction,
- Set its numerator to the product of both numerators.
- Set its numerator to the product of both denominators.
- Reduce the resulting fraction if you need to.
For instance, what is the result of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{5} \div \frac{1}{4} } ?
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{3}{5} \div \frac{1}{4} = \frac{3}{5} \times \frac{4}{1} = \frac{3 \times 4}{5 \times 1} }
The result is an irreducible fraction.
Additive inverse
The additive inverse of a fraction is :
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle - \left( \frac{a}{b} \right) = \frac{-a}{b} = \frac{a}{-b} }
Addition
Formally, apply this algorithm to add the fractions Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{a}{b} } and :
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle e = gcd(ad+bc, bd) \,}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{a}{b} + \frac{c}{d} = \frac{(ad+bc) \div e }{ bd \div e}}
By hands, the addition is done like this.
- Compute an equivalent fraction of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{a}{b} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{c}{d} } , making sure both have the same denominator.
- For the resulting fraction,
- Set its numerator to the addition of the numerators.
- Set its denominator to the computed denominator (the three fractions have the same denominator).
- Reduce the resulting fraction if you need to.
For instance, what is the result of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{4} + \frac{1}{3} } ?
Let's find a number that both denominators will divide : It is 12. We are ready to compute the equivalent fractions :
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{3}{4} + \frac{1}{3} = \frac{3 \times 3}{4 \times 3} + \frac{1 \times 4}{3 \times 4} = \frac{9}{12} + \frac{4}{12} }
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = \frac{13}{12} }
This is the final answer since it is an irreducible fraction.
Subtraction
Formally, apply this algorithm to subtract the fractions Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{a}{b} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{c}{d} } :
By hands, the subtraction is done like this.
- Compute an equivalent fraction of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{a}{b} } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{c}{d} } , making sure both have the same denominator.
- For the resulting fraction,
- Set its numerator to the subtraction of the numerators.
- Set its denominator to the computed denominator (the three fractions have the same denominator).
- Reduce the resulting fraction if you need to.
Since this algorithm is very similar to the addition algorithm, we do not give any example.
Improper fraction to mixed number
An improper fraction can be converted to a mixed number with this algorithm :
- Integer divide the numerator by the denominator.
- The quotient becomes the whole part and the remainder becomes the numerator of the fractional part.
- The fraction has the same denominator.
For instance, transform Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{11}{4} } to a mixed number.
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 11 = 2 \times 4 + 3 = 8 + 3 \,}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{11}{4} = \frac{8}{4} + \frac{3}{4}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = 2 + \frac{3}{4}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = 2 \frac{3}{4}}
Mixed number to improper fraction
A mixed number can be converted to an improper fraction with this algorithm :
- Insert a plus symbol between the integer and the fraction.
- Replace the integer with its equivalent fraction on 1.
- Add both fractions.
For instance, transform Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 2 \frac{3}{4} } to an improper fraction.
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 2 \frac{3}{4} = 2 + \frac{3}{4}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = \frac{2}{1} + \frac{3}{4}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = \frac{2 \times 4}{1 \times 4} + \frac{3}{4}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = \frac{8}{4} + \frac{3}{4}}
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle = \frac{11}{4}}
Mixed numbers arithmetic
Just like any fraction, we can add, subtract, multiply, and divide mixed numbers. However, before applying the operation, convert the mixed numbers to improper fraction, or you may get wrong results.
For instance, what is the sum of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{1}{3}} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle -2 \frac{3}{4}} ? The minus sign applies to the fraction Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{3}{4}} : Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle -2 \frac{3}{4} = -\left(2 \frac{3}{4}\right) = -\left(2 + \frac{3}{4}\right) = -2 - \frac{3}{4} } . The answer is Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle -\frac{29}{12}} or Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle -2 \frac{5}{12}} .
Decimal numerals to fractions
In many cases, it is easier to work with decimal numerals, but they lack precision compared to fractions. Sometimes an infinite number of decimals is required to convey the same kind of precision. Thus, it is often useful to convert decimal numerals into fractions.
Before going any further in this section, we need to observe a property of the decimal numerals. For instance, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \frac{1}{3} = 0.3333... = 0.\overline{3}} The infinite expansion is composed of 3s. For square root of 2, we have Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle \sqrt{2} = 1.4142...} . The infinite expansion is composed of different digits without any repeated pattern. For 4.35, we have Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 4.35000... = 4.35\overline{0}} The infinite expansion is composed of zeroes, but they are not written down by convention. Thus, all numbers written in decimal notation have an infinite decimal expansion.
Because of this observation, we only need to use two algorithms to convert decimal numerals to fractions. In the decimal expansion,
- there is a repeating pattern.
- there is no repeating pattern.
Repeating pattern algorithm
- Excluding any repeated pattern, count the number of digits after the decimal separator (p) in the decimal numeral n.
- Compute Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 10^p \times n \,}
- Including the first repeated pattern, count the number of digits after the decimal separator (q) in the decimal numeral n.
- Compute Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 10^q \times n \,}
- Write the equation Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle 10^q \times a - 10^p \times a = 10^q \times n - 10^p \times n \,} , where a is unknown.
- Isolate a, the fraction to find.
For instance, convert 7.85891891891... to a fraction.
- m is equal to 2
- 102 = 100
- 7.85891891891... × 100 = 785.891891891...
- n is equal to 5
- 105 = 100000
- 7.85891891891... × 100000 = 785891.891891...
- 100000 × a - 100 × a = 785891.891891... - 785.891891891...
- 99900 × a = 785106
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle a = \frac{785106}{99900}}
- ...
For instance, convert 4.37 to a fraction.
- m is equal to 2.
- 102 = 100
- 4.37000... × 100 = 437.000...
- n is equal to 3.
- 103 = 1000
- 4.37000... × 1000 = 4370.00...
- 1000 × a - 100 × a = 4370.00... - 437.000...
- 900 × a = 3933
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \scriptstyle a = \frac{3933}{900}}
- ...
Non-repeating pattern algorithm
The conversion is done using observation and needs.
If the decimal numeral n is a multiple of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3.14159} (a truncated value of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \pi} ), then solve Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n = k \times 3.14159} , where k is the multiple to find. If the constant is unknown, then truncate the decimal expansion to needed precision. Convert the new numeral using repeating pattern algorithm.