Returns an array of objects describing physical constants whose names match the search string.
findConstants(searchString?)
searchString optional
A constant name (full or partial) to search for.
If omitted, returns all constants.
An array of objects describing physical constants.
Each physical constant object contains the following properties:
name - the name of the constant
value - the value of the constant
unit - the string describing the unit of the constant
uncertainty - the uncertainty of the constant
If no constants were found, returns an empty array.
Physics.findConstants("wien")
[{
name: "Wien displacement law constant",
value: 0.0028977685,
unit: "m K",
uncertainty: 5.1e-9
}, {
name: "Wien frequency displacement law constant",
value: 58789257570,
unit: "Hz K^-1",
uncertainty: 0
}, {
name: "Wien wavelength displacement law constant",
value: 0.002897771955,
unit: "m K",
uncertainty: 0
}]
Physics.findConstants("ufo")
[]