Skip to content

ChemBalance facilitates the balancing of chemical equations. It employs a simplified syntax that utilizes specific symbols to represent chemical formula, elements, charges, and operations.

License

Notifications You must be signed in to change notification settings

MRNamdari/chembalance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChemBalance: A Dynamic Chemical Equation Balancer

This repository contains the source code for ChemBalance, a web application built with vanilla JavaScript (TypeScript) that allows users to dynamically balance chemical equations in a fun calculator-like environment.

you can play with it here.

Help & Shortcuts

Shortcut Description
⇧ + 0 Clear all elements (AC)
⇧ + 1 Compute coefficients to balance the equation
⇧ + 2 Copy the balanced equation to clipboard
↑ or ↓ Select the upper/lower element

Some Keys function differently wheter the focus is on table or on console.

key Table Console
Enter Add selected element balance the equation
← or → Select previous/next element Move cursor to left/right

Chemical Equation Formatting:

  1. Formulae and elements are enclosed within brackets: [].
[H O*2]
  1. Multiplication is denoted using *.
[Cl*2]
[Al [O H]*3]
  1. Charges are indicated using ^.
[O H]^-1
  1. Equations are constructed using + (reactants) and (products).
[2*Al [S O*3]*3] + [Na O H] ⇒ [Na*2 S O*3] + [Al [O H]*3]
  1. Free electrons are represented using -.
[H*2 O] + [Mn O*4]^-1 -1 ⇒[Mn O*2] + [O H]^-1
  1. Setting a default coefficient on a formula:
[H*2] + 1*[O*2] ⇒ [H*2 O]

About

ChemBalance facilitates the balancing of chemical equations. It employs a simplified syntax that utilizes specific symbols to represent chemical formula, elements, charges, and operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published