Geometric median of 4 points

[color=#999999][color=#999999]This activity belongs to the [i]GeoGebra book[/i] [url=https://www.geogebra.org/m/dm9prd7h]Attractive projects.[/url][/color][/color][br][br][b]2D project[/b]: [i]create automatic dynamic demonstrations.[/i][br][br]The Fermat point minimizes the sum of the distances to 3 points. If we add a point, we obtain the geometric median of four points. [br][br]Note that this median coincides either with the cut point of the diagonals of the quadrilateral or with one of the four points. The latter only occurs when that point is inside the triangle formed by the other three, that is, when the quadrilateral is not convex. [br][br]As before, the robot (orange point F) aims to minimize the expression:[br][br][b] dif[/b] = abs(F-A) + abs(F-B) + abs(F-C) + abs(F-D)
[color=#999999]Author of the construction of GeoGebra: [color=#999999][url=https://www.geogebra.org/u/rafael]Rafael Losada[/url][/color][/color]

Information: Geometric median of 4 points