Implementing logarithm of normalisation constant for canonical gaussian