Skip to main content

Questions tagged [units]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
265 views

Solving Equations with units is not working

I have the code Clear[distance, time, Vavg]; Solve[Quantity[Vavg, "Meters"/"Seconds"] == Quantity[distance, "Meters"]/Quantity[time, "Seconds"], distance] ...
TraceKira's user avatar
  • 383
8 votes
1 answer
8k views

Convert radian to degree and add °

How can I convert a radian angle to a degree one and add ° after it? I am using N[(Pi/4)/Degree], but the output is 45. with ...
Ale1794's user avatar
  • 545
1 vote
0 answers
95 views

How to get a conversion factor in new system of unit

There is some numerical relation $I = \frac{c}{8\pi} E^2$ between the wave intensity $I$ and the electric field strength $E$ written in CGS (centimetre, gram, second) system of units, where $c$ is ...
Diana Matsepulina's user avatar
3 votes
1 answer
74 views

Why does the TimeObject seem to lose precision? (+ note on units)

According to the documentation (11.0.1.0) Shorter lists can be used in TimeObject[{h,m,s}], which represents the time to whatever accuracy is specified: {h} is not [sic?*] treated as being ...
Julian Moore's user avatar
  • 2,560
1 vote
0 answers
52 views

Why isn't this fully evaluating [closed]

I'm still new to mathematica which sometimes feels magical to me. For example, ...
theideasmith's user avatar
4 votes
1 answer
816 views

How do I generate a list of just the physical constants? [And other questions on them.]

N.B.: I've bolded the questions to make it easy to find them among the background verbiage. 1) Is there a way to generate a list of just the physical constants? [Note that I am not looking for a ...
theorist's user avatar
  • 3,643
1 vote
1 answer
106 views

Unit conversion in a function using another function as an argument

My problem is related to the previous post Passing a function as an argument to another function using the same variables. I don't understand why in the following example the conversion of units does ...
F. Aitken's user avatar
  • 111
4 votes
1 answer
155 views

What are the UnitConvert units for ItemSize and FieldSize?

I have discovered the unit for ImageSize is "DesktopPublishingPoints" as setting ...
Edmund's user avatar
  • 43.1k
0 votes
0 answers
209 views

Mathematica does not fully simplify units [duplicate]

I use the Quantity function in Mathematica to simplify and check units. Sometimes I cannot get Mathematica to simplify units. What I am doing wrong? For example, find units of thermal diffusivity: <...
Hefaestion's user avatar
4 votes
1 answer
284 views

Working with tables of equations in different units

I frequently work with tables of engineering equations in different units. I suppose physicists might do the same thing. For example, a table might look like this: Some of the values are inputs and ...
Tyler Durden's user avatar
  • 4,102
0 votes
1 answer
177 views

How can I obtain a list of the physical quantities supported? [duplicate]

How can we list all available physical quantities in Mathematica?
materia-nigra's user avatar
4 votes
1 answer
362 views

Bug recognizing "Wavenumbers" as a unit of energy?

Wavenumbers, aka inverse centimeters, has dimensions of energy and thus should be easily convertible to joules. MMA clearly recognizes "Wavenumbers" at some level, since it autosuggests this unit when ...
theorist's user avatar
  • 3,643
12 votes
1 answer
138 views

Display bug in Dataset's UnitConvert handling

Bug introduced in 11.0.1 or earlier and fixed in 11.1.0 Is this yet another annoying regression in v11 Dataset type handling? The display form seems to be a ...
alancalvitti's user avatar
  • 15.2k
9 votes
2 answers
1k views

Physical (and other) constants

As Mathematica documentation likes to say, "As of Version 9.0, physical constant functionality is built into the Wolfram Language". After clicking on the ">>", one ...
atapaka's user avatar
  • 4,006
0 votes
1 answer
80 views

Radians missing from NSolve result

Why does the result not include radians in the solution for a? This does not occur if I use meters instead of radians. ...
cambunctious's user avatar
4 votes
1 answer
239 views

Plotting with units: emits error and gives incorrect plot

I've been trying to find some information on how to use Plot with a quantity that has units. I have a function, h[x_], that ...
Hearth's user avatar
  • 143
4 votes
0 answers
70 views

QuantityForm does not work with MixedRadixQuantity?

Bug introduced after 9.0 and in 10.1 or earlier, and persisting through 11.2 or later From 10.1 to 10.3.1, QuantityForm[q, "Abbreviation"] outputs From 10.4 to 11....
Edmund's user avatar
  • 43.1k
8 votes
1 answer
518 views

Working with degrees minutes and seconds without conversion

