Using Units in Maple
Units conversions and manipulations can be done most efficiently at the top-level without using the Standard or Natural Units environments, but in general you can more easily perform the computations in the other environments.
For information on inline computations, see the example worksheets for the Simple Units environment, the Standard Units environment, or the Natural Units environment. 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?
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 # US dollars per troy ounce November 18th, 2016
density≔19.3 # grams per cubic centimeter
What is the length of one side of a cube with this volume?
This is in centimeters. Convert it to meters.
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?
12convert⁡20,units,deniers,gm # meters
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 (10,000,000,000 years ago) is:
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.
Given a molar energy, find the mass energy in Btu's per pound.
molar_energy≔523.432; # Btu/mol(carbon)
carbon_mass≔12 # kg/mol(carbon)
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.
speed≔ⅆⅆ t distance
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.
minvalues # meters
maxvalues # meters
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.
evalf # joules
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.
40000convert⁡7200,units,mph,kms # seconds
convert,units,s,h; # hours
evalf # hours
To find the distance traveled, multiply the speed by the time.
10⁢convert7200,units,mph,ms; # meters
convert,units,m,km # kilometers
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.
convert1032,units,galUK,ft31.2⋅π⋅0.922; # unitless number
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, use the formula:
10⁢log10gain; # decibels
evalf; # decibels
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.
20⁢log10voltage_gain; # decibels
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
Substitute the given starting velocity.
vs ≔ vy|xv0 = 2.4ms
Integrating this over time answers the first question.
x ≔x0 + ∫0t0vs ⅆt
Starting at the origin and with the specified gravity:
gravity ≔ evalfScientificConstants:-Constantg, units;
xy|xx0 = 0m, a=−gravity
After 0.4 seconds, this is the location:
y|xt0 = 0.4s
Return to Index for Example Worksheets.
Download Help Document