# Questions tagged [units]

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

239 questions
Filter by
Sorted by
Tagged with
8 views

### Issue displaying units with Quantity[] inside bar legend

Quantity[] is displaying some inconsistent behaviour when used in BarLegend[]. Compare the following two examples: ...
42 views

### Issues arising when using UnitSimplify for getting a dimensionless expression

I am having some difficulties when using UnitSimplify in manipulating expressions for obtaining dimensionless quantities in Mathematica 12.0.0. Here is a minimal ...
27 views

### Plotting a quantity-based function doesn't work

Creating the function: ...
32 views

### How to deal with units while plot?

I am plotting a bistable plot and the given code is giving me the bistable plot. But there is one problem in the plot. In the x-axis "P0" is multiplied with 10^(3) p. second. and in the y-axis, the ...
68 views

### Comparison of tagged units

Consider this data set: BNikkei = {{10.0032, 27 Days}, {10.0527, 22 Days}, {10.1283, 18 Days}} from a recent question, "More effective way to apply a function ...
42 views

### Force Solve to respect unit system

I give Solve quantities in FPS and it returns resulting quantities in SI, necessitating that I add an entire section to my workflow where I pick apart the solution ...
63 views

### UnitConvert having trouble multiplying Boltzmann's Constant with Fahrenheit?

T:=70 Quantity["DegreesFahrenheit"] kb:=Quantity["BoltzmannConstant"] UnitConvert[kb UnitConvert[T, "Kelvins"], "Electronvolts"] // N Returns 0.0253575 eV while <...
77 views

α = Quantity[-3, ("Radians")/("Seconds")^2]; ω = Quantity[-4, ("Radians")/("Seconds")]; r = Quantity[2, "Feet"]; at = α r an = ω^2 r a = Sqrt[an^2 + at^2] ...
30 views

### Computing matrix eigenvalues with units

I apologize if this is a basic question or if I am not giving enough detail. I'm trying to solve for the eigenvalues of a matrix with matrix elements that have units. ...
49 views

### Using physics constant in calculation

I know that mathematica knows physical constants https://reference.wolfram.com/language/guide/Units.html If I write down = PlanckConstant it "recognizes" hbar. My question is: how can I use in an ...
21 views

### What is the reason StandardDeviation doesn't cooperate with Quantity “Percent”?

Consider the following list of numbers y = {13, 0.2, 11.201}; Turning y into a list of ...
38 views

### How to handle Units when Integrating?

I have some functions defined, which are to use units. Now another function is used to integrate over those, with the integration variable also quantified and the input to said function. I better just ...
57 views

### Does AroundReplace work with Quantity?

When I try to use AroundReplace with units it issues Around::compat message and outputs something strange: ...
55 views

### UnitSimplify rules?

Code as following: ...
32 views

### GeoDistance and Excel export

I'm trying to export the distance matrix below to an excel file. I have no interested on the unit. I just care the value of a distance. A standard export command does not work properly. How should I ...
37 views

### Any progress on Plots of Quantities?

Plots of quantities still don't seem to work. I've implemented the one suggestion people have: use Evaluate, but now the values of my plots are just completely off ...
79 views

### How to plot $\sin\theta$ in degree? [closed]

Please suggest how to plot $\sin\theta$ in degree. I am trying using the given below code but it is not working (It works if used Ticks without ...
103 views

### How to add some bytes quantity?

I have some strings like: st={"29M", "53K", "27K", "5.0M", "29M", "4.0K", "4.0M", "114M", "20K", "1.3G"} They are some bytes quantity, could we add or sort them ...
32 views

### Mathematica not simplifying expressions with units

Hi I'm having an issue with the Quantity system. On the guide for units on the wolfram page, there is an example ...
410 views

### Why is Mathematica messing with the time units in this simple equation? [closed]

If you lets say work 40 hours every week and your working days total to 251/5 weeks for a particular year. Then why is Mathematica messing this calculation and producing incorrect result? ...
44 views

### Is there a way to include holiday calendar into Quantity system?

Suppose I have a long list of business hours but in different denominations for postings like as follows. If I just use the vanilla UnitConvert it just does a ...
130 views

### Getting useful units for combinations of physical constants like on WolframAlpha?

When I need to do order of magnitude estimates, I often encounter situations where I have a mess of physical constants and difficulty putting them in sensible units. For example, consider the ...
54 views

### Extract values from strings according to units

I have a lot of strings, which have simple nomenclature of number-unit associations and am looking to extract the number according to the units. For example: ...
46 views

### Force UnitConvert to display the proper unit prefix and return inexact quantities? [closed]

I'm experimenting with units: UnitConvert[1/Quantity[2.0, "GHz"]] 5.*10^-10s ...
57 views

68 views

### Bizarre Problem with Wolfram Knowledgebase: Extracting Values

[System: Mas OS Mojave; Version: 11.3.0.0] I tried to use the knowledgebase, because why not, but got a strange result: I also tried another lookup for good measure: Plaintext code: EntityValue[{...
74 views

### Custom conversion rules in UnitConvert

I want to make UnitConvert operate on custom units with special rules. For instance, I would like to be able to convert between ...
64 views

### Convert time interval to mixed units without leading zeros

Let's say I have time intervals in seconds. I am looking for a method that produces the following conversions: 3660 => ...
126 views

### Problem using UnitConvert

As we know in physics, power = torque * (angular velocity). But when I use UnitConvert to convert a quantity expressing power/(angular velocity) into newton-meters, ...
354 views

### Convert decibels to amplitude - Built-in function

Is there a built-in function to convert decibels to amplitude in Mathematica? I tried with: UnitConvert[Quantity[40, "decibels"], "amplitude"] but it does not ...
74 views

### Join on QuantityArray

I need to merge two QuantityArray objects of mixed type. My first attempt looks something like: ...
130 views

### Multiplying quantities by scalars in Mathematica 11.3

I'm no longer able to multiply scalars by quantities in Mathematica 11.3. In previous versions the code 3*Quantity[1, "mm"] evaluated to ...
76 views

### FinancialData returns undefined Units for Volume or randomly fails

Recently FinancialData["IBM","Volume"] started failing and when it does randomly work, it returns Quantity[3073167,Shares] but ...