WLJS LogoWLJS Notebook

QuantityVariablePhysicalQuantity

QuantityVariablePhysicalQuantity[var] returns the physical quantity associated with the quantity variable var.

  • QuantityVariablePhysicalQuantity[var, type] returns the physical quantity using the format type.

This function extracts the underlying physical quantity from a QuantityVariable.

Examples

QuantityVariablePhysicalQuantity[\[FormalT]]
v = QuantityVariable["velocity", "Speed"];
QuantityVariablePhysicalQuantity[v]
QuantityVariablePhysicalQuantity[QuantityVariable["m", "Mass"], "Abbreviation"]

*See the official Wolfram Language Reference for more details.

On this page