Description: Ordered triple theorem, closed form. (Contributed by Alexander van der Vekens, 10-Mar-2018)