On Computing Fundamental Units