1

Im trying to Create a molecule using a condensed formula as input.I tried some other condensed formulas but it always get an unevaluated Result:

Molecule["(CH3)2CHOH"]

Where did i go wrong?

Arman
  • 162
  • 7

1 Answers1

2

Have you tried SMILES or Canonical SMILES? They are defined much more rigorously, and allow the distinction between isopropanol and methoxyethane:

Molecule["C(C(C([H])([H])[H])(O[H])[H])([H])([H])[H]"]
(*    isopropanol    *)

Molecule["CC(C)O"]
(*    isopropanol    *)

Molecule["C(C(OC([H])([H])[H])([H])[H])([H])([H])[H]"]
(*    methoxyethane    *)

Molecule["CCOC"]
(*    methoxyethane    *)
Roman
  • 47,322
  • 2
  • 55
  • 121