Comments (3)
1 gram of the third compound in the formula (K₂HPO₄) is equivalent to 0.006 moles of K₂H₁P₁O₄, using its molar mass (174.17 g/mol). Using the 2:1 stoichiometric ratio of KOH : K₂HPO₄ in the balanced equation, this would be 0.012 mol KOH. This results in 0.673 grams of KOH, using its molar mass (56.1 g/mol).
1000 grams of K₂HPO₄ is equivalent to 5.741 moles of K₂HPO₄, using its molar mass (174.17 g/mol). In this case, that would give us 11.482 mol of KOH using the 2:1 stoichiometric ratio. This results in 644.25 grams of KOH, using its molar mass (56.1 g/mol).
Simply using 1000 times more mass of a product in a reaction won't mean that 1000 times more mass of a reactant will be needed. It depends also on the molar masses of the compounds in question, and stoichiometric ratios. I don't see any problems with the current calculation or its accuracy.
from chemlib.
The problem is that all the round(value, 3)
should be left to the users to do at the end of their calculations.
I'd love to see that 1 gram of K2HPO4 equivalent to 0.005741516908767 moles
By the way I forgot to mention that I really love this library and it's coming up really interesting, thank you!
from chemlib.
Oh ok, thanks for the clarification. Perhaps I will add an option for the user to override the default number of decimal values in the calculations.
from chemlib.
Related Issues (13)
- Compounds in SMILES format
- Error HOT 1
- Key Error while using limiting reagent function. HOT 2
- Combustion of benzene
- Insoluble salts in galvanic elements HOT 1
- Balancer only takes 2 reacts/products
- Ds, Rg and Cn are not objects in Element HOT 1
- A few features to request
- oxidation number
- empirical-formula-method
- smarter parsing
- Galvanic cell diagram drawing fails if the font "arial.ttf" does not exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chemlib.