QuantityVariable
✖
QuantityVariable
represents a variable with the label var and the corresponding 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, as well as "PhysicalQuantity" entities.
- 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 allBasic Examples (2)Summary of the most common use cases
A QuantityVariable represents a variable associated with a particular physical quantity:

https://wolfram.com/xid/0pva8idlee-mqc3am

QuantityVariable can be used to specify values in FormulaData:

https://wolfram.com/xid/0pva8idlee-ejf04w

Scope (2)Survey of the scope of standard use cases
QuantityVariable objects can be constructed using free-form input ():

https://wolfram.com/xid/0pva8idlee-37phan

Create a QuantityVariable using a combination of physical quantities:

https://wolfram.com/xid/0pva8idlee-x3kngl

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

https://wolfram.com/xid/0pva8idlee-7n6m6c

Properties & Relations (8)Properties of the function, and connections to other functions
QuantityVariableIdentifier can be used to extract the symbol from a QuantityVariable:

https://wolfram.com/xid/0pva8idlee-83t1sq


https://wolfram.com/xid/0pva8idlee-sb35dr

The physical quantity can be recovered with QuantityVariablePhysicalQuantity:

https://wolfram.com/xid/0pva8idlee-0eofsl

FormulaData returns QuantityVariable objects:

https://wolfram.com/xid/0pva8idlee-dzr10x

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

https://wolfram.com/xid/0pva8idlee-srijyl

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

https://wolfram.com/xid/0pva8idlee-whitzc

QuantityVariable can be used in symbolic results:

https://wolfram.com/xid/0pva8idlee-5npeqe


https://wolfram.com/xid/0pva8idlee-t8sa5p

Use QuantityVariable in functions such as DSolve:

https://wolfram.com/xid/0pva8idlee-g0w38k


https://wolfram.com/xid/0pva8idlee-00qxl4

"PhysicalQuantity" entities can be used as arguments for QuantityVariable:

https://wolfram.com/xid/0pva8idlee-lukqm7

Use the ResourceFunction "PhysicalQuantityLookup" to find physical quantities and quantity variables from units and quantities:

https://wolfram.com/xid/0pva8idlee-0vlnt4


https://wolfram.com/xid/0pva8idlee-e5wdfr

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).
Wolfram Research (2014), QuantityVariable, Wolfram Language function, https://reference.wolfram.com/language/ref/QuantityVariable.html (updated 2019).
CMS
Wolfram Language. 2014. "QuantityVariable." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/QuantityVariable.html.
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
Wolfram Language. (2014). QuantityVariable. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuantityVariable.html
BibTeX
@misc{reference.wolfram_2025_quantityvariable, author="Wolfram Research", title="{QuantityVariable}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/QuantityVariable.html}", note=[Accessed: 09-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_quantityvariable, organization={Wolfram Research}, title={QuantityVariable}, year={2019}, url={https://reference.wolfram.com/language/ref/QuantityVariable.html}, note=[Accessed: 09-July-2025
]}