Giter Site home page Giter Site logo

Accuracy about chemlib HOT 3 CLOSED

harirakul avatar harirakul commented on August 22, 2024
Accuracy

from chemlib.

Comments (3)

harirakul avatar harirakul commented on August 22, 2024

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.

wedobetter avatar wedobetter commented on August 22, 2024

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.

harirakul avatar harirakul commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.