Hello ! Please can someone help me to resolve this error, this is the One-electron approximate form. I need to applicate this equation for all orbitals of the atoms Cadmium, Thelium and Zinc (CdTeZn). I have the orbitals number of each atom and the corresponding J, as well as the number of electrons in each orbital.
from math import exp # Approximate one-electron profiles : # Zinc Zn, atomic number = 30 # Electronic Configuration : 1s2 2s2 2p6 3s2 3p6 4s2 3d10 # Cademium Cd, atomic number = 48 # Electronic Configuration : 1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 # Thelium Te, atomic number = 52 # Electronic Configuration : 1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5s2 5p4 # For Zn n = 2 d1 = (n - 1 / n) ** 1/n d2 = 2/n * [d1** (1-n)] # Ji,0 = Ji (0) <=> la valeur du profil à Pz = 0 J1_30 = 2.90*10**-2 # J(i = 1s), Pz = 30 ; Pz = 30 # electrons number = 1 # General equation form # Ji,A_Pz = Ji,0* ((n * d2/2) [(d1 + d2 * Ji,0 * abs(Pz)) ** (n-1)]) (exp [d1**n- ((d1 + d2 * Ji,0 * abs(Pz))**n)]) Ji,A_Pz = J1_30 * ((n * d2/2) [(d1 + d2 * J1_30 * abs(Pz)) ** (n-1)]) (exp [d1**n- ((d1 + d2 * J1_30 * abs(Pz))**n)])
Error:TypeError: can't multiply sequence by non-int of type 'float'
Larz60+ write Apr-12-2021, 04:55 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.
Also, when posting error traceback, please post entire, unaltered traceback.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts.
Also, when posting error traceback, please post entire, unaltered traceback.