Created using Colaboratory

This commit is contained in:
udlbook
2023-11-25 17:02:46 +00:00
parent 58a150843f
commit 2cfbcafedc

View File

@@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyPXPDEQiwNw+kYhWfg4kjz6",
"authorship_tag": "ABX9TyPAKqlf9VxztHXKylyJwqe8",
"include_colab_link": true
},
"kernelspec": {
@@ -145,7 +145,7 @@
"source": [
"def volume_of_hypersphere(diameter, dimensions):\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",
" # Also use this value for pi\n",
" pi = np.pi\n",