Module: periodicCalc

Periodic Table Calculation Module

Since:
  • v1.4.1
Source:

Methods

(static) elemental(molecule, primary)

Calculates the elemental percent of a given element in a given molecule.

Parameters:
Name Type Description
molecule string

The molecular formula of the whole molecule.

primary string

The element in question.

Source:

(static) getAtomicMass(molecule, elementopt)

Calculates the atomic mass of a molecule

Parameters:
Name Type Attributes Description
molecule string

The molecular formula.

element string <optional>

Optional - Only get the mass of this element

Source:

(static) getValence(molecule) → {Number}

Looks up the valence of an element or compound

Parameters:
Name Type Description
molecule String

element or compound

Source:

(static) mg2meq(mg, mass, valence)

Converts from mg to mEq

Parameters:
Name Type Description
mg number

Milligrams

mass number

Molar mass of compound

valence number

Valence of compound

Source:

(static) mg2mmol(mg, mass)

Converts from mg to mmol

Parameters:
Name Type Description
mg number

Milligrams

mass number

Molar mass of compound

Source: