hi thnx fr respns in the prog. the no. of atoms on the LHS of the chemical equation must be equal to the same on LHS of the equation. it will be sufficient for chemical balance check tk cr
----- Original Message ---- From: ANAND CHAVAN <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, 11 September, 2007 10:45:24 AM Subject: Re: [c-prog] Re: data structures frnd if u wanna to get ans. for this plz. explain u r query in breif with some example means i clear abuot that which type of chemical eqn. thanks Saurabh Jain <hundredrabh@ yahoo.co. in> wrote: --- In [EMAIL PROTECTED] com, Thomas Hruska <[EMAIL PROTECTED] > wrote: > > ashok wrote: > > hi > > i m new to this group, > > can any one help me in to make a prog. in C-lang > > using linked list to make check for wether any chemical > > equation is balanced one or not? > > If I recall my basic chemistry classes correctly, balancing an equation > can get pretty complex. According to what I understand OP only wants to *check* if the equations are balanced or not, *not balance them*. And if he really wants to balance the equations it can be really tricky, as many a times same elements on the LHS can give different compounds on the RHS depending on the catalysts and the temperature and pressure conditions. For example : H2S + O3 → S + O2 + H2O ..... eq1 3 H2S + 4 O3 → 3 H2SO4 ..... eq2 Same LHS components give different RHS compounds, or maybe a mixture of both, depending on the conditions. And if he wants to check only for the equality, implying just to check whether number of atoms of each element are equal on LHS and RHS. I think that should not be much of a problem as you only have to calculate the number of atoms of each element on either side of the equation. Which can be number of atoms in a compound/element times the number of molecules of the element/compound. As in the above example both the equations are balanced, with Sulphur"S" atoms = 1 in eq1 and 3 in eq2 Hydrogen"H" atoms = 2 in eq1 and 3*2 =6 in eq2 Oxygen"O" atoms = 3 in eq1 and 4*3 in eq2 And why OP wants to use specifically a linked list as he can use vectors or arrays which I think will be more useful/easy for implementing this. I hope it helps. ~Saurabh > It would help to refresh the memories of those > who don't remember chemistry very well if you gave us some examples to > work with (e.g. "Here is an unbalanced equation", "Here is the same > equation balanced" sort of things). > ------------ --------- --------- --- 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here. [Non-text portions of this message have been removed] Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ [Non-text portions of this message have been removed]
