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

learn more… | top users | synonyms (2)

2
votes
1answer
30 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 ...
4
votes
1answer
67 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/...
0
votes
0answers
34 views

How to set UnitSystem permanently

I would like to set the system of units ($UnitSystem) permanently to "Metric". I know that I can do ...
0
votes
0answers
22 views

Set default unit for information rate and others

I am using mathematica to convert units to canonical form, like I have 0.2 KBYTE/s and I want to get 200. So I want to see all '...
12
votes
1answer
172 views

Is Quantity necessary?

Soft question: are Quantity - and newly added MixedUnit and MixedMagnitude - needed in a ...
1
vote
2answers
46 views

How to remove the units in matrix?

...
3
votes
0answers
59 views

Custom units Compatible with Conversions [closed]

I am writing a Mathematica Palette to work with units, and am wondering if anyone knows a way to define new units outside of the standard ones that come with Mathematica 9. I do know of the ...
0
votes
0answers
23 views

Evaluating UnitConvert inside LogPlot

I imported several Physical Quantities with their units and doing single calculations with them works fine and return the right unit, which I can change by UnitConvert[]... For the LogPlot I made a ...
1
vote
2answers
69 views

Simplifying expressions containing unit of zero magnitude

I have obtained the following form as a part of a computation: k (Quantity[0, "Kilohertz"]) + Quantity[1/500, "Kilohertz"] This is typeset as Here, ...
6
votes
0answers
85 views

Spectral Radiance unit Flicks is not correct

I was pleasantly supersized that Mathematica (10.3, 10.4 and 10.4.1) had the unit $\text{flick}$ until I spent several hours trying to figure out why all my calculations were million times off! I ...
4
votes
2answers
86 views

How to override DisplayForm of (mixed) time Quantity

What's the best approach to overriding DisplayForm for specific types of Quantity eg time especially w/ mixed units? Current is ...
7
votes
2answers
115 views

How to prevent $\text{Quantity}$ calculations from converting units

I have an accrual calculation that I would like to preserve the units even though they are of the same dimension (e.g. time). For example, I would like the following ...
3
votes
0answers
104 views

How to insert a formula to FormulaData?

Unit Checking Demo In order to throw a unit error,we run the code ...
1
vote
1answer
48 views

How to correctly use FormulaData

I am exploring some of the functions involving units and formulas, and wondered how to input quantities if the variable has a subscript. This works ...
2
votes
1answer
46 views

Get Isotope Data and Electron Mass in Same Units - kg and Kilograms

I'm trying to find the nuclear mass of $^{238}\text{U}$. To do this, I subtract the electron mass from the atomic mass. I'd like to find the final answer in kilograms. I'd also like to use Mathematica'...
7
votes
1answer
74 views

Why does the front-end no longer like MixedRadix as an argument for UnitConvert?

I often find MixedRadix very useful for make certain kinds of unit conversions. For example, ...
6
votes
1answer
100 views

DateListPlot failing on Inflation Adjusted TimeSeries

Ran across this (possible bug) today. Here's historical West Texas Intermediate oil prices: ...
2
votes
1answer
178 views

Why do I get QuantityUnits`Private`ToQuantity when trying to use units?

I'm unable to use units in mathematica (10.3.1) When I do Quantity[500, "Feet"] + Quantity[50, "Meters"] the answer I get is ...
4
votes
2answers
131 views

What's wrong in “Watt”/(“Centimeters”)^2 [closed]

Why Mathematica returns the following input unevaluated? ...
3
votes
0answers
163 views

Physical constants seems broken in 10.3

For example, if I just enter Quantity["GravitationalConstant"], then the result is this ...
1
vote
1answer
134 views

Differential Equations and Unit Notation

What do I get the Syntax::sntxi: Incomplete expression; more input is needed . error when I try to use the math palette for derivatives? What does the dot in ...
5
votes
1answer
87 views

Plotting with units — getting the right axes labels

I have a simple example: Plot[UnitConvert[Quantity[x, "DegreesCelsius"], "DegreesFahrenheit"], {x, -25, 300}, AxesLabel -> Automatic] The x-axis has the ...
1
vote
0answers
72 views

Convert large KML coordinate datasets to UTM [closed]

I was wondering if there are ways to convert massive amounts of KML coordinates into UTM coordinates using Mathematica. Other programs would also be acceptable. Thanks. I have the KML file from ...
0
votes
1answer
68 views

