# Khan/khan-exercises

Re-run the linter on the exercises.

1 parent 4e7297f commit 7041f1ba3399cfb8c19090cb44a41bf1eee4c6af jeresig committed Apr 23, 2013
Showing with 2,722 additions and 2,451 deletions.
1. +1 −1 build/lint_i18n_strings.py
2. +9 −7 exercises/absolute_value.html
3. +12 −18 exercises/absolute_value_equations.html
4. +8 −6 exercises/absolute_value_of_complex_numbers.html
28. +13 −10 exercises/age_word_problems.html
29. +14 −10 exercises/age_word_problems_alternative.html
30. +4 −2 exercises/alternate_exterior_angles.html
31. +6 −6 exercises/alternate_exterior_angles_2.html
32. +4 −2 exercises/alternate_interior_angles.html
33. +6 −6 exercises/alternate_interior_angles_2.html
35. +8 −6 exercises/angle_bisector_theorem.html
36. +4 −2 exercises/angle_types.html
37. +118 −120 exercises/angles_1.html
38. +4 −5 exercises/angles_2.html
39. +4 −3 exercises/angles_of_a_polygon.html
40. +4 −5 exercises/area_1.html
41. +4 −5 exercises/area_of_a_circle.html
42. +4 −2 exercises/area_of_parallelograms.html
43. +4 −10 exercises/area_of_squares_and_rectangles.html
44. +4 −8 exercises/area_of_triangles_1.html
45. +4 −2 exercises/areas_of_circles_and_sectors.html
46. +4 −2 exercises/areas_of_trapezoids_rhombi_and_kites.html
47. +5 −4 exercises/arithmetic_sequences_1.html
48. +8 −6 exercises/arithmetic_sequences_2.html
49. +9 −7 exercises/arithmetic_series.html
50. +4 −45 exercises/arithmetic_word_problems.html
51. +4 −38 exercises/arithmetic_word_problems_1.html
52. +4 −23 exercises/arithmetic_word_problems_2.html
53. +4 −2 exercises/average_word_problems.html
54. +5 −3 exercises/axis_of_symmetry.html
55. +81 −77 exercises/balancing_chemical_equations.html
56. +9 −25 exercises/basic_set_notation.html
57. +6 −4 exercises/binomial_expansion.html
58. +5 −3 exercises/chain_rule_1.html
59. +4 −2 exercises/circles_and_arcs.html
60. +7 −5 exercises/coin_flip_sequences.html
61. +9 −6 exercises/combinations_1.html
62. +12 −10 exercises/combining_like_terms_1.html
63. +34 −32 exercises/combining_like_terms_2.html
64. +4 −2 exercises/comparing_absolute_values.html
65. +8 −17 exercises/comparing_fractions_1.html
66. +6 −4 exercises/comparing_fractions_2.html
67. +9 −6 exercises/comparing_improper_fractions_and_mixed_numbers.html
68. +4 −2 exercises/complementary_and_supplementary_angles.html
69. +4 −2 exercises/complementary_angles.html
70. +7 −5 exercises/completing_the_square_1.html
71. +11 −9 exercises/completing_the_square_2.html
72. +11 −9 exercises/complex_number_polar_form_intuition.html
73. +13 −11 exercises/complex_plane_operations.html
74. +4 −2 exercises/composite_numbers.html
75. +36 −34 exercises/compound_inequalities.html
76. +4 −2 exercises/conditional_statements_2.html
77. +5 −3 exercises/conditional_statements_and_truth_value.html
78. +17 −15 exercises/congruency_postulates.html
79. +5 −3 exercises/congruent_angles.html
80. +7 −5 exercises/congruent_segments.html
81. +10 −8 exercises/congruent_triangles_1.html
82. +4 −2 exercises/congruent_triangles_2.html
83. +33 −22 exercises/constructions_1.html
84. +6 −4 exercises/converse_inverse_and_contrapositive.html
85. +11 −9 exercises/converting_between_point_slope_and_slope_intercept.html
86. +11 −9 exercises/converting_between_point_slope_and_standard_form.html
87. +7 −5 exercises/converting_between_slope_intercept_and_standard_form.html
88. +6 −4 exercises/converting_decimals_to_fractions_1.html
89. +6 −4 exercises/converting_decimals_to_fractions_2.html
90. +4 −2 exercises/converting_decimals_to_percents.html
91. +5 −3 exercises/converting_fractions_to_decimals.html
92. +4 −2 exercises/converting_mixed_numbers_and_improper_fractions.html
93. +4 −2 exercises/converting_percents_to_decimals.html
94. +8 −6 exercises/converting_repeating_decimals_to_fractions_1.html
95. +9 −7 exercises/converting_repeating_decimals_to_fractions_2.html
96. +36 −34 exercises/converting_temperatures.html
97. +4 −2 exercises/corresponding_angles.html
98. +6 −6 exercises/corresponding_angles_2.html
99. +11 −8 exercises/counting_1.html
100. +17 −14 exercises/counting_1_alternative.html
101. +8 −5 exercises/counting_2.html
102. +4 −5 exercises/creating_bar_charts_1.html
103. +11 −9 exercises/creating_box_and_whisker_plots.html
104. +11 −9 exercises/cube_roots.html
105. +4 −4 exercises/decimals_on_the_number_line_1.html
106. +11 −9 exercises/decimals_on_the_number_line_2.html
107. +18 −16 exercises/defined_and_undefined_matrix_operations.html
109. +9 −27 exercises/dependent_probability.html
110. +9 −7 exercises/derivative_intuition.html
111. +9 −7 exercises/derivatives_1.html
112. +4 −3 exercises/dice_probability.html
113. +8 −6 exercises/direct_and_inverse_variation.html
114. +4 −2 exercises/discount_tax_and_tip_word_problems.html
115. +16 −14 exercises/distance_between_point_and_line.html
116. +17 −13 exercises/distance_formula.html
117. +4 −2 exercises/distributive_property.html
118. +14 −11 exercises/dividing_complex_numbers.html
119. +5 −3 exercises/dividing_decimals.html
120. +6 −4 exercises/dividing_decimals_0.5.html
121. +5 −3 exercises/dividing_decimals_1.html
122. +5 −3 exercises/dividing_decimals_2.html
123. +6 −4 exercises/dividing_fractions.html
124. +6 −4 exercises/dividing_fractions_0.5.html
125. +8 −6 exercises/dividing_fractions_alternative.html
126. +4 −2 exercises/dividing_fractions_word_problems.html
127. +5 −5 exercises/dividing_polynomials_by_binomials_1.html
128. +4 −2 exercises/dividing_polynomials_by_binomials_2.html
129. +8 −6 exercises/dividing_polynomials_by_binomials_3.html
130. +5 −3 exercises/divisibility.html
131. +6 −4 exercises/divisibility_0.5.html
132. +4 −4 exercises/divisibility_intuition.html
133. +15 −10 exercises/divisibility_tests.html
134. +6 −4 exercises/division_0.5.html
135. +5 −3 exercises/division_1.5.html
136. +6 −4 exercises/division_1.html
137. +5 −3 exercises/division_2.html
138. +5 −3 exercises/division_3.html
139. +5 −3 exercises/division_4.html
140. +9 −7 exercises/domain_and_range_0.5.html
141. +33 −31 exercises/domain_of_a_function.html
142. +4 −6 exercises/empirical_rule.html
143. +4 −2 exercises/equation_of_a_circle_1.html
144. +4 −2 exercises/equation_of_a_circle_2.html
145. +8 −6 exercises/equation_of_a_hyperbola.html
146. +3 −2 exercises/equation_of_a_line.html
147. +4 −2 exercises/equation_of_an_ellipse.html
148. +6 −4 exercises/equivalent_fractions.html
149. +9 −7 exercises/equivalent_fractions_2.html
150. +17 −15 exercises/equivalent_fractions_3.html
151. +4 −2 exercises/estimation_with_decimals.html
152. +7 −3 exercises/evaluating_expressions_1.html
153. +12 −4 exercises/evaluating_expressions_2.html
154. +17 −14 exercises/even_and_odd_functions.html
155. +5 −4 exercises/expected_value.html
156. +11 −9 exercises/exploring_angle_pairs_1.html
157. +13 −9 exercises/exploring_mean_and_median.html
158. +8 −6 exercises/exploring_standard_deviation_1.html
159. +5 −3 exercises/exponent_rules.html
160. +10 −7 exercises/exponents_1.html
161. +7 −5 exercises/exponents_2.html
162. +14 −12 exercises/exponents_2_alternative.html
163. +7 −5 exercises/exponents_3.html
164. +13 −10 exercises/exponents_4.html
165. +4 −3 exercises/expressing_ratios_as_fractions.html
166. +5 −3 exercises/expressions_with_unknown_variables.html
167. +5 −3 exercises/expressions_with_unknown_variables_2.html
168. +4 −2 exercises/factor_expressions_by_grouping.html
169. +5 −3 exercises/factoring_difference_of_squares_1.html
170. +5 −3 exercises/factoring_difference_of_squares_2.html
171. +5 −3 exercises/factoring_difference_of_squares_3.html
172. +8 −6 exercises/factoring_linear_binomials.html
173. +4 −2 exercises/factoring_polynomials_1.html
174. +4 −2 exercises/factoring_polynomials_1_solution_only.html
175. +4 −2 exercises/factoring_polynomials_1_steps_only.html
176. +5 −3 exercises/factoring_polynomials_1_video_hint.html
177. +8 −6 exercises/factoring_polynomials_2.html
178. +13 −11 exercises/factoring_polynomials_by_grouping_1.html
179. +9 −7 exercises/factoring_polynomials_with_two_variables.html
180. +6 −22 exercises/fraction_word_problems_1.html
181. +10 −8 exercises/fractions_cut_and_copy_1.html
182. +13 −11 exercises/fractions_cut_and_copy_2.html
183. +4 −3 exercises/fractions_on_the_number_line_1.html
184. +16 −14 exercises/fractions_on_the_number_line_2.html
185. +16 −14 exercises/fractions_on_the_number_line_3.html
186. +10 −8 exercises/functions_1.html
187. +5 −3 exercises/functions_2.html
188. +6 −4 exercises/functions_3.html
189. +4 −2 exercises/geometric_sequences_1.html
190. +8 −6 exercises/geometric_sequences_2.html
191. +4 −2 exercises/geometry_proofs_1.html
192. +9 −7 exercises/geometry_proofs_2.html
193. +13 −11 exercises/geometry_proofs_intro.html
194. +6 −3 exercises/graphing_circles.html
195. +15 −9 exercises/graphing_circles_2.html
196. +6 −10 exercises/graphing_inequalities.html
197. +6 −10 exercises/graphing_inequalities_2.html
198. +5 −5 exercises/graphing_linear_equations.html
199. +5 −3 exercises/graphing_parabolas_0.5.html
200. +8 −6 exercises/graphing_parabolas_1.html
201. +8 −6 exercises/graphing_parabolas_2.html
202. +8 −6 exercises/graphing_points.html
203. +16 −14 exercises/graphing_points_2.html
204. +4 −10 exercises/graphing_systems_of_equations.html
205. +8 −18 exercises/graphing_systems_of_inequalities.html
206. +8 −18 exercises/graphing_systems_of_inequalities_2.html
207. +7 −9 exercises/graphs_of_inequalities.html
208. +16 −11 exercises/graphs_of_sine_and_cosine.html
209. +6 −4 exercises/greatest_common_divisor.html
210. +15 −13 exercises/greatest_common_divisor_alternative.html
211. +4 −2 exercises/herons_formula.html
212. +4 −5 exercises/ideal_stoichiometry.html
213. +8 −6 exercises/identifying_points_1.html
214. +8 −6 exercises/identifying_points_2.html
215. +6 −5 exercises/imaginary_unit_powers.html
216. +6 −15 exercises/independent_probability.html
217. +14 −12 exercises/inequalities_on_a_number_line.html
218. +4 −2 exercises/inscribed_angles_1.html
219. +5 −3 exercises/inscribed_angles_2.html
220. +4 −2 exercises/inscribed_angles_3.html
221. +7 −5 exercises/integer_sums.html
222. +18 −14 exercises/interesting_perimeter_problems.html
223. +4 −3 exercises/interpreting_linear_equations.html
224. +11 −9 exercises/inverse_trig_functions.html
225. +13 −10 exercises/inverses_of_functions.html
226. +34 −34 exercises/khan-exercise.html
227. +80 −45 exercises/khan-site.html
228. +16 −15 exercises/law_of_cosines.html
229. +13 −12 exercises/law_of_sines.html
230. +4 −2 exercises/least_common_multiple.html
231. +14 −65 exercises/least_common_multiple_and_greatest_common_divisor_word_problems.html
232. +8 −10 exercises/lhopitals_rule.html
233. +4 −16 exercises/limiting_reagent_stoichiometry.html
234. +26 −24 exercises/limits_1.html
235. +7 −8 exercises/limits_2.html
236. +14 −12 exercises/line_graph_intuition.html
237. +20 −18 exercises/line_relationships.html
238. +5 −5 exercises/linear_equation_word_problems.html
239. +4 −2 exercises/linear_equations_1.html
240. +5 −4 exercises/linear_equations_2.html
241. +6 −6 exercises/linear_equations_3.html
242. +7 −8 exercises/linear_equations_4.html
243. +5 −4 exercises/linear_inequalities.html
244. +5 −5 exercises/logarithms_1.5.html
245. +5 −3 exercises/logarithms_1.html
246. +5 −3 exercises/logarithms_2.html
247. +12 −10 exercises/logical_arguments_deductive_reasoning.html
248. +11 −6 exercises/markup_and_commission_word_problems.html
250. +4 −2 exercises/matrix_determinant_2x2.html
251. +5 −3 exercises/matrix_determinant_2x2_video_hint.html
252. +4 −2 exercises/matrix_determinant_3x3.html
253. +5 −3 exercises/matrix_determinant_3x3_video_hint.html
254. +9 −7 exercises/matrix_dimensions.html
255. +7 −5 exercises/matrix_inverse_2x2.html
256. +7 −5 exercises/matrix_inverse_3x3.html
257. +7 −5 exercises/matrix_transpose.html
258. +8 −6 exercises/mean_median_and_mode.html
259. +7 −5 exercises/measuring_angles.html
260. +4 −2 exercises/measuring_segments.html
261. +12 −10 exercises/midpoint_formula.html
262. +9 −7 exercises/midpoint_of_a_segment.html
263. +6 −4 exercises/multiplication_0.5.html
264. +6 −4 exercises/multiplication_1.5.html
265. +7 −5 exercises/multiplication_1.html
266. +6 −4 exercises/multiplication_2.html
267. +6 −4 exercises/multiplication_3.html
268. +5 −3 exercises/multiplication_4.html
269. +7 −5 exercises/multiplying_a_matrix_by_a_matrix.html
270. +7 −5 exercises/multiplying_a_matrix_by_a_vector.html
271. +21 −19 exercises/multiplying_and_dividing_complex_number_polar_forms.html
272. +11 −9 exercises/multiplying_and_dividing_negative_numbers.html
273. +8 −6 exercises/multiplying_and_dividing_rational_expressions_1.html
274. +7 −5 exercises/multiplying_and_dividing_scientific_notation.html
275. +7 −5 exercises/multiplying_complex_numbers.html
276. +6 −4 exercises/multiplying_decimals.html
277. +5 −3 exercises/multiplying_expressions_0.5.html
278. +5 −3 exercises/multiplying_expressions_1.html
279. +19 −17 exercises/multiplying_fractions.html
280. +14 −15 exercises/multiplying_fractions_0.5.html
281. +4 −2 exercises/multiplying_fractions_by_integers.html
282. +4 −2 exercises/multiplying_fractions_word_problems.html
283. +7 −4 exercises/multiplying_mixed_numbers_1.html
284. +11 −9 exercises/multiplying_polynomials.html
286. +20 −33 exercises/multistep_equations_with_distribution.html
287. +4 −4 exercises/negative_number_word_problems.html
288. +6 −4 exercises/new_definitions_1.html
289. +4 −6 exercises/new_definitions_2.html
290. +4 −3 exercises/number_line.html
291. +4 −4 exercises/number_line_2.html
292. +5 −6 exercises/number_line_3.html
293. +6 −3 exercises/number_properties_terminology_1.html
294. +24 −14 exercises/one_step_equation_intuition.html
295. +17 −18 exercises/one_step_equations.html
296. +8 −10 exercises/one_step_equations_0.5.html
297. +14 −12 exercises/one_step_inequalities.html
298. +4 −2 exercises/order_of_operations.html
299. +4 −2 exercises/ordering_fractions.html
300. +5 −3 exercises/ordering_improper_fractions_and_mixed_numbers.html
Sorry, we could not display the entire diff because too many files (450) changed.
2 build/lint_i18n_strings.py
 @@ -376,7 +376,7 @@ def process_node(self, orig_node): if len(self.match_keys) > 1: self.errors.append("Contains too many different keys (%s):\n%s" % ( ", ".join(self.match_keys), - extract_strings.get_outerhtml(node))) + extract_strings.get_outerhtml(orig_node))) return orig_node # Only continue if there are keys to process
