Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the element for a given atomic number
ResourceFunction["FromAtomicNumber"][n] gives the atomic symbol for the element with atomic number n. |
Find the atomic symbol of the 17th element in the periodic table:
In[1]:= | ![]() |
Out[1]= | ![]() |
Find the atomic symbol for a list of numbers:
In[2]:= | ![]() |
Out[2]= | ![]() |
FromAtomicNumber is typically faster than calling EntityValue for the same information:
In[3]:= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
The atomic symbols returned by FromAtomicNumber can be used to create "Element" entities directly:
In[7]:= | ![]() |
Out[7]= | ![]() |
In[8]:= | ![]() |
Out[8]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License