Hi guys. First of all, I am aware that there is a somewhat similar thread over here. However, it was never really answered and the code given was obscure (I don't like copying stuff anyway)
Either way... I want to balance a chemical equation. However, I don't need help on parsing a string or anything (which is what most other search results on Google turn up), because the compounds on either side are already separated into their constituent elements, as this is not a standalone app but part of a larger project I'm working on.
I also know that I can balance a chemical equation mathematically using matrices and a set of simultaneous equaations (And I plan to do so using the Apache Commons Math Library).
My problem, then, is how to put transform a bunch of elements on two sides to a bunch of solvable equations representable in matrix form... Programatically.
Thanks for all the help!
Edited 3 Years Ago by requimrar