Standard Units Environment
The Standard Units environment is an environment designed for computations with units. This environment is set up by using the command with(Units[Standard]), or alternatively by using the commands Units[UseMode](standard) and with(Units), in that order.
Various procedures are overloaded to handle units. For example, sin⁡3.0⁢degrees evaluates the sine of 3 degrees and max⁡4⁢m,10⁢ft returns 4⁢m.
Arithmetic operators are overloaded to extract units from their operands. For example, 3⁢m+4⁢cm evaluates to 7625m and 53.32km 1.3h evaluates to 11.39316239⁢ms, which can be converted to 25.48577843⁢mph.
Note: Although easier to use, it is slower, in general, to perform computations in the Standard Units environment than to use the conversion routines at the top-level.
These computations can also be done in the Simple Units environment or the Natural Units environment or at the top-level by using only conversion routines (see Default Units). Each example in this worksheet is also in the other worksheets to show how you can perform the computations in the other environments.
Add 4 feet to 3 inches.
How many meters are equivalent to 4 yards?
How many liters are equivalent to 5 UK gallons?
How many liters are equivalent to 5 US gallons?
How many US liquid gallons are equivalent to a UK gallon?
Unit Names and Symbols
Unit symbols and various spellings of unit names are recognized by the package.
This feature is expandable so that, for example, you can specify metr (the Polish word for this unit) as an alternate spelling of meter. See the AddUnit help page for more information.
Some units can be recognized with SI or IEC prefixes.
Sample Questions with Solutions
How many miles do you travel in 35 minutes moving at 55 miles per hour?
distance≔55⁢mph⁢⋅ 35 minutes
How many seconds are equivalent to 3 weeks?
How many inches are equivalent to 5 feet 4 inches?
Convert 50 km/h to cm/s.
How many seconds does it take an object, released from rest, to fall 20 meters?
From the equation d=gn⁢t22, we derive:
What is the rest energy of an electron?
Assume the mass of an electron is 9.11⁢10−31 kilograms.
Approximate the speed of light by 3.00⁢108 meters per second.
Using the formula E=m⁢c2, you can approximate the rest energy of the electron.
A more precise answer can be found by converting the known unit the electron mass (em) to joules using energy conversions.
Approximately what volume does 1,000,000,000 US dollars worth of gold occupy?
cost≔1210.00⁢USDoztroy; # November 18th, 2016
What is the length of one side of a cube with this volume?
An Su-27 Flanker can travel at mach 1.1 at sea level. How fast is this in miles per hour, miles per second, and meters per second?
Approximately how many meters are there in 3.5 miles?
Given 50 US gallons of water, how many 750 mL bottles could you fill?
Given nylon with a linear mass density of 20 deniers, what length of thread is used in an object weighing 12 grams?
What is the volume in cubic inches of a 2 liter engine.
For a given phenomena with a frequency of 1.420,405,761 GHz, find the:
2. number of cycles per year, and
3. number of cycles since the beginning of the earth.
First you must convert the frequency from GHz to Hz (cycles per second).
The period is:
The number of cycles per year is:
The number of cycles since the beginning of the earth is:
frequency⁢⋅ 10000000000 yr
Given inductance and capacitance, find the resistance in microohms.
The following formula relates the resistance to the inductance and capacitance.
Use an inductance of 124 nanohenries and a capacitance of 3.52 microfarads.
evalresistance, inductance = 124. nH, capacitance = 3.52 uF
Given a molar energy, find the mass energy in Btu's per pound.
Given a distance function, find the speed by differentiation, speed at 2.5 seconds and at 5 blinks by evaluation, and distance traveled between 1 and 2.5 seconds by integration and by subtraction of the distance function values.
To find the speed function, differentiate the distance function.
To find the speed at 2.5 seconds, evaluate the speed function at t=2.5.
To find the speed at 5 blinks, evaluate the speed function at t=5. blink, converted to seconds.
dt ≔ convert5., units, blink, s
By using a definite integral, you can determine the distance traveled from the speed function.
The distance traveled can also be calculated directly from the distance function.
Find the minimum and maximum length of 1.2 yards, 1 meter, 3.2 feet, and 0.6 fathoms.
Given a torque of 3 newton meters, how much energy is required to move a lever through 10 degrees?
The energy required is the product of the torque and the angle in radians.
evalenergy, torque = 3 N⁢mradius, angle = 10 deg
The Hyper-X can travel at speeds up to 7200 miles per hour. How long would it take to circle the earth at maximum speed (assuming it could carry sufficient fuel)? How far does it travel in a 10 second flight at maximum speed?
To find the time to circle the earth, divide the distance by the speed.
The meter was originally defined as 1/10,000,000 th the distance from the North Pole to the Equator on the meridian passing through Paris. Therefore, 40,000 kilometers is a good approximation of the circumference of the earth.
To find the distance traveled, multiply the speed by the time.
7200⁢mph⁢⋅ 10 s
Given 1032 UK gallons of oil, how many cylindrical cans with a height of 1.2 feet and diameter of 0.9 feet could you fill?
The volume of a cylinder is h⁢π⁢d22.
vol≔convert1.2 ft⋅π⋅.9 ft22,units,galUK
Given an power gain from 332 microwatts to 23 milliwatts, what is the gain in decibels? What would the decibel gain be if the increase were a voltage increase?
A gain is a quotient of the final value divided by the initial value.
To determine the decibel gain, first take the ln of the gain.
Power is proportional to the square of the voltage. Therefore, the decibel increase corresponding to the voltage gain should be a factor of 2 times that of the power gain.
Given an initial velocity of 2.4 meters per second and an otherwise unspecified uniform acceleration, what is the generic formula for position? For starting at the origin and acceleration being gravity in the opposite direction to the initial velocity? After 0.4 seconds?
The general formula for velocity in a uniform acceleration is v = v0 + a⋅t. In order to use this formula in the Standard Units environment, we need to express this in terms of unit-free quantities:
v0 ≔ v0ums
a ≔ aums2
t ≔ tu s
Now the unassigned variables, v0u, au, and tu, are unit-free quantities, in terms of which we have defined the quantities v0, a, and t as quantities with a unit.
v ≔ v0 + a⋅t
Substitute the given starting velocity.
vs ≔ vy|xv0u = 2.4
Integrating this over time answers the first question. This requires defining the initial location in terms of the unit-free quantity x0u.
x0 ≔ x0u m
x ≔x0 + intvs, t= 0 .. t0u
Starting at the origin and with the specified gravity:
gravity ≔ evalfScientificConstants:-Constantg;
xy|xx0u = 0, au=−gravity
After 0.4 seconds, this is the location:
y|xt0u = 0.4
Return to Index for Example Worksheets
Download Help Document
What kind of issue would you like to report? (Optional)