16 exercises/absolute_value.html
 @@ -1,14 +1,15 @@ - + + Finding absolute values
-
- rand(5) > 0 ? randRange( 1, 9 ) : 0 - rand(3) > 0 ? "." + randRange(1, 9) : "" +
+ rand(5) > 0 ? randRange( 1, 9 ) : 0 + rand(3) > 0 ? "." + randRange(1, 9) : "" randFromArray(["", "-"])
@@ -39,13 +40,14 @@ numberLine( start, end ); style({ stroke: "#6495ED", fill: "#6495ED" }); graph.pt = circle( [ x, 0 ], 0.15 ); - style({ stroke: "#FFA500", fill: "#FFA500", strokeWidth: 3.5, arrows: "->" }); + style({ stroke: "#FFA500", fill: "#FFA500", strokeWidth: 3.5, arrows: "->" }); path( [ [ originX, 0 ], [ x, 0 ] ] ); circle( [ originX, 0 ], 0.10 ); graph.pt.toFront();

The distance from 0 to SIGN + INT + FRAC is INT + FRAC, which equals the absolute value.

-

In other words, INT + FRAC is the non-negative version of SIGN + INT + FRAC.

+

In other words, INT + FRAC is the non-negative version of SIGN + INT + FRAC.

- + +
30 exercises/absolute_value_equations.html
 @@ -1,5 +1,6 @@ - + + Absolute value equations @@ -107,7 +108,7 @@
