Take the 2-minute tour ×
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.

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?

share|improve this question
    
The volume of an $n$-ball is given by $\frac{pi^\frac{n}{2}{\Gamma (\frac{n}{2}+1)}r^n$. Is this what you're looking for? –  hombre Jan 12 '13 at 18:45

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.