Is there a way to work with angles in DMS without converting them to decimal degrees, that is to sum them, subtract them? I do not know how to even enter it without using string. My idea is something ...
atapaka's user avatar
  • 4,006
5 votes
0 answers
83 views

Problem with specifying quantity value in FormulaData

I wanted to use the formulas for KineticEnergy and KineticEnergyRelativistic with specific quantity vaules. The later formula ...
david's user avatar
  • 1,332
31 votes
2 answers
4k views

Unit Discovery: Is this some sort of a sick joke?

Alright, let's have some fun here. I am essentially following the documentation by Wolfram, just looking at different quantities. ...
Pirx's user avatar
  • 4,159
1 vote
2 answers
234 views

Piecewise function using Quantity is returning a Piecewise answer

...
Raizel's user avatar
  • 97
7 votes
1 answer
202 views

AutomaticUnits package in Mma 11

I have really come to like this package, and, no, the built-in units handling in newer versions of Mma isn't a match for it by a long, long stretch. With some minor editing following the author's ...
Pirx's user avatar
  • 4,159
1 vote
1 answer
1k 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 ...
bahram's user avatar
  • 185
3 votes
1 answer
79 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 ...
Edmund's user avatar
  • 43.1k
6 votes
2 answers
484 views

Atom weight in SI units

In chemistry is very common to use the units grams/mol for the atomic weight, so the mass of one atom (of Tin, for example) is calculated as : massOfOneAtom = (0.11871 (Kg/mol))/(AvogadroConstant (1/...
R. Ibañez's user avatar
5 votes
1 answer
364 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 ...
rhermans's user avatar
  • 37k
0 votes
0 answers
51 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 '...
grandrew's user avatar
  • 550
13 votes
1 answer
390 views

Is Quantity necessary?

Soft question: are Quantity - and newly added MixedUnit and MixedMagnitude - needed in a ...
alancalvitti's user avatar
  • 15.2k
1 vote
2 answers
263 views

How to remove the units in matrix?

...
partida's user avatar
  • 6,836
4 votes
0 answers
556 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 ...
Brandon Myers's user avatar
2 votes
2 answers
187 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, ...
thirtythreeforty's user avatar
8 votes
0 answers
345 views

Spectral Radiance unit Flicks is not correct

Bug introduced in version 10.3 or earlier and fixed in 11.1. I was pleasantly surprised that Mathematica (10.3, 10.4, 10.4.1, 11.0 and 11.0.1) had the unit $\text{flick}$ until I spent several hours ...
c186282's user avatar
  • 1,402
4 votes
2 answers
186 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 ...
alancalvitti's user avatar
  • 15.2k
11 votes
4 answers
373 views

How to prevent 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 ...
Edmund's user avatar
  • 43.1k
3 votes
0 answers
152 views

How to insert a formula to FormulaData?

Unit Checking Demo In order to throw a unit error,we run the code ...
xiang's user avatar
  • 366
2 votes
1 answer
155 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 ...
Tom De Vries's user avatar
  • 3,780
5 votes
1 answer
252 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'...
Terry Price's user avatar
9 votes
1 answer
162 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, ...
m_goldberg's user avatar
  • 108k
7 votes
1 answer
241 views

DateListPlot failing on Inflation Adjusted TimeSeries

Bug introduced in 10.0 or earlier and solved in 10.4 Bug introduced in 10.0 or earlier and persisting through 11.0.1 or later First bug. See output of ...
kale's user avatar
  • 11k
10 votes
2 answers
1k 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 ...
team-rf's user avatar
  • 435
4 votes
2 answers
432 views

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

Why Mathematica returns the following input unevaluated? ...
Igor Kotelnikov's user avatar
3 votes
0 answers
284 views

Physical constants seems broken in 10.3

For example, if I just enter Quantity["GravitationalConstant"], then the result is this ...
swish's user avatar
  • 7,931
2 votes
1 answer
443 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 ...
LongApple's user avatar
  • 121
5 votes
1 answer
587 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 ...
atapaka's user avatar
  • 4,006
1 vote
0 answers
641 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 ...
Mikel Manzanal's user avatar
0 votes
1 answer
146 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? ...
The Quantum Physicist's user avatar
0 votes
0 answers
48 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, ...
Guillochon's user avatar
  • 6,167
1 vote
2 answers
193 views

Converting Units in formula

I have the following formula ...
thils's user avatar
  • 3,268
3 votes
1 answer
158 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 bytes ...
Unbelievable's user avatar
  • 4,897
6 votes
0 answers
149 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. ...
BillT's user avatar
  • 61

1 2 3
4
5
7