suppressed RuntimeWarning when computing exp