"ComputedQuantity" (interpreter type)

Quantity derived by computation.

DetailsDetails

Allowed FormsAllowed Forms

  • Any natural-language quantity supported by "Quantity", or a computation yielding one.

Restriction SpecificationsRestriction Specifications

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

Interpret quantities involving computations:

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

Computations with data are allowed:

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

Restrict and convert to a unit:

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

Restrict to a given physical quantity:

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

Accept unitless inputs in the presence of an appropriate restriction:

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

Attach the unit to the interpreted number:

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

Restrict with a bound and convert to a given unit:

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

Restrict in an interval:

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