-

+

Subtract \red{abs(C)|x + E|} @@ -120,7 +121,6 @@ to both sides:

-

\qquad\begin{eqnarray} A|x + E| + B &=& @@ -136,7 +136,7 @@

-

+

Subtract \red{abs(B)} from both sides: @@ -145,7 +145,6 @@ \red{abs(B)} to both sides:

-

\qquad\begin{eqnarray} A - C|x + E| + B &=& D \\ \\ @@ -200,7 +199,7 @@

-

+

Subtract \red{abs(E)} from both @@ -211,7 +210,6 @@ to both sides:

-

\qquad\begin{eqnarray} x + E &=& -SIMPLIFIED \\ \\ @@ -251,7 +249,7 @@

-

+

Subtract \red{abs(E)} from both @@ -262,7 +260,6 @@ to both sides:

-

\qquad\begin{eqnarray} x + E &=& SIMPLIFIED \\ \\ @@ -296,7 +293,7 @@

-

+

Subtract \red{A|x + E|} @@ -309,7 +306,6 @@ to both sides:

-

\qquad\begin{eqnarray} A|x + E| + B &=& @@ -324,7 +320,7 @@

-

+

Subtract abs(D) from both sides: @@ -333,7 +329,6 @@ abs(D) to both sides:

-

\qquad\begin{eqnarray} B &=& C - A|x + E| + @@ -389,7 +384,7 @@

