Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Chemical Equation Balance Pin
David198720-Jul-11 11:27
David198720-Jul-11 11:27 
GeneralRe: Chemical Equation Balance Pin
Luc Pattyn20-Jul-11 14:31
sitebuilderLuc Pattyn20-Jul-11 14:31 
GeneralRe: Chemical Equation Balance Pin
Richard Andrew x6420-Jul-11 15:07
professionalRichard Andrew x6420-Jul-11 15:07 
GeneralRe: Chemical Equation Balance Pin
Luc Pattyn20-Jul-11 15:28
sitebuilderLuc Pattyn20-Jul-11 15:28 
GeneralRe: Chemical Equation Balance Pin
stephen.darling21-Jul-11 2:50
stephen.darling21-Jul-11 2:50 
GeneralRe: Chemical Equation Balance Pin
David198721-Jul-11 3:06
David198721-Jul-11 3:06 
GeneralRe: Chemical Equation Balance Pin
stephen.darling21-Jul-11 4:08
stephen.darling21-Jul-11 4:08 
AnswerRe: Chemical Equation Balance Pin
dasblinkenlight20-Jul-11 16:26
dasblinkenlight20-Jul-11 16:26 
As others have noted, the problem can be re-stated in terms of a system of linear equations. A particularly easy method to solve such systems (in relative terms, of course - it's a decent homework assignment for a second-year CS student) is the method of Gaussian Elimination[^].

Here is a Java implementation of what you are trying to build[^], conveniently packaged with a source code. The implementation is very easy to follow, even if you do not know Java (but do know some C#).

Good luck!
GeneralRe: Chemical Equation Balance Pin
stephen.darling21-Jul-11 2:51
stephen.darling21-Jul-11 2:51 
AnswerRe: Chemical Equation Balance Pin
Ennis Ray Lynch, Jr.21-Jul-11 3:45
Ennis Ray Lynch, Jr.21-Jul-11 3:45 
QuestionO'Reilly Confused me on classes Pin
Herboren20-Jul-11 6:47
Herboren20-Jul-11 6:47 
AnswerRe: O'Reilly Confused me on classes Pin
PIEBALDconsult20-Jul-11 7:04
mvePIEBALDconsult20-Jul-11 7:04 
AnswerRe: O'Reilly Confused me on classes PinPopular
Richard MacCutchan20-Jul-11 7:05
mveRichard MacCutchan20-Jul-11 7:05 
GeneralRe: O'Reilly Confused me on classes Pin
Herboren20-Jul-11 7:07
Herboren20-Jul-11 7:07 
GeneralRe: O'Reilly Confused me on classes Pin
Richard MacCutchan20-Jul-11 7:34
mveRichard MacCutchan20-Jul-11 7:34 
QuestionLucene.Net: using NOT operator Pin
NarVish20-Jul-11 4:11
NarVish20-Jul-11 4:11 
AnswerRe: Lucene.Net: using NOT operator Pin
Dave Kreskowiak20-Jul-11 7:14
mveDave Kreskowiak20-Jul-11 7:14 
AnswerRe: Lucene.Net: using NOT operator Pin
dmoses4820-Jul-11 9:22
dmoses4820-Jul-11 9:22 
GeneralRe: Lucene.Net: using NOT operator Pin
NarVish20-Jul-11 20:03
NarVish20-Jul-11 20:03 
QuestionLINQ JOIN Pin
PozzaVecia20-Jul-11 2:58
PozzaVecia20-Jul-11 2:58 
AnswerRe: LINQ JOIN Pin
Mirko198020-Jul-11 3:38
Mirko198020-Jul-11 3:38 
GeneralRe: LINQ JOIN Pin
PozzaVecia20-Jul-11 5:21
PozzaVecia20-Jul-11 5:21 
GeneralRe: LINQ JOIN Pin
Pete O'Hanlon20-Jul-11 5:22
mvePete O'Hanlon20-Jul-11 5:22 
GeneralRe: LINQ JOIN Pin
PozzaVecia20-Jul-11 5:27
PozzaVecia20-Jul-11 5:27 
GeneralRe: LINQ JOIN Pin
Pete O'Hanlon20-Jul-11 5:42
mvePete O'Hanlon20-Jul-11 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.