muihuong.vnScent keeps what you forget. VI

Lab

Compare essential oils

Put the composition of two or three essential oils side by side. The table shows which compounds both share, which only one has, and how close the oils are chemically.

Input
2–3 essential oils
Output
merged composition table, closeness (cosine, 0–1), EU-labelled allergens
Data
158 of 168 oils have published composition, printed as the source gives it

Try: peppermint · cornmint · spearmint, Eucalyptus globulus · cajeput · tea tree, Chinese cassia · Ceylon cinnamon

Method

Compositional closeness

cos θ = Σ ai bi√(Σ ai²) · √(Σ bi²)

Each oil is a vector: one axis per compound, the coordinate is that compound’s percentage (ai, bi). A compound only one side has is 0 on the other. The cosine is 1 when the two compositions are in identical proportion and 0 when they share no compound. It measures proportion, not the total, so a table listing four main compounds can still be compared with one listing ten.

Cells that give a range

Where the source gives “73.7–85.8 %”, the table prints exactly that and the calculation uses the upper bound (85.8). Oils with only a standard’s permitted range (ISO, pharmacopoeia) are marked at the head of their column: that is what a compliant lot may contain, not what was measured.

The Class and Note columns

Chemical class and note come from each compound’s page; the note follows boiling point, the same rule used across the site.

Limits

  • Two samples of one species can differ more than two different species: composition shifts with chemotype, cultivar, origin, plant part and extraction. Each oil page uses the first table with figures in its article — one sample, not a species average.
  • The cosine ignores trace compounds. A compound under 1 % barely moves the angle between two vectors, yet it can decide the scent if its detection threshold is very low.
  • Close in composition does not mean interchangeable — in blending, in safety, or for any purpose.