Skip to main content
1-Visitor
January 5, 2012
Solved

Balancing Chemical Equations

  • January 5, 2012
  • 2 replies
  • 2622 views

I am using a matrix method for balancing a chemical equations. As a result, I get a vector x, which contains a set of non-integer numbers. Next, I need this vector is multiplied by a number Y, to obtain a set of integers. Total sum of these integers should be as small as possible.
How do I calculate the number Y?
See the picture and Mathcad worksheet in attach.

050112.GIF

Viktor

Best answer by Fred_Kohlhepp

A brute force approach

2 replies

24-Ruby III
January 5, 2012

In this case, not even enough constraints on the coefficients in the matrix "Coeffs".

23-Emerald I
January 5, 2012

A brute force approach

1-Visitor
January 5, 2012

Thank you, Mr. Fred!
It really works!