# Docs say Units change physical displacement??

**URL:** <https://community.wolfram.com/t/docs-say-units-change-physical-displacement/1949>\
**Category:** Questions\
**Tags:** mathematica, units\
**Created:** [April 11, 2014, 2:27am UTC](https://community.wolfram.com/t/docs-say-units-change-physical-displacement/1949 "2014-04-11T02:27:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![franki](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@franki](https://community.wolfram.com/u/franki)\
**Post date:** [April 11, 2014, 2:27am UTC](https://community.wolfram.com/t/docs-say-units-change-physical-displacement/1949/1 "2014-04-11T02:27:12Z")

</div>

Catastrophically wrong documentation?  
tutorial/SymbolicCalculationsWithUnits under Integrate section.

There are 4 examples of “Calculate displacement over a given time.”. All 4 examples have the same physical integrand and limits, but differing units on the integration variable. The results of 1st and 2nd example (250m) and the 3rd and 4th (25/6 m) are saying that the integrated displacement depends on the choice of units for the integration variable??? That’s dead wrong!!! Or what am I missing (a brain)?

Here is a cut/paste from the docs:

```auto
Calculate displacement over a given time.

In[1]:= Integrate[Quantity[5, "Meters"/"Seconds"^2]*t, {t, Quantity[0, "Seconds"], 
  Quantity[10, "Seconds"]}]

Out[1]= Quantity[250, "Meters"]

In this form, the variable t is explicitly declared to be measured in seconds.

In[2]:= Integrate[Quantity[5, "Meters"/"Seconds"^2]*t, {Quantity[t, "Seconds"], 
  Quantity[0, "Seconds"], Quantity[10, "Seconds"]}]

Out[2]= Quantity[250, "Meters"]

Here, the variable t is explicitly declared to be measured in minutes, and the endpoints are automatically converted to the correct units.

In[3]:= Integrate[Quantity[5, "Meters"/"Seconds"^2]*t, {Quantity[t, "Minutes"], 
  Quantity[0, "Seconds"], Quantity[10, "Seconds"]}]

Out[3]= Quantity[25/6, "Meters"]

In[4]:= Integrate[Quantity[5, "Meters"/"Seconds"^2]*t, {Quantity[t, "Minutes"], 
  Quantity[0, "Minutes"], Quantity[1/6, "Minutes"]}]

Out[4]= Quantity[25/6, "Meters"]

Calculate displacement symbolically.

In[5]:= Integrate[Quantity[a, "Meters"/"Seconds"^2]*t, {t, Quantity[ti, "Seconds"], 
  Quantity[tf, "Seconds"]}]

Out[5]= Quantity[((a tf^2)/2 - (a ti^2)/2), "Meters"]

```

---

<div class="post-metadata">

**Author:** ![cfrench](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/cfrench/32/27859_2.png) [@cfrench](https://community.wolfram.com/u/cfrench)\
**Post date:** [April 16, 2014, 5:03pm UTC](https://community.wolfram.com/t/docs-say-units-change-physical-displacement/1949/2 "2014-04-16T17:03:22Z")

</div>

Include the Quantity wrapper around t in the integrand.

```auto
In[]:= Integrate[Quantity[5, "Meters"/"Seconds"^2]*Quantity[t, "Minutes"], 
{Quantity[t, "Minutes"], Quantity[0, "Seconds"], Quantity[10, "Seconds"]}]
Out[]= Quantity[250, "Meters"]

```

---

<div class="post-metadata">

**Author:** ![franki](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@franki](https://community.wolfram.com/u/franki)\
**Post date:** [April 18, 2014, 4:04am UTC](https://community.wolfram.com/t/docs-say-units-change-physical-displacement/1949/3 "2014-04-18T04:04:21Z")

</div>

Thanks, Christopher, that is a helpful workaround.

Yet I’m still concerned that implementation of Quantity[], not to mention a portion of its documentation, is seriously flawed. I’ve reported this to Wolfram Support.
