Difference between revisions of "Median of a Triangle in LaTeX"

(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);...")
 
m
 
Line 1: Line 1:
The [[median]] of a [[triangle]] can be depicted using <math>\LaTeX.</math>  
+
The [[median]] of a [[triangle]] can be depicted using <math>\LaTeX</math>.
  
 
We begin by drawing a basic triangle:  
 
We begin by drawing a basic triangle:  

Latest revision as of 13:06, 25 March 2020

The median of a triangle can be depicted using $\LaTeX$.

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.