What an antiparallelogram is
An antiparallelogram is a self-crossing quadrilateral whose opposite sides are equal in pairs: two long sides \(a\) that cross each other and two short sides \(b\) that do not. Its four corners are the corners of an isosceles trapezoid whose legs are the sides \(b\) and whose diagonals are the sides \(a\); the trapezoid's two parallel sides \(p\) and \(q\) are the antiparallelogram's diagonals, and \(h\) is the gap between them. With \(a\) and \(b\) fixed the shape can still flex, so a third size is needed: this calculator takes \(a\), \(b\) and either diagonal \(p\) or the gap \(h\).
How to use it
- Choose in What do you know? the third size you have.
- Type \(a\), \(b\) and that size. Decimal commas and E-notation are accepted.
- Pick a length unit to label the results, and degrees or radians for the angles.
The enclosed area (the two triangles between the crossing sides and the sides \(b\)) is shown first; the table lists the sides, both diagonals, the gap, the perimeter, the area of each triangle and the angles. Sizes that cannot make an antiparallelogram are refused with the reason. The page rounds results for display. Each length must be from 0.000001 to 1,000,000,000 and each area from 0.000000000001 to 1,000,000,000,000,000,000; anything else is refused with that range.
Formulas
$$a^2 = b^2 + p\,q \qquad h = \sqrt{b^2 - \left(\frac{p-q}{2}\right)^2} \qquad A = \frac{p\,q\,h}{p+q} \qquad P = 2(a+b)$$
From the gap \(h\): with \(s = \sqrt{b^2 - h^2}\), \(p = s + \sqrt{s^2 + a^2 - b^2}\) and \(q = p - 2s\).
Derivation
An isosceles trapezoid is cyclic, so Ptolemy's theorem (product of the diagonals = sum of the products of opposite sides) gives \(a \cdot a = b \cdot b + p \cdot q\). Place the trapezoid with \(p\) on the x-axis centred at 0 and \(q\) at height \(h\); the legs then have horizontal run \((p-q)/2\), which gives \(h\). The crossing sides meet at the trapezoid's diagonal intersection, which divides the height in the ratio \(p : q\), at height \(y_0 = h\,p/(p+q)\). Each enclosed triangle is the triangle on a leg with that point as apex; its area is the trapezoid triangle on \(p\) minus the triangle under the crossing point:
$$\tfrac12\, p h - \tfrac12\, p\, y_0 = \frac{p\,q\,h}{2(p+q)}, \qquad A = 2 \cdot \frac{p\,q\,h}{2(p+q)} = \frac{p\,q\,h}{p+q}.$$
When \(p = q\) the trapezoid is a rectangle and the antiparallelogram is a crossed rectangle with area \(p\,b/2\).
Worked example
For the defaults \(a = 9\), \(b = 5\), \(p = 10\): \(q = (81 - 25)/10 = 5.6\), \(h = \sqrt{25 - 2.2^2} \approx 4.489989\), the enclosed area is about 16.117909, \(P = 28\), and the crossing sides meet at about 59.85287°.
Questions
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Where are antiparallelograms used?
In linkages: four bars joined in this pattern keep their opposite sides equal while the shape flexes, so the same calculator describes every position of such a linkage.
Why must the crossing sides be the longer pair?
They are the diagonals of the isosceles trapezoid, and by Ptolemy \(a^2 = b^2 + pq > b^2\).
References
R. A. Johnson, Advanced Euclidean Geometry, Dover, 1960 (first published 1929 as Modern Geometry)
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018