If I have the coordinates of the points on the surface of the $n$-ball then, how can I find the volume? or how can I generalize trapezoidal rule for integration?
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
An easy way to do it would be using Monte Carlo integration. Surround the ball by a box of known volume and sample points inside the box, checking whether they're inside the ball.