Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Razonar  
#1 Posted : 04 December 2020 03:53:15(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. In the attached a procedure for balancing chemical equations, in a first try. It have not bugs, it have errors. But could be interesting.

ChemBal.sm (69kb) downloaded 54 time(s).
ChemBal.pdf (148kb) downloaded 64 time(s).

Best regards.
Alvaro.

Edited by user 04 December 2020 04:05:47(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Valentino  
#2 Posted : 04 December 2020 04:48:15(UTC)
Valentino


Rank: Member

Groups: Registered
Joined: 13/11/2020(UTC)
Posts: 28
Man
Mexico

Was thanked: 7 time(s) in 3 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi. In the attached a procedure for balancing chemical equations, in a first try. It have not bugs, it have errors. But could be interesting.

ChemBal.sm (69kb) downloaded 54 time(s).
ChemBal.pdf (148kb) downloaded 64 time(s).

Best regards.
Alvaro.


Wooooo OK Esta súper genial, y muy interesante, ingresé un balance de "glucosa" para producir "etanol", al parecer funciona bien para algunas reacciones, aunque para este ejemplo, ¿cómo puedo ponerlo?

Wooooo This super cool and very interesting, I wrote a balance of "glucose" to produce "ethanol", apparently it works well for some reactions, although for this example of sucrose I can't find how to put it

Offline Razonar  
#3 Posted : 04 December 2020 05:08:37(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Valentino Go to Quoted Post
...I wrote a balance of "glucose" to produce "ethanol", apparently it works well for some reactions, although for this example of sucrose I can't find how to put it



Hi. Thanks. I guess you can't balance that. Wolfram alpha can't too:

Clipboard02.jpg

If you add some water then you have this:

Clipboard03.jpg

which agrees with SMath:

Clipboard01.jpg

Best regards.
Alvaro.
Offline Jean Giraud  
#4 Posted : 04 December 2020 05:19:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Balancing chemical is difficult to near not feasible.
In Smath Community, super champion is Radovan [Martin as well].
We have few more and lots of those ... read first to get geared.

Solve Diophantine X_Y Plot.sm (22kb) downloaded 28 time(s).
Solve Diophantine Chemical Balance.sm (48kb) downloaded 26 time(s).
Solve Given_Find [CO2_6179 Butler].sm (164kb) downloaded 27 time(s).
Solve Diophantine.sm (169kb) downloaded 27 time(s).
Offline Razonar  
#5 Posted : 05 December 2020 13:44:05(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Improved version. Now it can handle reactions with ions balancing charges and accept parenthesis into compounds. Also, the procedure for rationalize it's more robust.

ChemBal v2.pdf (351kb) downloaded 54 time(s).
ChemBal v2.sm (144kb) downloaded 71 time(s).

Best regards.
Alvaro.

Edited by user 05 December 2020 13:58:45(UTC)  | Reason: Not specified

Offline Jean Giraud  
#6 Posted : 05 December 2020 20:22:09(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... more chemical balance from PseudoInverse.

Matrix PseudoInverse.sm (124kb) downloaded 28 time(s).
Offline Razonar  
#7 Posted : 07 December 2020 06:36:47(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... more chemical balance from PseudoInverse.
Matrix PseudoInverse.sm (124kb) downloaded 28 time(s).


Hi Jean. The purpose of this post is to show the power of use the null space of the matrix of coefficients of a chemical reaction for get information about it, not just only balancing. For do that, because it is tedious to introduce by hand this matrix, I write a simple code for do that, with some limitations but it can handle one level of parenthesis and ions. Also isn't easy to transform a vector for the nulls space with norm one into an equivalent basis vector with integers, and there are not much literature about that, or I can't found it. I also present a robust way to get a valid answer in a lot of cases.

I don't know why you introduce fractional coefficients in your chemical reaction, but I will show them later. Here you first example balanced in a few steps, balancing your first example with integers, as usual.

Clipboard11.gif

Notice that all coefficients in the matrix are positive and the null space method place by itself reactants and products. For the cases with a big dimension for the null space basis that give a precious information about the reaction.

This is the math involved. The pseudinverse or the row reduced skeleton form and others methods have not the theoretical power of the null space. The routine for find the null space use the plugin dot numerics for get the singular value decomposition for the compounds matrix. So the real math involved could be very complicate, but for instance this is the procedure for solve the problem "by hand"

Clipboard12.gif

Here is your second example, again, with integers coefficients.

Clipboard13.gif

If you're not convinced yet about what I'm talking about, here are your two examples with decimals in the compositions, solved with integers coeffs for the balanced equation.

Clipboard15.gif

Clipboard14.gif
Files:

ChemBal v2 Jeean.sm (102kb) downloaded 29 time(s).
ChemBal v2 Jeean.pdf (155kb) downloaded 19 time(s).
ChemBal v2 Jeean with decimals.sm (102kb) downloaded 35 time(s).
ChemBal v2 Jeean with decimals.pdf (160kb) downloaded 21 time(s).

Best regards.
Alvaro.
Offline Jean Giraud  
#8 Posted : 09 December 2020 00:13:50(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Thanks Alvaro for your personally addressed documents.
I understand your superb approach. There was an international Standard
way to write chemical balance. I'm not update on that.
The fractional in the matrix come from the originator paper [Risteski].
It may have to do with some secret perfume recipes ?
The attached exploded version accommodates Table region.
Have a good day ... Jean

Matrix PseudoInverse Explode.sm (223kb) downloaded 25 time(s).
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.