Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-kushwaha authored Sep 2, 2023
1 parent b01725f commit 1965f5a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CODE_2_PES2MP_4D.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "ce108dbf",
"id": "39f34f43",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -555,15 +555,15 @@
" \n",
" U00 = np.sqrt((2*L+1)/(4*np.pi))\n",
" T01 = clebsch_gordan(L1, L2, L, 0, 0, 0).evalf()\n",
" P0L1 = pysh.legendre.legendre_lm (L1, 0, cos(theta1), 'unnorm', -1, 1)\n",
" P0L2 = pysh.legendre.legendre_lm (L2, 0, cos(theta2), 'unnorm', -1, 1)\n",
" P0L1 = pysh.legendre.legendre_lm (L1, 0, cos(theta1), 'unnorm', -1, 0)\n",
" P0L2 = pysh.legendre.legendre_lm (L2, 0, cos(theta2), 'unnorm', -1, 0)\n",
" T1 = T01*P0L1*P0L2\n",
" Total += T1\n",
" M=1\n",
" while (M<=M_max):\n",
" T02 = clebsch_gordan(L1, L2, L, M, -M, 0).evalf()\n",
" PmL1 = pysh.legendre.legendre_lm (L1, M, cos(theta1), 'unnorm', -1, 1)\n",
" PmL2 = pysh.legendre.legendre_lm (L2, M, cos(theta2), 'unnorm', -1, 1)\n",
" PmL1 = pysh.legendre.legendre_lm (L1, M, cos(theta1), 'unnorm', -1, 0)\n",
" PmL2 = pysh.legendre.legendre_lm (L2, M, cos(theta2), 'unnorm', -1, 0)\n",
" T2 = T02*PmL1*PmL2\n",
" Total += 2.0*pow((-1),M)*T2*(cos(M*phi))\n",
" M+=1\n",
Expand Down

0 comments on commit 1965f5a

Please sign in to comment.