QuantityVariable

QuantityVariable[var,"pq"]

represents a variable with the label var and the corresponding physical quantity "pq".

QuantityVariable["pq"]

represents the unlabeled physical quantity "pq".

Details

  • Supported physical quantities include both physical and chemical quantities such as "Length", "ElectricCurrent", and "ChemicalPotential", as well as mathematical and financial quantities such as "Angle" and "Money".
  • Combinations of physical quantities are also supported.
  • pq can also be specified using a list of ordered dimension pairs (such as returned by QuantityVariableDimensions), indicating the magnitude of the pq in that dimension.
  • Information of a QuantityVariable may include the following properties:
  • "Identifier"identifier associated with quantity variable
    "PhysicalQuantity"physical quantity
    "UnitDimensions"physical dimensions
    "CanonicalUnit"canonical units

Examples

open allclose all

Basic Examples  (2)

A QuantityVariable represents a variable associated with a particular physical quantity:

QuantityVariable can be used to specify values in FormulaData:

Scope  (2)

QuantityVariable objects can be constructed using free-form input ():

Create a QuantityVariable using a combination of physical quantities:

Use a list of unit dimensions to set a physical quantity instead:

Properties & Relations  (6)

QuantityVariableIdentifier can be used to extract the symbol from a QuantityVariable:

The physical quantity can be recovered with QuantityVariablePhysicalQuantity:

FormulaData returns QuantityVariable objects:

The physical quantities used within QuantityVariable can be used to search for formulas using FormulaLookup:

Any symbol can be used with any physical quantity without restriction:

QuantityVariable can be used in symbolic results:

Use QuantityVariable in functions such as DSolve:

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

Text

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

BibTeX

@misc{reference.wolfram_2020_quantityvariable, author="Wolfram Research", title="{QuantityVariable}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/QuantityVariable.html}", note=[Accessed: 05-March-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_quantityvariable, organization={Wolfram Research}, title={QuantityVariable}, year={2019}, url={https://reference.wolfram.com/language/ref/QuantityVariable.html}, note=[Accessed: 05-March-2021 ]}

CMS

Wolfram Language. 2014. "QuantityVariable." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/QuantityVariable.html.

APA

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