Calculation of π based on the ratio between quarter circle and square.