Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

QuantityArray

QuantityArray[mags,unit]
represents an array of quantities with magnitudes mags and common unit.

QuantityArray[mags,{unit1,unit2,}]
represents an array of lists of quantities with units {unit1,unit2,}.

QuantityArray[quants]
converts an array of Quantity objects into a single QuantityArray object.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

A list of lengths, all given in meters:

 In[1]:=
 Out[1]=

Extract its magnitudes and units separately:

 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=

Normalize the quantity array:

 In[4]:=
 Out[4]=
 In[5]:=

A list of pairs {time,length}:

 In[1]:=
 Out[1]=

Extract its magnitudes and units separately:

 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=

Convert units:

 In[4]:=
 Out[4]=
 In[5]:=
 Out[5]=

Convert a normal array of quantities into a QuantityArray representation:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=