Course Test · School: elementary and middle

Grade 6: ratios, negative numbers and expressions: RatMath answers

The same twenty exercises, answered with RatMath Core and the Shelf libraries only. The code below was run when this page was built; its output is shown as printed, and compared with the independent answer.

Agrees 20

Libraries used here: core, symbolic, stats, geo. In this code each library is in scope under its own name (linalg.det, stats.tTest), and Core's names (R, Rational, …) are in scope directly.

  1. 1.RatiosAgrees
    A class has 12 boys and 18 girls. Write the ratio of boys to girls in simplest form.
    Independent answer
    12:18=2:312 : 18 = 2 : 3.
    RatMath code
    R`12/18`
    Output
    2/3
  2. 2.Unit rateAgrees
    Six cans of soup cost \$4.50. What is the price per can?
    Independent answer
    $4.50÷6=$0.75\$4.50 \div 6 = \$0.75.
    RatMath code
    R`4.50 / 6`.toDecimal()
    Output
    0.75
  3. 3.Percent of a numberAgrees
    What is 35% of 80?
    Independent answer
    0.35×80=280.35 \times 80 = 28.
    RatMath code
    R`35/100 * 80`
    Output
    28
  4. 4.Finding the wholeAgrees
    18 is 40% of what number?
    Independent answer
    18÷0.4=4518 \div 0.4 = 45.
    RatMath code
    symbolic.solve("0.4*n = 18", "n")
    Output
    n = 45
  5. 5.Dividing fractionsAgrees
    34÷29\dfrac34 \div \dfrac29
    Independent answer
    34×92=278=338\tfrac34 \times \tfrac92 = \tfrac{27}{8} = 3\tfrac38.
    RatMath code
    R`(3/4) / (2/9)`.toMixedString()
    Output
    3..3/8
  6. 6.Dividing decimalsAgrees
    56.7÷2.756.7 \div 2.7
    Independent answer
    21 (567÷27567 \div 27).
    RatMath code
    R`56.7 / 2.7`
    Output
    21
  7. 7.GCF and LCMAgrees
    Find the greatest common factor and the least common multiple of 24 and 36.
    Independent answer
    GCF 12, LCM 72.
    RatMath code
    [R`24`.gcd(R`36`), R`24`.lcm(R`36`)]
    Output
    [12, 72]
  8. 8.Distributive propertyAgrees
    Factor out the greatest common factor: 6x+156x + 15.
    Independent answer
    3(2x+5)3(2x + 5).
    RatMath code
    symbolic.factor("6x + 15")
    Output
    3*(2*x + 5)
  9. 9.IntegersAgrees
    −7−(−12)-7 - (-12)
    Independent answer
    −7+12=5-7 + 12 = 5.
    RatMath code
    R`-7 - (-12)`
    Output
    5
  10. 10.Absolute valueAgrees
    ∣−8∣+∣3∣|-8| + |3|
    Independent answer
    8+3=118 + 3 = 11.
    RatMath code
    R`-8`.abs().add(R`3`.abs())
    Output
    11
  11. 11.Coordinate planeAgrees
    How far apart are the points (−3,4)(-3, 4) and (5,4)(5, 4)?
    Independent answer
    They share y=4y = 4, so the distance is ∣5−(−3)∣=8|5 - (-3)| = 8.
    RatMath code
    geo.distance([-3, 4], [5, 4])
    Output
    8
  12. 12.Evaluating expressionsAgrees
    Evaluate 3x2−2y3x^2 - 2y when x=4x = 4 and y=5y = 5.
    Independent answer
    3⋅16−10=383 \cdot 16 - 10 = 38.
    RatMath code
    symbolic.sym("3x^2 - 2y").subs({ x: 4, y: 5 }).simplify()
    Output
    38
  13. 13.One-step equationAgrees
    Solve x+7.5=12x + 7.5 = 12.
    Independent answer
    x=4.5x = 4.5.
    RatMath code
    symbolic.solve("x + 7.5 = 12", "x")
    Output
    x = 9/2
    Correct; RatMath answers with the fraction 9/29/2 where a sixth-grade answer key writes 4.5.
  14. 14.One-step equation with a fractionAgrees
    Solve 34x=18\tfrac34 x = 18.
    Independent answer
    x=18⋅43=24x = 18 \cdot \tfrac43 = 24.
    RatMath code
    symbolic.solve("3/4*x = 18", "x")
    Output
    x = 24
  15. 15.ExponentsAgrees
    25−332^5 - 3^3
    Independent answer
    32−27=532 - 27 = 5.
    RatMath code
    R`2^5 - 3^3`
    Output
    5
  16. 16.Area of a triangleAgrees
    A triangle has base 9 cm and height 6 cm. What is its area?
    Independent answer
    12⋅9⋅6=27 cm2\tfrac12 \cdot 9 \cdot 6 = 27\ \text{cm}^2.
    RatMath code
    geo.triangle([0, 0], [9, 0], [2, 6]).area
    Output
    27
    geo measures a triangle from its corners, so the base and height are placed on coordinates first.
  17. 17.Volume with fractional edgesAgrees
    A rectangular prism measures 2.5 m by 4 m by 3.2 m. Find its volume.
    Independent answer
    2.5⋅4=102.5 \cdot 4 = 10; 10⋅3.2=32 m310 \cdot 3.2 = 32\ \text{m}^3.
    RatMath code
    units.Q("2.5 m").multiply(units.Q("4 m")).multiply(units.Q("3.2 m"))
    Output
    32 m^3
  18. 18.Mean, median, modeAgrees
    Find the mean, median and mode of 4, 8, 6, 5, 8, 10, 8.
    Independent answer
    Mean 49/7=749/7 = 7; sorted 4, 5, 6, 8, 8, 8, 10, so median 8; mode 8.
    RatMath code
    const d = [4, 8, 6, 5, 8, 10, 8];
    [stats.mean(d), stats.median(d), stats.modes(d)]
    Output
    [7, 8, [8]]
  19. 19.Range and interquartile rangeAgrees
    For the data 3, 7, 8, 12, 13, 14, 18, 21, find the range, the quartiles and the interquartile range.
    Independent answer
    Range 21−3=1821 - 3 = 18. Lower half 3, 7, 8, 12 has median Q1=7.5Q_1 = 7.5; upper half 13, 14, 18, 21 has median Q3=16Q_3 = 16. IQR =8.5= 8.5.
    RatMath code
    const d = [3, 7, 8, 12, 13, 14, 18, 21];
    [stats.range(d), stats.quartiles(d, { method: "halves" }), stats.iqr(d, { method: "halves" })]
    Output
    [18, [15/2, 25/2, 16], 17/2]
    School textbooks and the TI-84 take Q1 and Q3 as the medians of the lower and upper halves: method: "halves". The default linear method interpolates (as R and NumPy do) and gives Q1=7.75Q_1 = 7.75, Q3=15Q_3 = 15, IQR 7.25.
    Fix: ratmath/stats#7, textbook quartiles (method: "halves", "tukey"); finite distributions accept Core's Integer
  20. 20.One-step inequalityAgrees
    Solve x−4>9x - 4 > 9 and describe the solutions.
    Independent answer
    x>13x > 13.
    RatMath code
    symbolic.solveInequality("x - 4 > 9", "x")
    Output
    (13, inf)