Questions about calculating with units in Mathematica.

learn more… | top users | synonyms (1)

1
vote
1answer
107 views

Caching data in Mathematica package

Consider the following: m=Quantity[1,"meter"] If I run the package, it will return 1m But when I load the package, the ...
1
vote
1answer
83 views

Extract function parameters from “unevaluated” FormBox

I want to get the abbreviation for a Unit from its full name eg. "Newtons" => "N". Using ...
1
vote
1answer
127 views

Multiplying SI Prefixes [closed]

I'm doing a few calculations and would like to keep my units straight. I figured that using the built-in Units functionality could help with this. However, using SI prefixes doesn't seem to give the ...
1
vote
1answer
86 views

Grouping units more sanely

Would it be possible to get Mathematica to group units more sanely. For example the calculation: ...
1
vote
0answers
83 views

Insert a Quantity Unit literal in TraditionalForm

Is there a keyboard shortcut for creating something like the result of this: Quantity["Kilograms" * ("Meters")^2 / ("Seconds")^2] After copying the result to a ...
1
vote
0answers
64 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 ...
1
vote
0answers
118 views

How can I say that all quantities need to be positive (and real)? [duplicate]

Can you say at the beginning of a script in Mathematica that you want all the quantities to be positive (and real)? So that in all calculations, only the real values of these quantities will be ...
0
votes
1answer
83 views

AstronomicalData not including units?

I like using mathematica to do my physics homework, and AstronomicalData is useful for that, but it doesn't seem to work properly with units. [the question is, at ...
0
votes
0answers
61 views

Meaning of backtick in conjunction with units [duplicate]

In this fragment from an equation solution the backtick is used twice: ...
0
votes
0answers
45 views

Fitting data involving units

I want to fit some data to a model. However, if the data involves units in the independent variable, fitting seems not to work. As an example, consider the code ...
0
votes
0answers
48 views

FindRoot with units error: Message text not found

This is sort of embarrassing. I'm working on a document to extol the virtues of Mathematica, and I can't get it to solve a relatively simple system of equations involving units. In this code, when I ...
-1
votes
1answer
80 views

Make Quantity behave reasonable with Degrees Celsius

When using a Quantity with the unit of "DegreesCelsius" multiplication doesn't work as expected. If you have 10 degrees and ...
-1
votes
2answers
119 views

Why won't Mathematica work with quantities or Quantity[]? [closed]

As you can see in the screenshot below, Mathematica is simply not evaluating any quantities. It is simply listing them as I wrote them. Could anybody give me a pointer as to why this may be?