Add math_log/1 and inverse/1 patterns to catch 0.0