Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:functions:ytozmatrix [2018/09/25 16:17] – Simon Heinze | documentation:language_reference:functions:ytozmatrix [2018/09/25 16:29] (current) – minor typo Simon Heinze | ||
---|---|---|---|
Line 8: | Line 8: | ||
* $orb$ : An integer number, or a list of integer numbers, or a string that can be interpreted as a non-relativistic atomic orbital, or a list or strings. | * $orb$ : An integer number, or a list of integer numbers, or a string that can be interpreted as a non-relativistic atomic orbital, or a list or strings. | ||
+ | * Options: | ||
+ | * " | ||
===== Output ===== | ===== Output ===== | ||
Line 23: | Line 25: | ||
print("" | print("" | ||
- | print(" | + | print(" |
- | print(YtoZMatrix(" | + | print(YtoZMatrix(" |
print("" | print("" | ||
Line 43: | Line 45: | ||
print("" | print("" | ||
- | print(" | + | print(" |
- | print(YtoZMatrix({0, | + | print(YtoZMatrix({0, |
print("" | print("" | ||
- | print(" | + | print(" |
- | print(YtoZMatrix({" | + | print(YtoZMatrix({" |
print(" | print(" | ||
Line 60: | Line 62: | ||
print(op) | print(op) | ||
- | opY = Rotate(op, YtoZMatrix(Orbitals)) | + | opZ = Rotate(op, YtoZMatrix(Orbitals)) |
print(" | print(" | ||
- | print(opY) | + | print(opZ) |
</ | </ | ||
Line 71: | Line 73: | ||
{ 0 , 1 } } | { 0 , 1 } } | ||
- | YtoZMatrix(" | + | YtoZMatrix(" |
- | { { 1 , 0 } , | + | { { 1 } } |
- | { 0 , 1 } } | + | |
YtoZMatrix(1) | YtoZMatrix(1) | ||
Line 115: | Line 116: | ||
{ 0 , 0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 } } | { 0 , 0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 } } | ||
- | YtoZMatrix({0, | + | YtoZMatrix({0, |
- | { { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , (0 + 0.70710678118655 I) , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0.70710678118655 , 0 , -0.70710678118655 , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 - 0.70710678118655 I) } , |
- | { 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , (0 + 0.70710678118655 I) , 0 } , |
- | { 0 , 0 , 0.70710678118655 | + | { 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 } , |
- | { 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , -0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , -0.70710678118655 , 0 } , |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 - 0.70710678118655 I) , 0 } , | + | { 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , 0.70710678118655 } } |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 - 0.70710678118655 I) } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 } } | + | |
- | YtoZMatrix({" | + | YtoZMatrix({" |
- | { { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , (0 + 0.70710678118655 I) , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0.70710678118655 , 0 , -0.70710678118655 , 0 , 0 , 0 , 0 , 0 } , |
- | { 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 - 0.70710678118655 I) } , |
- | { 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , (0 + 0.70710678118655 I) , 0 } , |
- | { 0 , 0 , 0.70710678118655 | + | { 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 } , |
- | { 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , -0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , | + | { 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , -0.70710678118655 , 0 } , |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 - 0.70710678118655 I) , 0 } , | + | { 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , 0.70710678118655 } } |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 - 0.70710678118655 I) } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 , 0 , (0 + 0.70710678118655 I) , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 } , | + | |
- | { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.70710678118655 } } | + | |