L/arith func log

what about ```Double.isNaN(result) || Double.isInfinite(result)``` ?