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:

Introduced in 2014
 (10.0)
 |
Updated in 2017
 (11.2)
2019
 (12.0)