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 |