Created using Colaboratory
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"colab": {
|
"colab": {
|
||||||
"provenance": [],
|
"provenance": [],
|
||||||
"authorship_tag": "ABX9TyNNnZyVCX9glFJGIC8BwtVT",
|
"authorship_tag": "ABX9TyMrWYwQrwgJvDza1vhYK9WQ",
|
||||||
"include_colab_link": true
|
"include_colab_link": true
|
||||||
},
|
},
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"def volume_of_hypersphere(diameter, dimensions):\n",
|
"def volume_of_hypersphere(diameter, dimensions):\n",
|
||||||
" # Formula given in Problem 8.7 of the notes\n",
|
" # Formula given in Problem 8.7 of the notes\n",
|
||||||
" # You will need sci.special.gamma()\n",
|
" # You will need sci.gamma()\n",
|
||||||
" # Check out: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.gamma.html\n",
|
" # Check out: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.gamma.html\n",
|
||||||
" # Also use this value for pi\n",
|
" # Also use this value for pi\n",
|
||||||
" pi = np.pi\n",
|
" pi = np.pi\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user