move extra math funcs to stdlib