AgNO_{3}(aq) + NaCl(aq) --> AgCl(s) + NaNO_{3}(aq)
be expected to write the total ionic equation,
Ag^{+1}(aq) + NO_{3}^{-1}(aq) + Na^{+1}(aq) + Cl^{-1}(aq) --> AgCl(s) + Na^{+1}(aq) + NO_{3}^{-1}(aq)
Then give the net ionic equation
Ag^{+1}(aq) + Cl^{-1}(aq) --> AgCl(s)
I have discovered that contextReaction.pl does not like all the charges and state designators.
Has anyone modified contextReaction.pl to do something like this, or does anyone have similar problems currently working? any help would be appreciated.
I have also updated (fixed) many of my extant chemistry problems if anyone wants copies, I can share them, just let me know.
I am also interested in any routines to calculate formula mass from a formula. My current approach is not too efficient. I have a database of all the compounds with atomic number and total amounts of constituents that I search and calculate from that information. I have had some success with using regexes to extract information from a TeX formula, but have not gotten anything to work reliably (I've been using the CPAN modules for Chemistry::..., but have not gotten far enough.
Any help is appreciated.