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

learn more… | top users | synonyms (2)

3
votes
3answers
236 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
2answers
172 views

Display Quantity in full form

Is there a way to display Quantity[] in full form in the output? I know you could use Quantity[valuse, Unit]//InputForm, but ...
3
votes
3answers
290 views

How to deal with units in logarithms?

I'm trying to take a formula, take it's integral which yields a formula with logarithms, and then directly plug in values with units and get an answer. However if the units go into any of the ...
3
votes
1answer
490 views

How to dequantify units in mathematica?

Is there a function which applied to a quantity returns its numerical value so I for instance can fill it into my Predictorfunction?
3
votes
2answers
134 views

Something wrong with the way units are handled in V10

(This applies only to version 10) I obtain these two properties of silicon: a = ElementData[14, "CrustAbundance"] b = ElementData[14, "MeteoriteAbundance"] both ...
3
votes
1answer
952 views

How to get the quantity of Physical constants?

I need to get the quantity of gravitational constant: QuantityMagnitude[GravitationalConstant] why this is not work? Already load the ...
3
votes
1answer
727 views

Unit issues in Mathematica 9

I posted the following on the Google+ group comp.soft-sys.math.mathematica and had no luck with responses. I've done a Google search and, to the best of my ability, ...
3
votes
3answers
256 views

Inputting abbreviated units [duplicate]

Possible Duplicate: Simpler input for the new unit support Is there a way to input abbreviated units directly from the keyboard? One can get a value with abbreviated units through the ...
3
votes
2answers
124 views

AutomaticUnits in WM10

Despite the unit improvement in WM10, I am still a big fan of the AutomaticUnits package, as I find it faster and more elegant to work with. However, it seems to be ...
3
votes
2answers
1k views

Units, plotting and empty plots

maybe I'm completely newbie but I can't understand the behavior of units and the command plot. I'm doing some easy plotting of the state equation for gasses: ...
3
votes
1answer
100 views

Is there a way to display units in short label?

For example, forQuantityUnit[Quantity[1, "Meters"]], is there a way to display the results as"m" instead of "Meters"?
3
votes
1answer
254 views

Why cant Mathematica 9 interpret this unit?

I'm using Mathematica 9.0.1. Sorry for using an image, but pasting code messed up the output formatting. I'd like to represent 25 Btu/(hr ft F). All units are spelled correctly as identified in ...
3
votes
1answer
90 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 ...
3
votes
1answer
441 views

Wavelength, wavenumber, energy and frequency in a ruler

I would like to generate set of four axis relating wavelength, wavenumber, energy and frequency in an arbitrary range. Like in this image but without the labels such as "RADAR". The selection of ...
3
votes
1answer
160 views

Choosing the units for plotting

I´m new to using units in Mathematica. I have read other similar posts about this issue but I haven´t found an answer so far. My problem is simple: I want to plot a certain function with a certain ...
3
votes
1answer
51 views

MixedRadix rounds incorrectly

You can Round Quantitys. For example, how many inches are in a meter? ...
3
votes
1answer
155 views

Converting in various currencies

I was just playing around with Mathematica converting some currencies: ...
3
votes
0answers
102 views

How to insert a formula to FormulaData?

Unit Checking Demo In order to throw a unit error,we run the code ...
3
votes
0answers
160 views

Physical constants seems broken in 10.3

For example, if I just enter Quantity["GravitationalConstant"], then the result is this ...
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}] ...
3
votes
0answers
72 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 ...
3
votes
0answers
97 views

Quantities formatting problem

So I've developed this simple code ...
2
votes
2answers
397 views

How to specify units for ImageSize Option? [duplicate]

I'm trying out making a CDF and I want it to print within the margins of Letter paper. There is an ImageSize option that I would like to set; some plots will be in ...
2
votes
1answer
76 views

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

Using Mathmatica time series data: ...
2
votes
1answer
64 views

Integrate complains about incompatible quantities in integration limits

When I run the following code, Integrate throws ...
2
votes
1answer
233 views

