Quadrature Over a Pyramid or Cube of Integrands with a Singularity at a Vertex | Synapse