Trapezoid Area Calculator: Bases, Height, Solve for Either

The trapezoid area calculator takes the two parallel sides of a trapezoid (the bases a and b) and the perpendicular distance between them (the height h) and returns the area A = (a + b)\,h / 2. Conversely, given the area and two of the other quantities, it solves for the height or for a base.