FIX #2322: add exceptions for more functions in math.h