add xref to unit-formula
define package, functions sqr and geometric-sum