Chemical analysis by means of a portable quantometer