You are on page 1of 6

+*In[1]:*+

[source, ipython3]
----
nombre=" Yeimy Hernández"
print(nombre)
----

+*Out[1]:*+
----
Yeimy Hernández
----

+*In[7]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'N2','H2'},{'NH3'})
print(Reactivos)
print(Productos)
----

+*Out[7]:*+
----
OrderedDict([('H2', 3), ('N2', 1)])
OrderedDict([('NH3', 2)])
----

+*In[8]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'Al4C3','H2O'},{'Al(OH)3','CH4
'})
print(Reactivos)
print(Productos)
----

+*Out[8]:*+
----
OrderedDict([('Al4C3', 1), ('H2O', 12)])
OrderedDict([('Al(OH)3', 4), ('CH4', 3)])
----

+*In[9]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'I2','HNO3'},{'HIO3','NO2','H2
O'})
print(Reactivos)
print(Productos)
----

+*Out[9]:*+
----
OrderedDict([('HNO3', 10), ('I2', 1)])
OrderedDict([('H2O', 4), ('HIO3', 2), ('NO2', 10)])
----

+*In[10]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'BaCl2','H2SO4'},{'BaSO4','HCl
'})
print(Reactivos)
print(Productos)
----

+*Out[10]:*+
----
OrderedDict([('BaCl2', 1), ('H2SO4', 1)])
OrderedDict([('BaSO4', 1), ('HCl', 2)])
----

+*In[11]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'CaC2','H2O'},{'C2H2','Ca(OH)2
'})
print(Reactivos)
print(Productos)
----

+*Out[11]:*+
----
OrderedDict([('CaC2', 1), ('H2O', 2)])
OrderedDict([('C2H2', 1), ('Ca(OH)2', 1)])
----

+*In[12]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'C2H2','O2'},{'CO2','H2O'})
print(Reactivos)
print(Productos)
----

+*Out[12]:*+
----
OrderedDict([('C2H2', 2), ('O2', 5)])
OrderedDict([('CO2', 4), ('H2O', 2)])
----

+*In[13]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'CS2','Cl2'},{'CCl4','SCl2'})
print(Reactivos)
print(Productos)
----

+*Out[13]:*+
----
OrderedDict([('CS2', 1), ('Cl2', 4)])
OrderedDict([('CCl4', 1), ('SCl2', 2)])
----

+*In[14]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'Al2S3','H2O'},{'Al(OH)3','H2S
'})
print(Reactivos)
print(Productos)
----

+*Out[14]:*+
----
OrderedDict([('Al2S3', 1), ('H2O', 6)])
OrderedDict([('Al(OH)3', 2), ('H2S', 3)])
----

+*In[15]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'NH3','O2'},{'NO','H2O'})
print(Reactivos)
print(Productos)
----

+*Out[15]:*+
----
OrderedDict([('NH3', 4), ('O2', 5)])
OrderedDict([('H2O', 6), ('NO', 4)])
----

+*In[22]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'KI','Pb(NO3)2'},{'KNO3','PbI2
'})
print(Reactivos)
print(Productos)
----

+*Out[22]:*+
----
OrderedDict([('KI', 2), ('Pb(NO3)2', 1)])
OrderedDict([('KNO3', 2), ('PbI2', 1)])
----

+*In[19]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'C6H12O6','O2'},{'CO2','H2O'})
print(Reactivos)
print(Productos)
----

+*Out[19]:*+
----
OrderedDict([('C6H12O6', 1), ('O2', 6)])
OrderedDict([('CO2', 6), ('H2O', 6)])
----

+*In[21]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'BCl3','P4','H2'},{'BP','HCl'}
)
print(Reactivos)
print(Productos)
----

+*Out[21]:*+
----
OrderedDict([('BCl3', 4), ('H2', 6), ('P4', 1)])
OrderedDict([('BP', 4), ('HCl', 12)])
----

+*In[24]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'HClO4','P4O10'},{'H3PO4','Cl2
O7'})
print(Reactivos)
print(Productos)
----

+*Out[24]:*+
----
OrderedDict([('HClO4', 12), ('P4O10', 1)])
OrderedDict([('Cl2O7', 6), ('H3PO4', 4)])
----

+*In[25]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'Na2CO3','C','N2'},{'NaCN','CO
'})
print(Reactivos)
print(Productos)
----

+*Out[25]:*+
----
OrderedDict([('C', 4), ('N2', 1), ('Na2CO3', 1)])
OrderedDict([('CO', 3), ('NaCN', 2)])
----

+*In[26]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'Zn','SO2'},{'ZnS2O4'})
print(Reactivos)
print(Productos)
----
+*Out[26]:*+
----
OrderedDict([('SO2', 2), ('Zn', 1)])
OrderedDict([('ZnS2O4', 1)])
----

+*In[27]:*+
[source, ipython3]
----
from chempy import balance_stoichiometry
Reactivos,Productos=balance_stoichiometry({'(Cr(N2H4CO)6)4(Cr(CN)6)3','KM
nO4','H2SO4'},{'K2Cr2O7','MnSO4','CO2','KNO3','K2SO4','H2O'})
print(Reactivos)
print(Productos)
----

+*Out[27]:*+
----
OrderedDict([('(Cr(N2H4CO)6)4(Cr(CN)6)3', 10), ('H2SO4', 1399), ('KMnO4',
1176)])
OrderedDict([('CO2', 420), ('H2O', 1879), ('K2Cr2O7', 35), ('K2SO4',
223), ('KNO3', 660), ('MnSO4', 1176)])
----

+*In[ ]:*+
[source, ipython3]
----

----

You might also like