Course Test · School: high school

Geometry (high school): 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, 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.MidpointAgrees
    Find the midpoint of (−4,7)(-4, 7) and (6,−1)(6, -1).
    Independent answer
    (1,3)(1, 3).
    RatMath code
    geo.midpoint([-4, 7], [6, -1])
    Output
    (1, 3)
  2. 2.Perpendicular bisectorAgrees
    Find the perpendicular bisector of the segment from A(1,2)A(1, 2) to B(5,6)B(5, 6).
    Independent answer
    Midpoint (3,4)(3, 4), slope −1-1: y=−x+7y = -x + 7.
    RatMath code
    geo.perpendicularBisector([1, 2], [5, 6])
    Output
    x + y - 7 = 0
  3. 3.Classifying a triangleAgrees
    Classify the triangle with vertices (0,0)(0, 0), (6,0)(6, 0), (2,4)(2, 4) by its sides and angles, and find its area.
    Independent answer
    Sides 6, 32\sqrt{32}, 20\sqrt{20}: scalene. Largest side squared 36<32+2036 < 32 + 20: acute. Area 12⋅6⋅4=12\tfrac12 \cdot 6 \cdot 4 = 12.
    RatMath code
    const T = geo.triangle([0, 0], [6, 0], [2, 4]);
    [T.classify(), T.area]
    Output
    [{ angles: "acute", sides: "scalene" }, 12]
  4. 4.Polygon anglesAgrees
    Find the sum of the interior angles of an octagon, and each angle of a regular octagon.
    Independent answer
    (8−2)⋅180∘=1080∘(8 - 2) \cdot 180^\circ = 1080^\circ; 1080/8=135∘1080/8 = 135^\circ.
    RatMath code
    [geo.angleSum(8), geo.interiorAngle(8)]
    Output
    [1080, 135]
    angleSum and interiorAngle, in degrees.
    Fix: ratmath/geo#11, measurement helpers, 3D vector and plane, conicProperties; topology: surface, simplicialComplex, finite spaces
  5. 5.Similar trianglesAgrees
    A triangle has sides 4, 6 and 8. A similar triangle has longest side 12. Find its other sides.
    Independent answer
    Scale factor 12/8=3/212/8 = 3/2: sides 6 and 9.
    RatMath code
    const k = R`12/8`;
    [R`4`.multiply(k), R`6`.multiply(k)]
    Output
    [6, 9]
  6. 6.Special right trianglesAgrees
    A 30–60–90 triangle has hypotenuse 10. Find the legs.
    Independent answer
    Short leg 5, long leg 535\sqrt3.
    RatMath code
    [symbolic.simplify("10*sin(pi/6)"), symbolic.simplify("10*sin(pi/3)")]
    Output
    [5, 5*sqrt(3)]
  7. 7.Right-triangle trigonometryAgrees
    In a right triangle, an acute angle is 35∘35^\circ and its adjacent leg is 12. Find the opposite leg to two decimal places.
    Independent answer
    12tan⁡35∘≈12×0.70021=8.4012\tan 35^\circ \approx 12 \times 0.70021 = 8.40.
    RatMath code
    symbolic.evaluate(symbolic.parse("12*tan(35*pi/180)"))
    Output
    8.40249045851651735249:8.4024904585165173538
  8. 8.Law of cosinesAgrees
    Two sides of a triangle are 7 and 8, with an included angle of 60∘60^\circ. Find the third side.
    Independent answer
    c2=49+64−2⋅7⋅8⋅12=57c^2 = 49 + 64 - 2 \cdot 7 \cdot 8 \cdot \tfrac12 = 57, c=57c = \sqrt{57}.
    RatMath code
    symbolic.simplify("sqrt(7^2 + 8^2 - 2*7*8*cos(pi/3))")
    Output
    sqrt(57)
  9. 9.Law of sinesAgrees
    In triangle ABCABC, A=40∘A = 40^\circ, B=65∘B = 65^\circ and a=10a = 10. Find bb to two decimals.
    Independent answer
    b=10sin⁡65∘/sin⁡40∘≈14.10b = 10 \sin 65^\circ / \sin 40^\circ \approx 14.10.
    RatMath code
    symbolic.evaluate(symbolic.parse("10*sin(65*pi/180)/sin(40*pi/180)"))
    Output
    14.0996461876204866[8525:9046]
  10. 10.Equation of a circleAgrees
    Write the equation of the circle with centre (−2,3)(-2, 3) and radius 5. Is (1,7)(1, 7) on it?
    Independent answer
    (x+2)2+(y−3)2=25(x + 2)^2 + (y - 3)^2 = 25. Yes: 9+16=259 + 16 = 25.
    RatMath code
    const C = geo.circle([-2, 3], [3, 3]);
    [C, C.contains ? C.contains([1, 7]) : geo.distance([-2, 3], [1, 7])]
    Output
    [circle, centre (-2, 3), radius 5, true]
  11. 11.Centre and radiusAgrees
    Find the centre and radius of x2+y2−6x+4y−12=0x^2 + y^2 - 6x + 4y - 12 = 0.
    Independent answer
    (x−3)2+(y+2)2=25(x - 3)^2 + (y + 2)^2 = 25: centre (3,−2)(3, -2), radius 5.
    RatMath code
    const c = geo.circleFromEquation("x^2 + y^2 - 6x + 4y - 12 = 0");
    [String(c.center), c.radius]
    Output
    ["(3, -2)", 5]
    circleFromEquation completes the square.
    Fix: ratmath/geo#11, measurement helpers, 3D vector and plane, conicProperties; topology: surface, simplicialComplex, finite spaces
  12. 12.Arcs and sectorsAgrees
    A circle has radius 9. Find the length of an arc and the area of a sector with central angle 80∘80^\circ.
    Independent answer
    Arc 80360⋅18π=4π\tfrac{80}{360} \cdot 18\pi = 4\pi; sector 80360⋅81π=18π\tfrac{80}{360} \cdot 81\pi = 18\pi.
    RatMath code
    [symbolic.simplify("80/360*2*pi*9"), symbolic.simplify("80/360*pi*9^2")]
    Output
    [4*pi, 18*pi]
  13. 13.Inscribed anglesAgrees
    An inscribed angle intercepts an arc of 110∘110^\circ. What is the angle?
    Independent answer
    55∘55^\circ.
    RatMath code
    R`110/2`
    Output
    55
    The inscribed angle theorem is in geo (geo.proofs.inscribedAngle() proves it), but using it here is just halving.
  14. 14.Tangent lengthAgrees
    A point is 13 units from the centre of a circle of radius 5. How long is a tangent segment from the point to the circle?
    Independent answer
    Radius ⟂ tangent: 132−52=12\sqrt{13^2 - 5^2} = 12.
    RatMath code
    geo.tangentLength(geo.circle([0, 0], [5, 0]), [13, 0])
    Output
    12
    tangentLength is the square root of the point's power.
    Fix: ratmath/geo#11, measurement helpers, 3D vector and plane, conicProperties; topology: surface, simplicialComplex, finite spaces
  15. 15.SphereAgrees
    Find the volume and surface area of a sphere of radius 6, in terms of π\pi.
    Independent answer
    V=43π⋅216=288πV = \tfrac43\pi \cdot 216 = 288\pi; S=4π⋅36=144πS = 4\pi \cdot 36 = 144\pi.
    RatMath code
    [symbolic.simplify("4/3*pi*6^3"), symbolic.simplify("4*pi*6^2")]
    Output
    [288*pi, 144*pi]
  16. 16.RotationAgrees
    Rotate (4,1)(4, 1) by 90∘90^\circ counterclockwise about the origin.
    Independent answer
    (x,y)↦(−y,x)(x, y) \mapsto (-y, x): (−1,4)(-1, 4).
    RatMath code
    geo.rotation([0, 0], "1/4").apply([4, 1])
    Output
    (-1, 4)
  17. 17.DilationAgrees
    Dilate (3,2)(3, 2) by scale factor 3 about (1,1)(1, 1).
    Independent answer
    (1,1)+3(2,1)=(7,4)(1, 1) + 3(2, 1) = (7, 4).
    RatMath code
    geo.dilation([1, 1], 3).apply([3, 2])
    Output
    (7, 4)
  18. 18.CentroidAgrees
    Find the centroid of the triangle (0,0),(6,0),(3,9)(0, 0), (6, 0), (3, 9).
    Independent answer
    (3,3)(3, 3).
    RatMath code
    geo.triangle([0, 0], [6, 0], [3, 9]).centroid
    Output
    (3, 3)
  19. 19.CircumcircleAgrees
    Find the centre and radius of the circle through (0,0),(4,0),(0,6)(0, 0), (4, 0), (0, 6).
    Independent answer
    Right angle at the origin, so the centre is the midpoint of the hypotenuse, (2,3)(2, 3); radius 13\sqrt{13}.
    RatMath code
    const T = geo.triangle([0, 0], [4, 0], [0, 6]);
    [T.circumcenter, T.circumradius]
    Output
    [(2, 3), 3.605551275463…]
  20. 20.ProofAgrees
    Prove that the diagonals of a parallelogram bisect each other.
    Independent answer
    With A=(0,0)A = (0,0), B=(b,0)B = (b, 0), D=(d,e)D = (d, e), C=B+DC = B + D: the midpoint of ACAC and of BDBD are both (b+d2,e2)\left(\tfrac{b+d}{2}, \tfrac e2\right). (Or by congruent triangles ASA.)
    RatMath code
    const p = geo.proofs.parallelogram();
    [p.proved, p.statement]
    Output
    [true, "the diagonals of a parallelogram bisect each other"]