UnitSimplify returns unexpected non-SI unit combination

I am trying to get units working in mathematica in the following expression for diffusion: $D = {K_B T}/{3 \pi \eta L}$ My code is as follows: ...
2
votes
1answer
2k views

Plotting with Units

I'm trying to get Mathematica to plot with units, but I'm having some trouble. Below is a minimal example of trying to plot y = x, where ...
2
votes
2answers
1k views

Use of own unit abbreviations

I have been using AutomaticUnits in my calculations. In this package all I had to do was to declare the units I wanted e.g. mm, kN, sec, kPa, litres etc. in terms of existing units, and then use them ...
2
votes
1answer
45 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 ...
2
votes
1answer
111 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 ...
2
votes
1answer
158 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 ...
2
votes
1answer
97 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
133 views

How do you get a country's GDP per capita in Euros?

Right now, I'm getting the data in U.S. Dollars and converting it to Euros like this: ...
2
votes
4answers
189 views

Cancelling units in two-argument ArcTan

Consider ArcTan[3, -3] (* out: *) -Pi/4 ArcTan[3 a Sin[t/2], -3 a Sin[t/2]] (* out: *) ArcTan[3 a Sin[t/2], -3 a Sin[t/2]] However, we can fix the ...
2
votes
1answer
90 views

QuantityVariable usage

When I try to run the following code, Mathematica gives me an error message: "Solve was unable to determine the units of quantities that appear in the input." ...
2
votes
1answer
151 views

Using Manipulate[ ] with physical units

I'm a new user, and am trying to build a simple Boyle's law system in Mathematica. I want to include the units of the values, as I may need to perform some conversions later. If my quantities are a ...
2
votes
0answers
51 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 ...
2
votes
0answers
45 views

TimeSeriesInsert issue with Quantity expressions

Solved in Mathematica v10.3 This first sample code works as expected: ...
2
votes
0answers
147 views

Is it possible to use Gaussian cgs units in $Mathematica$ computations?

I was trying to do computations in Gaussian cgs units, and of course I failed due to dimensional issues. For instance, $q_1 q_2/r$ cannot be converted to $\mathrm{erg}$ since Gaussian system uses ...
2
votes
0answers
77 views

Will aliasing the Quantity and UnitConvert functions to “in” and “to” create problems?

It seems that there is a lot of interest in enhancing the use of units in Mathematica; various solutions in the name of brevity, correctness, and general utility have been demonstrated. I've begun ...
2
votes
0answers
80 views

List of supported units in Mathematica 9 [duplicate]

Is there a list of supported units in Mathematica 9 documentation? I personal haven't found any; even the physical constants (newly supported as units in 9) can only be found in compatibility ...
1
vote
3answers
160 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? ...
1
vote
1answer
46 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 ...
1
vote
1answer
56 views

Simplify CubeRoot of meter cubes

Why Mathematica doesn't simplify CubeRoot of meter cubes to meters? r = Quantity[10, "Meters"]; v = 4/3 r^3 Pi; CubeRoot[% * 3/4 / Pi] returns ...
1
vote
1answer
51 views

UnitConvert bar <-> Pa

I wanted to use the following unit cMax = Quantity[6.8221*^-9, "L/s/bar"]; But when calculating with it, I recognised there is some strange behaviour. So I tried ...
1
vote
1answer
224 views

Solving equations with QuantityVariable

I'm trying to understand how to easily solve equations that use QuantityVariable. Why does this fail? ...
1
vote
1answer
697 views

Unit of the frequency axis in BodePlot

I have a simple question: What is the unit of the frequency axis in the BodePlot? I searched the documentation, but only found this: The scaling functions can be specified as ...
1
vote
1answer
38 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, ...
1
vote
2answers
98 views

Converting Units in formula

I have the following formula ...
1
vote
1answer
107 views

Changed appearance of Quantity expressions in v10.1.0

After installing Mathematica v10.1.0 (in Windows 8.1 x64), I noticed a change in appearance of Quantity expressions. For example under Mathematica v10.1.0: while ...