Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 39s1 days 16 hours 1 minutes 39 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 39s1 days 16 hours 1 minutes 39 seconds.

Sign in to watch this lesson
Advanced - Geometry · 4:27
The shoelace formula computes twice a polygon's area as a sum of cross products of consecutive vertices (signed trapezoids against the x-axis), exactly in integers, with the sign giving the orientation. For a lattice polygon the boundary count is one gcd per edge, and Pick's theorem S = I + B/2 - 1 then gives the interior count, a result with no 3D analogue. Lattice points under a line with fractional slope are counted by the floor sum in O(log) steps with a Euclid-like reduction.