Skip to content

Instantly share code, notes, and snippets.

Avatar

Davide Gerosa dgerosa

View GitHub Profile
View nsphere.py
'''
Calculate the volume of the n-dimensional spehere a function of the dimension using a simple hit-or-miss Monte Carlo.
'''
from __future__ import print_function, division
import numpy as np
import scipy.special
import pylab as plt
import time
You can’t perform that action at this time.