-

+

Subtract \red{abs(E)} from both @@ -400,7 +395,6 @@ to both sides:

-

\qquad\begin{eqnarray} - SIMPLIFIED &=& x + E \\ \\ @@ -440,7 +434,7 @@

-

+

Subtract \red{abs(E)} from both @@ -451,7 +445,6 @@ to both sides:

-

\qquad\begin{eqnarray} SIMPLIFIED &=& x + E \\ \\ @@ -501,4 +494,5 @@

- + +
14 exercises/absolute_value_of_complex_numbers.html
 @@ -1,6 +1,7 @@ - - + + + Absolute value of complex numbers @@ -76,8 +77,8 @@

- Substituting into the Pythagorean theorem:
- \qquad |REPRESENTATION|^2 = abs( REAL )^2 + abs( IMAG )^2, so
+ Substituting into the Pythagorean theorem:
+ \qquad |REPRESENTATION|^2 = abs( REAL )^2 + abs( IMAG )^2, so
\qquad |REPRESENTATION| = \sqrt{abs( REAL )^2 + abs( IMAG )^2}.

@@ -86,11 +87,12 @@

Simplifying the radical gives formattedSquareRootOf( ABS_SQUARE ). That is the absolute value of REPRESENTATION.

-

+

The radical cannot be simplified. The absolute value of REPRESENTATION is \sqrt{ABS_SQUARE}.

- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting complex numbers @@ -48,7 +49,6 @@

Subtract the following complex numbers:

-

(A_REP_COLORED) OPERATOR (B_REP_COLORED) @@ -97,4 +97,5 @@

- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting decimals word problems @@ -266,4 +267,5 @@ - + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting fractions @@ -36,8 +37,7 @@

fraction( N1 * F1, LCM ) + fraction( N2 * F2, LCM ) = {?}

-

Subtract the numerators.

- +

Subtract the numerators.

fraction( F1 * N1 + F2 * N2, LCM)

@@ -46,4 +46,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting negative numbers @@ -31,7 +32,7 @@ "right" ); -
+
REMOVE = label( [0, -1], @@ -45,7 +46,7 @@
style({ stroke: "#28AE7B", - arrows: "->" + arrows: "->" }, function(){ path( [ [ 1 + A - START, -2 ], [ 1 + ANSWER - START, -2] ] ); }); @@ -81,7 +82,7 @@ "right" );
-
+
REMOVE = label( [0, -1], @@ -95,7 +96,7 @@
style({ stroke: "#28AE7B", - arrows: "->" + arrows: "->" }, function(){ path( [ [ 1 + A - START, -2 ], [ 1 + ANSWER - START, -2] ] ); }); @@ -114,4 +115,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting polynomials @@ -39,7 +40,7 @@ [ BLUE, ORANGE, GREEN ] 7 randRangeUniqueNonZero( 0, MAX_DEGREE, randRange(2, 3) ).sort().reverse() - tabulate( function() { + tabulate( function() { var coefs = []; for ( var i = 0; i <= MAX_DEGREE; i++ ) { var value = 0; @@ -102,7 +103,7 @@

Identify like terms.

-

( POL.coefs[ index ] < 0 ) ? "-" : ( n === 0 && POL === POL_1 ) ? "" : "+"\color{COLORS[ n ]}{abs( POL.coefs[ index ] ) === 1 ? "" : abs( POL.coefs[ index ] )X^index}

+

( POL.coefs[ index ] < 0 ) ? "-" : ( n === 0 && POL === POL_1 ) ? "" : "+"\color{COLORS[ n ]}{abs( POL.coefs[ index ] ) === 1 ? "" : abs( POL.coefs[ index ] )X^index}

@@ -115,4 +116,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting radicals @@ -83,8 +84,8 @@ pow( A_COEFF, 2 ) * NUM pow( B_COEFF, 2 ) * NUM pow( C_COEFF, 2 ) * NUM - B_COEFF > 0 ? "+" : "-" - C_COEFF > 0 ? "+" : "-" + B_COEFF > 0 ? "+" : "-" + C_COEFF > 0 ? "+" : "-"

Simplify the following expression:

\sqrt{A}B_SIGN\sqrt{B}C_SIGN\sqrt{C}

@@ -106,4 +107,5 @@ - + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting with like denominators @@ -69,8 +70,8 @@
-
+
Y = @@ -82,7 +83,7 @@ a
- + - + @@ -131,4 +132,5 @@ - + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting with like denominators @@ -46,18 +47,18 @@
-
Y=
Y= NUMERSOL.regex()
- DENOMSOL + DENOMSOL
- + + - + @@ -76,8 +77,8 @@
-
Y=
Y= NUMERSOL
- + + @@ -87,7 +88,7 @@ DENOMSOL.regex() - + @@ -105,7 +106,7 @@

Y = \dfrac{NUMERATOR1 SIGN NUMERATOR2}{DENOMINATOR}

-
+

Y = \dfrac{NUMERATOR1 SIGN (NUMERATOR2)}{DENOMINATOR}

@@ -115,9 +116,10 @@

Simplify by dividing numerator and denominator by FACTOR:

-

Y = \dfrac{NUMERSOL}{DENOMSOL}

-

Y = NUMERSOL

+

Y = \dfrac{NUMERSOL}{DENOMSOL}

+

Y = NUMERSOL

- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting with like denominators @@ -84,8 +85,8 @@
-
+
Y = @@ -97,7 +98,7 @@ a
- + - + @@ -113,7 +114,7 @@

Since the expressions have the same denominator we simply combine the numerators:

Y = \dfrac{NUMERATOR1 + NUMERATOR2}{DENOMINATOR}

-
+

Since the expressions have the same denominator we simply combine the numerators:

Y = \dfrac{NUMERATOR1 - (NUMERATOR2)}{DENOMINATOR}

@@ -128,4 +129,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding and subtracting with like denominators 2 @@ -97,8 +98,8 @@
-
+
Y = @@ -110,13 +111,13 @@ a
- + - +
-

In order to addsubtract expressions, +

In order to addsubtract expressions, they must have a common denominator.

The smallest common denominator is the least common multiple of D1 and D2.

\lcm(D1, D2) = DENOMINATOR

@@ -133,4 +134,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding decimals @@ -49,9 +50,10 @@ graph.adder.show(); graph.adder.showDecimals(A_DECIMAL, B_DECIMAL); -
+
- + +
 @@ -1,5 +1,6 @@ - + + Adding decimals 0.5 @@ -47,9 +48,10 @@ graph.adder.show(); graph.adder.showDecimals( A_DECIMAL, B_DECIMAL ); -
+
- + +
 @@ -1,5 +1,6 @@ - + + Adding decimals 2 @@ -47,9 +48,10 @@ graph.adder.show(); graph.adder.showDecimals( A_DECIMAL, B_DECIMAL ); -
+
- + +
 @@ -1,5 +1,6 @@ - + + Adding fractions @@ -28,7 +29,7 @@

N1 / D1 + N2 / D2

-
+
1 2 @@ -67,4 +68,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding fractions with common denominators @@ -17,10 +18,10 @@

fraction( N1, D ) + fraction( N2, D ) = {?}

-
( N1 + N2 ) / D
+
( N1 + N2 ) / D
-
+
1 1 @@ -56,4 +57,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding negative numbers @@ -31,7 +32,7 @@ "right" ); -
+
REMOVE = label( [0, -2], @@ -45,7 +46,7 @@
style({ stroke: "#28AE7B", - arrows: "->" + arrows: "->" }, function(){ path( [ [ 1 + A - START, -3 ], [ 1 + ANSWER - START, -3] ] ); }); @@ -64,4 +65,5 @@
- + +
 @@ -1,5 +1,6 @@ - + + Adding subtracting mixed numbers 0.5 @@ -15,11 +16,11 @@ randRange( 2, 19 ) ( PM === 1 ? randRange( 1, 19 ) : randRange( -W1 + 1, -1 )) -
+
randRange( 3, 20 ) randRange( 3, 20 )
-
+
randRange( 1, D1 - 1 ) randRange( 1, D2 - 1 )
@@ -52,12 +53,12 @@
-

+

=W1 + W2 + \blue{fraction( N1, D1 )} SIGN \pink{fraction( N2, D2 )}

-

+

= expr(["+", W1 + W2, fraction( N1 + PM * N2, D2 )])

@@ -66,7 +67,7 @@

= W1 + W2 + fraction( SIMP_N1 * LCM / SIMP_D1 + PM * SIMP_N2 * LCM / SIMP_D2, LCM )

-
+

Simplify to lowest terms:

= W1 + W2 + fractionReduce( SIMP_N1 * LCM / SIMP_D1 + PM * SIMP_N2 * LCM / SIMP_D2, LCM )

@@ -109,23 +110,25 @@

= \blue{W1} SIGN \pink{abs( W2 )} + \blue{fraction( N1, D1 )} SIGN \pink{fraction( N2, D2 )}

-

+

=W1 + W2 + \blue{fraction( N1, D1 )} SIGN \pink{fraction( N2, D2 )}

-

+

= expr(["+", W1 + W2, fraction( N1 + PM * N2, D2 )])

Combine the whole and fractional parts into a mixed number:

= W1 + W2 + fraction( N1 - N2, D2)

-
+

Simplify to lowest terms:

= W1 + W2 + fractionReduce( N1 - N2 , LCM )

- + + +
 @@ -1,5 +1,6 @@ - + + Adding subtracting mixed numbers 1 @@ -15,11 +16,11 @@ randRange( 2, 19 ) ( PM === 1 ? randRange( 1, 19 ) : randRange( -W1 + 1, -1 )) -
+
randRange( 3, 20 ) randRange( 3, 20 )
-
+
randRange( 1, D1 - 1 ) randRange( 1, D2 - 1 )
@@ -52,7 +53,7 @@
-

+

=W1 + W2 + \blue{fraction( N1, D1 )} SIGN \pink{fraction( N2, D2 )}

@@ -67,7 +68,7 @@
-

+

= expr(["+", W1 + W2, fraction( SIMP_N1 * LCM / SIMP_D1 + PM * SIMP_N2 * LCM / SIMP_D2, LCM )])

@@ -76,7 +77,7 @@

= W1 + W2 + fraction( SIMP_N1 * LCM / SIMP_D1 + PM * SIMP_N2 * LCM / SIMP_D2, LCM )

-
+

Simplify to lowest terms:

= W1 + W2 + fractionReduce( SIMP_N1 * LCM / SIMP_D1 + PM * SIMP_N2 * LCM / SIMP_D2, LCM )

@@ -89,11 +90,11 @@ "-" randRange( 2, 19 ) randRange( -W1 + 1, -1 ) -
+
randRange( 3, 20 ) randRange( 3, 20 )
-
+
randRange( 1, D1 - 1 ) randRange( 1, D2 - 1 )
@@ -134,23 +135,25 @@

= \blue{W1} SIGN \pink{abs( W2 )} + \blue{fraction( LCM + SIMP_N1 * LCM / SIMP_D1, LCM )} SIGN \pink{fraction( SIMP_N2 * LCM / SIMP_D2, LCM )}

-

+

=W1 + W2 + \blue{fraction( LCM + SIMP_N1 * LCM / SIMP_D1, LCM )} SIGN \pink{fraction( SIMP_N2 * LCM / SIMP_D2, LCM)}

-

+

= expr(["+", W1 + W2, fraction( (LCM + SIMP_N1 * LCM / SIMP_D1) + (PM * SIMP_N2 * LCM / SIMP_D2), LCM )])

Combine the whole and fractional parts into a mixed number:

= W1 + W2 + fraction( (LCM + SIMP_N1 * LCM / SIMP_D1) + PM * SIMP_N2 * LCM / SIMP_D2, LCM )

-
+

Simplify to lowest terms:

= W1 + W2 + fractionReduce( (LCM + SIMP_N1 * LCM / SIMP_D1) + PM * SIMP_N2 * LCM / SIMP_D2, LCM )

- + + +
 @@ -1,12 +1,13 @@ - + + Adding vectors
-
+
randRangeNonZero( -9, 9 ) randRangeNonZero( -9, 9 ) @@ -19,23 +20,23 @@

What is \vec a + \vec b?

\begin{align*} - \vec a &= AX \hat\imath + AY \hat\jmath \\ - \vec b &= BX \hat\imath + BY \hat\jmath + \vec a &= AX \hat\imath + AY \hat\jmath \\ + \vec b &= BX \hat\imath + BY \hat\jmath \end{align*}

-
+
graphInit({ range: 10, scale: 20, tickStep: 1, labelStep: 1, unityLabels: false, labelFormat: function( s ) { return "\\small{" + s + "}"; }, - axisArrows: "<->" + axisArrows: "<->" }); - line( [0, 0], [AX, AY], { stroke: "#6495ed", arrows: "->" } ); - line( [0, 0], [BX, BY], { stroke: "#28ae7b", arrows: "->" } ); + line( [0, 0], [AX, AY], { stroke: "#6495ed", arrows: "->" } ); + line( [0, 0], [BX, BY], { stroke: "#28ae7b", arrows: "->" } ); var AF = 1 + 0.8 / sqrt( AX * AX + AY * AY ); label( [AF * AX, AF * AY], "\\vec a", { color: "#6495ed" } ); @@ -45,7 +46,7 @@
-

AX + BX \hat\imath + {}AY + BY \hat\jmath

+

AX + BX \hat\imath + {}AY + BY \hat\jmath

@@ -55,15 +56,16 @@

\hat a + \hat b = (AX + BX) \hat\imath + (AY + BY) \hat\jmath

- line( [BX, BY], [BX + AX, BY + AY], { stroke: "#6495ed", arrows: "->" } ); + line( [BX, BY], [BX + AX, BY + AY], { stroke: "#6495ed", arrows: "->" } );

\hphantom{\hat a + \hat b} = AX + BX\hat\imath + AY + BY\hat\jmath

- line( [0, 0], [BX + AX, BY + AY], { stroke: "#ffa500", arrows: "->" } ); + line( [0, 0], [BX + AX, BY + AY], { stroke: "#ffa500", arrows: "->" } );
- + +
 @@ -1,5 +1,6 @@ - + + 1-digit addition @@ -34,13 +35,12 @@

There are 1 blue dot.There are A blue dots. - There are 1 green dot.There are B green dots. - There are a total of A + B dots.

- + +
 @@ -1,5 +1,6 @@ - + + 2-digit addition @@ -9,8 +10,8 @@
randRange( 1, 8 )*10 randRange ( 0, 9 )*1 - randRange( 1, 8 )*10 - randRange ( 0, 9 )*1 + randRange( 1, 8 )*10 + randRange ( 0, 9 )*1 A_10+A_1 B_10+B_1 @@ -28,9 +29,10 @@
-
+
- + +
 @@ -1,5 +1,6 @@ - + + Addition with carrying @@ -10,9 +11,9 @@ randRange( 1, 8 )*100 randRange( 0, 7 )*10 randRange ( 1, 9 )*1 - randRange( 1, 8 )*100 - randRange( 0, 7 )*10 - randRange ( 1, 9 )*1 + randRange( 1, 8 )*100 + randRange( 0, 7 )*10 + randRange ( 1, 9 )*1 A_100+A_10+A_1 B_100+B_10+B_1 [] @@ -29,9 +30,10 @@
-
+
- + +
 @@ -1,20 +1,21 @@ - + + 4-digit addition with carrying
-
+
randRangeWeighted(0, 9, 0, 0.25) * 1000 randRange(0, 9) * 100 randRange(0, 9) * 10 randRange(0, 9) * 1 - + randRangeWeighted(0, 9, 0, 0.25) * 1000 randRange(0, 9) * 100 @@ -37,9 +38,10 @@
-
+
- + +
23 exercises/age_word_problems.html
 @@ -1,6 +1,7 @@ + - + Age word problems @@ -36,7 +37,7 @@ -
+

person(1) is A years older than person(2). Cardinal(B) years ago, person(1) @@ -84,7 +85,7 @@

-
+

person(1) is C times as old as person(2) and is also A @@ -106,7 +107,7 @@

-
+
randRange(2, 5) randRange(A + 2, 9) randRange(2, 7) * (C - A) @@ -130,7 +131,7 @@