Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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 .

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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

A list of lengths, all given in meters:

In[1]:=
Click for copyable input
Out[1]=

Extract its magnitudes and units separately:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Normalize the quantity array:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input

A list of pairs :

In[1]:=
Click for copyable input
Out[1]=

Extract its magnitudes and units separately:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Convert units:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Convert a normal array of quantities into a QuantityArray representation:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2015
(10.1)