Quantcast
Browsing all 41 articles
Browse latest View live

Unit scaling: human readable Quantity units

Consider some calculation yielding Quantity[x,"B"] as output ("B" interpreted as byte).Is there a way to automatically convert this to the unit "GB" or "MB" or "TB" etc as the case may be. i.e. instead...

View Article


Image may be NSFW.
Clik here to view.

How to prohibit automatic DegreesCelsius converting to Kelvins?

On this wiki page, temperature conversion is presented clearly. For example.It also warns that we should take care of temperature difference conversion which is a different conversion asIt is critical...

View Article


Image may be NSFW.
Clik here to view.

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, UnitConvert fails.How can they be...

View Article

Image may be NSFW.
Clik here to view.

Why is ExternalEvaluate running the command Quantity[471.04`, "Kilobytes"] on...

Raspberry Pi 4B with 32 bit Raspberry Pi OS Full:Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/LinuxMathematica for Raspberry Pi 13.1The...

View Article

Image may be NSFW.
Clik here to view.

Create by hand a formatted form of quantities

If I evaluate the following cell:Quantity["PlanckConstant"]I get as an output a very concise format of this quantity:Also, compare the legibility of these two cells:I want to find a way to create...

View Article


Cases syntax when expression sought is a Quantity

From the following list I wish to extract those cases for which the magnitude of a quantity is greater than zero for which I would like to then create a DateListPlot. list = {{DateObject[{2017, 01},...

View Article

How to find all InformationUnits by code method?

As I know, the "Megabytes" and "Gigabits" both are "InformationUnit":UnitDimensions["Megabytes"]UnitDimensions["Gigabits"]{{"InformationUnit", 1}}{{"InformationUnit", 1}}Is there any method to find all...

View Article

How to handle units of measurement?

I'm trying to understand how Mathematica handles units of measurement.That is I expect that a calculation should return a certain unit, but I don't succeed. Let's consider this example:(314.159 m...

View Article


QuantityArray vs Array of Quantities

If memory and speed are not concerns, is there a reason to use QuantityArray instead of an array of quantities?

View Article


How to "factor out" units?

I have a huge expression that makes use of Mathematica's units support (Quantity[]) that I know evaluates to a dimensionless quantity. However, I'm unable to get Simplify[] nor UnitSimplify[] to...

View Article

How to have the units for energy show as kW h instead of h kW?

I observe the following in Wolfram Language:Quantity[ 1, "Kilowatt hours" ] (* or "Kilowatts" * "Hours" *)(* 1 h kW *)That looks rather unconventional and in Wolfram Alpha it is done as kW h, for...

View Article

Workaround for losing track of physical dimension upon differentiation of a...

The following notebook performs a relatively simple physical calculation interacting position, velocity and acceleration of two charged point particles according to Weber electrodynamics.It is simple...

View Article

Clear Guidelines for Symbolic Calculation With Units?

The following notebook performs a relatively simple physical calculation interacting position, velocity and acceleration of two charged point particles according to Weber electrodynamics.It is simple...

View Article


Integrate & Unit: unable to determine the units of quantities

In a Wolfram Notebook,I declare a function F1[x]=1/x where x is in "Meters"F1[X_] = With[{x=Quantity[X,"Meters"]},1/x]I integrate F1. Everything is Ok.NIntegrate[F1[r],{r,1,2}]But with the function...

View Article

Inverse of UnitDimensions[]

Is there a straightforward way to write an inverse of UnitDimensions to get the SI unit from dimensions?For example,inverseUnitDimensions[{{"LengthUnit", 1}, {"MassUnit", 1}, {"TimeUnit", -2}}]should...

View Article


Image may be NSFW.
Clik here to view.

Plotting a function with units gives two different results

With the following code block, I plot a function with units in it in two different ways. Both ways should do the same in my understanding of the documentation.cm = Quantity["Centimeters"];f[x_] :=...

View Article

Quantity[] requires internet access. Is there any workarounds?

Quantity and QuantityArray are great tools for working with types arrays (in terms of physical units), perform conversions and etc.I have discovered recently, if there is no internet access...

View Article


Perform nondimensionalization with derivatives [closed]

I'm trying to perform nondimensionalization to the following symbolic equations:eqDn = Subscript[\[Mu], d] * (1/r) * D[r * D[Subscript[u, d][r], r], r] == Subscript[P, d]eqUn = Subscript[\[Mu], u] *...

View Article

Where to see all Mathematica units [duplicate]

Is there a tutorial page that have all Mathematica units? I sometimes have hard time figuring out the correct unit spelling when using quantities

View Article

Pruning units from oscilloscope data

I'm trying to import some data in a .txt file which contains numbers and words. I import a list which consists of four rows of measured data acquired with an oscilloscope, but the acquisition program...

View Article
Browsing all 41 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>