How to integrate non-continuous function by tplquad or nquad I try to triple integrate the following function but it gives many errors: