ScientificConstants - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Science and Engineering : Scientific Constants : Functions : ScientificConstants/HasElement

ScientificConstants

 HasElement
 test whether an element or isotope is in the ScientificConstants package

 Calling Sequence HasElement( descriptor )

Parameters

 descriptor - name

Description

 • The HasElement( descriptor ) command returns true if descriptor is the name or symbol of an element, or the isotope syntax of an isotope in the ScientificConstants package. Otherwise, it returns false.
 Note that if descriptor is an isotope syntax with mass number less than atomic number, the isotope syntax is invalid and an error is returned.
 • For a description of the isotope syntax, see Element.

Examples

 > $\mathrm{with}\left(\mathrm{ScientificConstants}\right):$
 > $\mathrm{HasElement}\left(\mathrm{Fe}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{HasElement}\left(\mathrm{Fi}\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{HasElement}\left(\mathrm{ytterbium}\right)$
 ${\mathrm{true}}$ (3)
 > $\mathrm{HasElement}\left(114\right)$
 ${\mathrm{true}}$ (4)
 > $\mathrm{HasElement}\left({C}_{14}\right)$
 ${\mathrm{true}}$ (5)
 > $\mathrm{HasElement}\left(\left[101,256\right]\right)$
 ${\mathrm{true}}$ (6)
 > $\mathrm{HasElement}\left({H}_{7}\right)$
 ${\mathrm{false}}$ (7)

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam