Function adas.xxidtl
def xxidtl(index, zeroindex=False)
-
Returns the value of the n and l quantum numbers from a unique index number.
Parameters
index
:int
- index depending on n and l.
zeroindex
:bool
- when set to True the index sequence starts at 0 rather than 1.
Returns
n
:int
- principal quantum number
l
:int
- angular momentumn quantum number
Notes
The index is used to reference arrays containing data dependent on the n and l quantum numbers. When zeroindex=True the index starts at zero to enable simple use of python arrays.
See Also
i4idfl
- inverse function returning the index for n and l.
Version History
- Martin O'Mullane, 02-07-2018
- First version
Example
>>> import adas as adas >>> adas.xxidtl(36) (8, 7) >>> adas.xxidtl(35) (8, 6) >>> adas.xxidtl(35, zeroindex=True) (8, 7)