fix handling of special symbol for minus infinity in log and exp functions