Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Periodic-table/Mathematica/periodic-table.math
Normal file
15
Task/Periodic-table/Mathematica/periodic-table.math
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
ClearAll[FindPeriodGroup]
|
||||
FindPeriodGroup[n_Integer] := Which[57 <= n <= 70,
|
||||
{8, n - 53}
|
||||
,
|
||||
89 <= n <= 102,
|
||||
{9, n - 85}
|
||||
,
|
||||
1 <= n <= 118,
|
||||
{ElementData[n, "Period"], ElementData[n, "Group"]}
|
||||
,
|
||||
True,
|
||||
Missing["Element does not exist"]
|
||||
]
|
||||
Row[{"Element ", #, " -> ", FindPeriodGroup[#]}] & /@ {1, 2, 29, 42, 57, 58, 59, 71, 72, 89, 90, 103, 113} // Column
|
||||
Graphics[Text[#, {1, -1} Reverse@FindPeriodGroup[#]] & /@ Range[118]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue