how to avoid a negative logarithm?

Printable View