Working sans log function

The log function won't work, and I'm not sure why. It's supposed to be a built-in. Tried importing math, with no results.
Code is otherwise operational.