Implement standard "linear" to "log" and "log" to "linear" conversion functions.

Closes #169.