add multiple intervals support for numeric functions