Units of Fuel Consumption
Description
Examples
Fuel consumption has the dimension volume of petroleum per length or length per volume of petroleum. The three standard units of fuel consumption are the liter of petroleum per 100 kilometers, the mile per gallon of petroleum, and the kilometer per liter of petroleum.
Maple knows the units of fuel consumption listed in the following table.
Name
Symbols
Context
Alternate Spellings
Prefixes
mile_per_gallon
mpg
US_liquid *
miles_per_gallon
UK
An asterisk ( * ) indicates the default context, an at sign (@) indicates an abbreviation, and under the prefixes column, SI indicates that the unit takes all SI prefixes, IEC indicates that the unit takes IEC prefixes, and SI+ and SI- indicate that the unit takes only positive and negative SI prefixes, respectively. Refer to a unit in the Units package by indexing the name or symbol with the context, for example, miles_per_gallon[US_liquid] or mpg[UK]; or, if the context is indicated as the default, by using only the unit name or symbol, for example, miles_per_gallon.
Because liters per 100 kilometers and miles per gallon have inverse dimensions, the conversion between them includes taking a reciprocal.
Maple uses Unit annotations for units of fuel consumption.
The unit of fuel consumption is defined as follows.
A US liquid or UK mile per gallon is defined as a standard mile per US liquid or UK gallon of petroleum, respectively.
The dimensions of the three units of fuel consumption are not all the same.
convert⁡L⁡petroleum100⁢km,dimensions,base=true
length⁡petroleum3length
convert⁡mpg,dimensions,base=true
lengthlength⁡petroleum3
convert⁡kmL⁡petroleum,dimensions,base=true
By default, Maple accepts a conversion of units of fuel consumption, such as the mpg, to units of length per volume, such as meter per gallon.
convert⁡1,units,mpg,mgal
201168125
When the standard or natural modes for combining units are selected, Maple requires the correct annotation to the unit gallon in order to do this conversion. Otherwise, this constitutes an error:
UnitsUseMode⁡standard
simple
Error, (in `convert/units`) unable to convert `mpg` to `m/gal`
convert⁡1,units,mpg,mgal⁡petroleum
The symbolic option makes convert ignore this issue, regardless of the currently selected mode.
convert⁡1,units,mpg,mgal,symbolic=true
Convert 4.4 L/100 km to mpg.
1convert⁡4.4,units,L⁡petroleum100⁢km,1mpg
53.45785984
Convert 17.2 mpg to L/100 km.
1convert⁡17.2,units,mpg,1L⁡petroleum100⁢km
13.67526647
Convert 4.4 L/100 km to km/L.
1convert⁡4.4,units,L⁡petroleum100⁢km,1kmL⁡petroleum
22.72727273
Convert 19.3 km/L to mpg.
convert⁡19.3,units,kmL⁡petroleum,mpg
45.39641458
See Also
convert/dimensions
convert/units
Units
Units/annotations
Units/Index
Units/length
Units/volume
Download Help Document