Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the elemental composition of a chemical entity
ResourceFunction["ChemicalElementComposition"][quantity,entity] computes the complete elemental composition of a specified quantity of the chemical entity. | |
ResourceFunction["ChemicalElementComposition"][quantity,"name"] computes the complete elemental composition of a specified quantity of the chemical "name". | |
ResourceFunction["ChemicalElementComposition"][quantity,entity,{elem1,…}] computes the elemental composition corresponding to the elements elemi. |
Calculate the mass of each element present in 200 mg of the drug acetaminophen:
In[1]:= |
|
Out[1]= |
|
Calculate the mass of only carbon and nitrogen:
In[2]:= |
|
Out[2]= |
|
Compute the mass of a single element:
In[3]:= |
|
Out[3]= |
|
Use strings:
In[4]:= |
|
Out[4]= |
|
In[5]:= |
|
Out[5]= |
|
Use TargetUnits to specify the units to use in the result:
In[6]:= |
|
Out[6]= |
|
In[7]:= |
|
Out[7]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License