- #1

- 259

- 0

Can u guys pls give me a logic to balance cheical euations. I have done some work in java but am unable to get any balancing equation logic. Can anyone tell me how to make computer perform some fuction in a specific order using Java

- Thread starter benzun_1999
- Start date

- #1

- 259

- 0

Can u guys pls give me a logic to balance cheical euations. I have done some work in java but am unable to get any balancing equation logic. Can anyone tell me how to make computer perform some fuction in a specific order using Java

- #2

- 259

- 0

Hello,

Is'int there someone to help me. pls i need help. i am desperate.

-Benzun

Is'int there someone to help me. pls i need help. i am desperate.

-Benzun

- #3

- 36

- 0

- #4

dduardo

Staff Emeritus

- 1,890

- 3

This is more of a linear equations/trial-and-error problem then anything else.

Let's take a simple example:

Cu + O2 ----> Cu2O

1) Give each portion of the equation a unique multiplier

X1*Cu + X2*O2 ---> X3*Cu2O

2) Equate same elements

X1*Cu = X3*Cu2

X2*O2 = X3*O

3)Bring subscript to front

X1*Cu = 2*X3*Cu

2*X2*O = X3*O

4) Equate Cofficients

X1 = 2*X3

2*X2 = X3

5) Select a variable, say X3, and equate it to 1. Sove for other cofficients. Are all the cofficients integers? No? Try X3=2. Are all the cofficients integers? Yes? X1 = 4, X2=1, X3=2

Solution:

4Cu + O2 ----> 2Cu2O

Hint: Your definitely going to use arrays to store the equation cofficients.

Let's take a simple example:

Cu + O2 ----> Cu2O

1) Give each portion of the equation a unique multiplier

X1*Cu + X2*O2 ---> X3*Cu2O

2) Equate same elements

X1*Cu = X3*Cu2

X2*O2 = X3*O

3)Bring subscript to front

X1*Cu = 2*X3*Cu

2*X2*O = X3*O

4) Equate Cofficients

X1 = 2*X3

2*X2 = X3

5) Select a variable, say X3, and equate it to 1. Sove for other cofficients. Are all the cofficients integers? No? Try X3=2. Are all the cofficients integers? Yes? X1 = 4, X2=1, X3=2

Solution:

4Cu + O2 ----> 2Cu2O

Hint: Your definitely going to use arrays to store the equation cofficients.

Last edited:

- #5

- 36

- 0

Dngrsone ----> head explodey

- #6

dduardo

Staff Emeritus

- 1,890

- 3

If there is anything confusing about chemistry it is definitely nomenclature. Balancing is easy.

- #7

- 36

- 0

If that's so, then what happened to the other two copper atoms in the last equation?dduardo said:If there is anything confusing about chemistry it is definitely nomenclature. Balancing is easy.

Last edited:

- #8

dduardo

Staff Emeritus

- 1,890

- 3

What do you mean? The 4 copper atoms are combining with the O2 molecule to create 2 Copper (I) Oxide molecules.

Copper (I) Oxide: Cu -- O -- Cu

Copper (I) Oxide: Cu -- O -- Cu

Last edited:

- #9

- 36

- 0

- #10

dduardo

Staff Emeritus

- 1,890

- 3

That's why it is called an unbalanced equation to start with. The reaction couldn't happen otherwise. The final solution is what you need to make the reaction happen.

Let me put it this way: Say your making a cake with a gallon of milk and a tablespoon of cake mix. You know this combination is not going to work. Thats why you need to scale or "balance" the ingredients so that the cake does come out right.

Let me put it this way: Say your making a cake with a gallon of milk and a tablespoon of cake mix. You know this combination is not going to work. Thats why you need to scale or "balance" the ingredients so that the cake does come out right.

Last edited:

- #11

- 36

- 0

Here I was thinking he wanted to know what happens when you combine two ingredients... getting all the valences, ionizations and all that crap straight and knowing how the chemicals will actually interact is what causes my head to go explody.

- #12

dduardo

Staff Emeritus

- 1,890

- 3

Yeah, I think you where making the problem harder than it really is.

- Last Post

- Replies
- 1

- Views
- 2K

- Last Post

- Replies
- 3

- Views
- 7K

- Last Post

- Replies
- 7

- Views
- 15K

- Last Post

- Replies
- 2

- Views
- 1K

- Last Post

- Replies
- 14

- Views
- 1K

- Replies
- 1

- Views
- 3K

- Replies
- 1

- Views
- 2K

- Replies
- 1

- Views
- 3K

- Replies
- 0

- Views
- 2K