Median of a Triangle in LaTeX

Revision as of 18:33, 6 March 2020 by Geobear (talk | contribs) (Created page with "The median of a triangle can be depicted using <math>\LaTeX.</math> We begin by drawing a basic triangle: unitsize(0.5 cm); pair A, B, C; A = (3,6); B = (-5,2);...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The median of a triangle can be depicted using $\LaTeX.$ (Error compiling LaTeX. Unknown error_msg)

We begin by drawing a basic triangle:


unitsize(0.5 cm);

pair A, B, C;

A = (3,6); B = (-5,2); C = (7,-8);

draw(A--B--C--cycle);

Which gives:

[asy] unitsize(0.5 cm);  pair A, B, C;  A = (3,6); B = (-5,2); C = (7,-8);  draw(A--B--C--cycle);  [/asy]

The median is located halfway between the points so we add:

unitsize(0.5 cm);

pair A, B, C, D, E, F, G;

A = (3,6); B = (-5,2); C = (7,-8); D = (B + C)/2; E = (A + C)/2; F = (A + B)/2;

draw(A--D,red); draw(B--E,red); draw(C--F,red); draw(A--B--C--cycle);

Which gives:

[asy] unitsize(0.5 cm);  pair A, B, C, D, E, F, G;  A = (3,6); B = (-5,2); C = (7,-8); D = (B + C)/2; E = (A + C)/2; F = (A + B)/2;  draw(A--D,red); draw(B--E,red); draw(C--F,red); draw(A--B--C--cycle); [/asy]

This principal can be applied to any triangle.