diff --git a/exercises/converting_repeating_decimals_to_fractions_1.html b/exercises/converting_repeating_decimals_to_fractions_1.html index 07e615470..a7371cdd3 100644 --- a/exercises/converting_repeating_decimals_to_fractions_1.html +++ b/exercises/converting_repeating_decimals_to_fractions_1.html @@ -7,40 +7,70 @@
Rewrite as a simplified fraction.
+Rewrite as a simplified fraction.
\large{N1.\overline{N2} = {?}}
N4
+Let x equal the decimal. Set up two equations such that the digits after the decimal point are identical.
\large{\begin{align*}MULT1x &= RES1...\\
+ MULT2x &= RES2...\end{align*}}
Subtracting the two equations, we have:
+\large{(MULT1 - MULT2)x = DIFF}
\large{x = fraction( DIFF, MULT1 - MULT2 )}\quad \text{or} \quad\large{mixedFractionFromImproper( DIFF, MULT1 - MULT2 )}
\large{x = fraction( toFraction( N4 )[ 0 ], toFraction( N4 )[ 1 ])}\quad \text{or} \quad\large{mixedFractionFromImproper( toFraction( N4 )[ 0 ], toFraction( N4 )[ 1 ] )}
Let x equal the decimal. Set up two equations such that the digits after the decimal point are identical.
\large{\begin{align*}MULT1x &= RES1...\\
- MULT2x &= RES2...\end{align*}}
Subtracting the two equations, we have:
-\large{(MULT1 - MULT2)x = DIFF}
Rewrite as a decimal. Give the first 10 digits.
+\large{NUMERATOR/DENOMINATOR = {?}}
DEC_SOL
+ +Divide the numerator by the denominator so we only have to work with the remainder, which will be easier. Remember the quotient!
+ +Divide NUMERATOR by DENOMINATOR. You should find that one digit keeps on repeating.
+ +Don't forget to add the quotient before the period.
+ +The answer is DEC_SOL
+\large{x = fraction( DIFF, MULT1 - MULT2 )}\quad \text{or} \quad\large{mixedFractionFromImproper( DIFF, MULT1 - MULT2 )}
\large{x = fraction( toFraction( N4 )[ 0 ], toFraction( N4 )[ 1 ])}\quad \text{or} \quad\large{mixedFractionFromImproper( toFraction( N4 )[ 0 ], toFraction( N4 )[ 1 ] )}