- A0 has an area of one square meter
- A(n) has half the area of A(n-1)
- The ratio between the longer and the shorter side of an A format is constant
2a : b = b : a, 2 a2 = b2, b=sqrt(2) a, hence b : a = sqrt(2) : 1So here is my Tcl implementation, which returns a list of height and width in centimeters (10000 cm2 = 1 m2) with two fractional digits, which delivers a sufficient precision of 1/10 mm:
proc paperA n { set w [expr {sqrt(10000/(pow(2,$n) * sqrt(2)))}] set h [expr {$w * sqrt(2)}] format "%.2f %.2f" $h $w } % paperA 4 29.73 21.02
Detailed info on the format A, which is from ISO 216, can be found here [1]. Michael Schlenker