# Tagged Questions

Questions about using, converting, or interpreting units of measurement in Mathematica.

47 views

### How to convert output time in terms of seconds to minute with UnitConvert[]? [duplicate]

I have this code: AbsoluteTiming[g[x_, t_] := Sin[x]^90*(1 + t^2); Integrate[g[x, \[Tau]], {\[Tau], 0, t}]] with this output: I want to have convert unit to ...
36 views

### How to get Quantity to collect like terms?

In Mathematica numerical terms collect when their variables are equal. .2 "SERC" + .7 "SERC" (* 0.9 "SERC" *) However, numerical ...
70 views

### Atom weight in SI units

In chemistry is very common to use the units grams/mol for the atomic weigth, so the mass of one atom (of Tin, for example) is calculated as : massOfOneAtom = (0.11871 (Kg/mol))/(AvogadroConstant (1/...
50 views

117 views

### How do I extract units from an expression

I need to take the units off of this expression: (5 Coulomb)/(6 Second) In order to do some unit simplification. Is there any way to do this? I have tried Case, but could not get it to work ...
260 views

### How to extract numeric value?

Considering two situations: I have a string "F2.5" and Quantity["2.3s"]. How can the numeric value be extracted to have: ...
47 views

### TimeSeriesInsert issue with Quantity expressions

Solved in Mathematica v10.3 This first sample code works as expected: ...
56 views

### Using Quantity[] units causes errors in my calculation

I have an interpolation function in which I wish to use actual units. If I perform the calculation normally, it works fine and returns a proper FittedModel. To illustrate my problem, consider the ...
121 views

### How to create fast functions based on units?

Using units is a good means for rapidly developing code, since it provides some error control. Hovewer, using Mathamatica functions containing units appears to be copmutationally inefficient. ...
93 views

### Mathematica 10.1 doesn't recognize “Events” unit

Today's Wolfram blog post inspired me to play with the TemporalData and MovingMap features, and in the process of doing so, I ...
74 views

### Inequality involving Quantity stays unevaluated

Bug introduced in V10.1 and presisting through V10.4 An expression like this one a < x < b is represented as ...
290 views

### UnitConvert works despite wrong dimension - bug or feature?

I am surprised that there are some cases where unit conversion works, even if the input- and output dimensions are clearly different: ...