modiying min and max for dry and adding complex min/max(num)mag for complex