MoleculeQ

MoleculeQ[mol]

returns True if mol is a valid Molecule expression, and False otherwise.

Examples

Basic Examples  (3)

Test whether an expression is a valid Molecule expression:

A molecule with improper valence will issue a message, but is still MoleculeQ:

Adding a positive charge to the oxygen atom will fix the message:

Using an invalid bond type will not be MoleculeQ:

Wolfram Research (2019), MoleculeQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MoleculeQ.html.

Text

Wolfram Research (2019), MoleculeQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MoleculeQ.html.

CMS

Wolfram Language. 2019. "MoleculeQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MoleculeQ.html.

APA

Wolfram Language. (2019). MoleculeQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MoleculeQ.html

BibTeX

@misc{reference.wolfram_2024_moleculeq, author="Wolfram Research", title="{MoleculeQ}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/MoleculeQ.html}", note=[Accessed: 11-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_moleculeq, organization={Wolfram Research}, title={MoleculeQ}, year={2019}, url={https://reference.wolfram.com/language/ref/MoleculeQ.html}, note=[Accessed: 11-December-2024 ]}