Created using Colaboratory
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"colab": {
|
"colab": {
|
||||||
"provenance": [],
|
"provenance": [],
|
||||||
"authorship_tag": "ABX9TyPXPDEQiwNw+kYhWfg4kjz6",
|
"authorship_tag": "ABX9TyPAKqlf9VxztHXKylyJwqe8",
|
||||||
"include_colab_link": true
|
"include_colab_link": true
|
||||||
},
|
},
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
@@ -145,7 +145,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 book\n",
|
" # Formula given in Problem 8.7 of the book\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