Electromagnetism units conversion in Mathematica 10 (possible bug)

Is this a bug in Mathematica 10? Why can't I convert Amps/m to Gauss? ...
0
votes
0answers
31 views

A complete list of quantities in Mathematica 9/10? [duplicate]

Often times when I'm traveling I don't have internet access and cannot reliably use Wolfram Alpha for unit look-up. Additionally, Alpha can always choose to change how it interprets the units I enter, ...
1
vote
2answers
99 views

Converting Units in formula

I have the following formula ...
4
votes
1answer
147 views

Calculating consumed internet data from bitmap of chart

My internet connection has a speed drawn up by the y axes has a scale as KB per second. and the x axes is time elapsed. if the x axes be from 0 to 40 minutes how can I calculate total consumed ...
5
votes
0answers
58 views

Calculations with “Quantities” Run Slow. What am I doing wrong?

This code plots a 1000 point black body radiation curve in 0.7 seconds. ...
2
votes
0answers
52 views

How would one make units work with a variable of unknown magnitude?

So, right now, I am working on setting various quantities up as functions of R. R will be varying later on, so right now I just have it set to the variable radius. It's breaking my dimensional ...
3
votes
0answers
47 views

Unit of output changes when constant quantity is moved over integral

Why do these two expressions give the same result in different units? In: Integrate[ gravitationalAcceleration Quantity[1, "g/m^3"] fluidArea h, {h, 0, height}] ...
2
votes
1answer
83 views

Control units of time series data for plot axis labeling [closed]

Using Mathmatica time series data: ...
11
votes
1answer
218 views

How can I get curated data to be expressed consistently in SI units?

AstronomicalData objects are consistently in SI units: ...
6
votes
2answers
229 views

Is it reasonable to have both TemperatureUnit and TemperatureDifferenceUnit?

When adding the bugs header to the question "Kelvin per Kelvin Difference" I was confused by the fact that I cannot determine for sure whether the described bug is fixed in version 10.2 or not: from ...
0
votes
1answer
51 views

Enter meter unit with Histogram [closed]

I'm looking at the documentation for Histogram and I am trying the example: ...
0
votes
2answers
168 views

Converting the units of an equation or expression (how to become 3 times heavier…)

(THIS QUESTION HAD A MAJOR SIMPLIFICATION EDIT) Lets suppose I want to convert the falling body equation, from one set of units to another. I start with: ...
1
vote
3answers
162 views

Inconsistent units? [closed]

I have reviewed this statement until my eyes hurt; can someone tell me why the units output aren't lb/ft^2? ...
2
votes
1answer
64 views

Integrate complains about incompatible quantities in integration limits

When I run the following code, Integrate throws ...
1
vote
0answers
30 views

Using Infinity with AutomaticUnits

I am using the AutomaticUnits package in Mathematica 10, and I am writing some unit checking functions. However, I run into a problem when I have an Infinity, since ...
2
votes
1answer
100 views

Physical quantities to decimal power

How can I get Mathematica to properly simplify physical quantities with dimensions to decimal power, such as $1 \frac{1}{\text{s}^{0.7}}\text{dynes}\text{/(}\text{cm}^2\text{Pa})$ that should simplify ...
2
votes
1answer
114 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 ...
3
votes
3answers
255 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: ...
3
votes
0answers
47 views

TimeSeriesInsert issue with Quantity expressions

Solved in Mathematica v10.3 This first sample code works as expected: ...
1
vote
0answers
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 ...
5
votes
1answer
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. ...
3
votes
1answer
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 ...
4
votes
0answers
73 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 ...
5
votes
1answer
285 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: ...
4
votes
1answer
53 views

MixedRadix rounds incorrectly

You can Round Quantitys. For example, how many inches are in a meter? ...
3
votes
0answers
74 views

Powers of dimensionless quantities: is this a bug?

Today I came across the following behavior: Quantity[x, "Minutes"/"Minutes"]^-1 (* Quantity[1/x, (1/#1 &)[("Minutes")/("Minutes")]] *) It seems that ...
5
votes
1answer
81 views

How do I perform exact unit conversions with irrational conversion factors?

Suppose I want to express $3h$ in units of $\hbar$ (where $h$ and $\hbar$ are the Planck constant and reduced Planck constant, respectively). By definition, $h = 2\pi\hbar$, but when I attempt this ...