# Calculate Median of a Triangle - Analytical Calculation

Calculate the median of a triangle from the given points of A, B and C.

The triangle has exactly three medians from three vertexes which are intersecting each other at the triangle's centroid. The median of a triangle is a line segment joining a vertex to the midpoint of the opposing side. The three medians divide the triangle into 6 smaller triangles having the same area irrespective of different shapes.

### Formula:

m_{a} = (1/2) √2c^{2} + 2b^{2} - a^{2}

m_{b} = (1/2) √2c^{2} + 2a^{2} - b^{2}

m_{c} = (1/2) √2a^{2} + 2b^{2} - c^{2}

**Where**

a,b,c - Length of triangle sides.