Re: Stoichiometry Program
What you ask here is very general. What exactly do you need help with?
Designing the program? Writing the program? The chemistry issue itself?
Re: Stoichiometry Program
I guess I'm missing the conceptual and implementation parts, ie- where are the matrices/equations derived from and how does that translate into the code. I picked up a lot from http://www.personal.psu.edu/jzl157/balance.htm and it seems that you just add the subscripts from either side, and perform the balancing operations from there but I still can't seem to get a good grasp of it.
Sorry if this is confusing as I'm still pretty confused myself.. =s
Re: Stoichiometry Program
Still, you are asking very general questions. I can't understand which help exactly do you need.
Consider the follwing question that may guide you:
Which kind of equation do you want to balance?
Which programming language do you want to use? (I guess Java because you are writing in this forum)
What is the input and output of your program will look like?
Which data are you going to hold and in which data structures?
What is the scheme (algorithm) of balancing a given equation?
First, try to answer those questions, and by this way, all the design and implementation issues will be much clearer. Of course you are welcome to consult here with any issue comes on your mind.
Re: Stoichiometry Program
If you ever get this working I'd love to have a look at it, I've been wondering about this for a while.
Sorry I can't be of any assistance, I'm a total noob.
Re: Stoichiometry Program
Quote:
Originally Posted by
-tr
I guess I'm missing the conceptual and implementation parts, ie- where are the matrices/equations derived from and how does that translate into the code.
First you have to find the algorithm for the task. This is not a Java problem. Once you have the algorithm, you need to figure out how to apply it in the abstract (e.g. on paper) in a stepwise way. This isn't a Java problem either. When you have worked out exactly the steps needed to execute the algorithm, and what data items you need to keep track of values, then you can translate it into a programming language, e.g. Java. When you're starting out, it's worth trying to write some pseudo-code first, to knock the thing into shape, so you don't get distracted by syntactic technicalities.
Trying to do more than one of these phases at the same time will probably be far slower and more frustrating than doing each phase separately.
The hardest part of the software task is arriving at a complete and consistent specification, and much of the essence of building a program is in fact the debugging of the specification...
F. Brooks
Re: Stoichiometry Program
Yeah, I suppose this program might be a little out of my scope for a bit. It's been far too long since I've done any math like that.
But, if anybody has any links/whatever to help me get started I'd be glad to look at it. =)