Miss any of our Open RFC calls?Watch the recordings here! »

chem-eb

0.1.8 • Public • Published

Sky chem

chemLogo

A friend's kid is going to high school. I wrote a Chemical Equation Balancing code for him.

Install

npm i chem-eb

Test

npm test

Use

let balanceEq = require('chem-eb')
console.log(balanceEq('P+O2=P2O5'))
console.log(balanceEq('Fe2S3O12+NaOH=Na2SO4+FeO3H3')) // 会用到超定方程求解

NOTICE:

when (OH)2 pls O2H2 input

TODO:

  • over-determined equation
  • Chemical functional groups unfold

Install

npm i chem-eb

DownloadsWeekly Downloads

10

Version

0.1.8

License

MIT

Unpacked Size

80.3 kB

Total Files

6

Last publish

Collaborators

  • avatar