# Volume

Volume is a measure of regions in three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch). The definition of length and height (cubed) is interrelated with volume. The volume of a container is generally understood to be the capacity of the container; i.e., the amount of fluid (gas or liquid) that the container could hold, rather than the amount of space the container itself displaces. By metonymy, the term "volume" sometimes is used to refer to the corresponding region (e.g., bounding volume).
In ancient times, volume was measured using similar-shaped natural containers. Later on, standardized containers were used. Some simple three-dimensional shapes can have their volume easily calculated using arithmetic formulas. Volumes of more complicated shapes can be calculated with integral calculus if a formula exists for the shape's boundary. Zero-, one- and two-dimensional objects have no volume; in four and higher dimensions, an analogous concept to the normal volume is the hypervolume.

## I Will Shoot You To Death!

(=-\ |l| /
(=-\._________/\

## History
### Ancient history

The precision of volume measurements in the ancient period usually ranges between 10–50 mL (0.3–2 US fl oz; 0.4–2 imp fl oz).$^{:8}$ The earliest evidence of volume calculation came from ancient Egypt and Mesopotamia as mathematical problems, approximating volume of simple shapes such as cuboids, cylinders, frustum and cones. These math problems have been written in the Moscow Mathematical Papyrus (c. 1820 BCE).$^{:403}$ In the Reisner Papyrus, ancient Egyptians have written concrete units of volume for grain and liquids, as well as a table of length, width, depth, and volume for blocks of material.$^{:116}$ The Egyptians use their units of length (the cubit, palm, digit) to devise their units of volume, such as the volume cubit$^{:117}$ or deny$^{:396}$ (1 cubit × 1 cubit × 1 cubit), volume palm (1 cubit × 1 cubit × 1 palm), and volume digit (1 cubit × 1 cubit × 1 digit).$^{:117}$
The last three books of Euclid's Elements, written in around 300 BCE, detailed the exact formulas for calculating the volume of parallelepipeds, cones, pyramids, cylinders, and spheres. The formula were determined by prior mathematicians by using a primitive form of integration, by breaking the shapes into smaller and simpler pieces.$^{:403}$ A century later, Archimedes (c. 287 – 212 BCE) devised approximate volume formula of several shapes using the method of exhaustion approach, meaning to derive solutions from previous known formulas from similar shapes. Primitive integration of shapes was also discovered independently by Liu Hui in the 3rd century CE, Zu Chongzhi in the 5th century CE, the Middle East and India.$^{:404}$
Archimedes also devised a way to calculate the volume of an irregular object, by submerging it underwater and measure the difference between the initial and final water volume. The water volume difference is the volume of the object.$^{:404}$ Though highly popularized, Archimedes probably does not submerge the golden crown to find its volume, and thus its density and purity, due to the extreme precision involved. Instead, he likely have devised a primitive form of a hydrostatic balance. Here, the crown and a chunk of pure gold with a similar weight are put on both ends of a weighing scale submerged underwater, which will tip accordingly due to the Archimedes' principle.

### Calculus and standardization of units

In the Middle Ages, many units for measuring volume were made, such as the sester, amber, coomb, and seam. The sheer quantity of such units motivated British kings to standardize them, culminated in the Assize of Bread and Ale statute in 1258 by Henry III of England. The statute standardized weight, length and volume as well as introduced the peny, ounce, pound, gallon and bushel.$^{:73–74}$ In 1618, the London Pharmacopoeia (medicine compound catalog) adopted the Roman gallon or congius as a basic unit of volume and gave a conversion table to the apothecaries' units of weight. Around this time, volume measurements are becoming more precise and the uncertainty is narrowed to between 1–5 mL (0.03–0.2 US fl oz; 0.04–0.2 imp fl oz).$^{:8}$
Around the early 17th century, Bonaventura Cavalieri applied the philosophy of modern integral calculus to calculate the volume of any object. He devised Cavalieri's principle, which said that using thinner and thinner slices of the shape would make the resulting volume more and more accurate. This idea would then be later expanded by Pierre de Fermat, John Wallis, Isaac Barrow, James Gregory, Isaac Newton, Gottfried Wilhelm Leibniz and Maria Gaetana Agnesi in the 17th and 18th centuries to form the modern integral calculus, which remains in use in the 21st century.$^{:404}$

### Metrication and redefinitions

On 7 April 1795, the metric system was formally defined in French law using six units. Three of these are related to volume: the stère (1 m$^3$) for volume of firewood; the litre (1 dm$^3$) for volumes of liquid; and the gramme, for mass—defined as the mass of one cubic centimetre of water at the temperature of melting ice. Thirty years later in 1824, the imperial gallon was defined to be the volume occupied by ten pounds of water at 17 °C (62 °F).$^{:394}$ This definition was further refined until the United Kingdom's Weights and Measures Act 1985, which makes 1 imperial gallon precisely equal to 4.54609 litres with no use of water.
The 1960 redefinition of the metre from the International Prototype Metre to the orange-red emission line of krypton-86 atoms unbounded the metre, cubic metre, and litre from physical objects. This also make the metre and metre-derived units of volume resilient to changes to the International Prototype Metre. The definition of the metre was redefined again in 1983 to use the speed of light and second (which is derived from the caesium standard) and reworded for clarity in 2019.

## Properties

As a measure of the Euclidean three-dimensional space, volume cannot be physically measured as a negative value, similar to length and area. Like all continuous monotonic (order-preserving) measures, volumes of bodies can be compared against each other and thus can be ordered. Volume can also be added together and be decomposed indefinitely; the latter property is integral to Cavalieri's principle and to the infinitesimal calculus of three-dimensional bodies. A 'unit' of infinitesimally small volume in integral calculus is the volume element; this formulation is useful when working with different coordinate systems, spaces and manifolds.

## Measurement

The oldest way to roughly measure a volume of an object is using the human body, such as using hand size and pinches. However, the human body's variations make it extremely unreliable. A better way to measure volume is to use roughly consistent and durable containers found in nature, such as gourds, sheep or pig stomachs, and bladders. Later on, as metallurgy and glass production improved, small volumes nowadays are usually measured using standardized human-made containers.$^{:393}$ This method is common for measuring small volume of fluids or granular materials, by using a multiple or fraction of the container. For granular materials, the container is shaken or leveled off to form a roughly flat surface. This method is not the most accurate way to measure volume but is often used to measure cooking ingredients.$^{:399}$
Air displacement pipette is used in biology and biochemistry to measure volume of fluids at the microscopic scale. Calibrated measuring cups and spoons are adequate for cooking and daily life applications, however, they are not precise enough for laboratories. There, volume of liquids is measured using graduated cylinders, pipettes and volumetric flasks. The largest of such calibrated containers are petroleum storage tanks, some can hold up to 1,000,000 bbl (160,000,000 L) of fluids.$^{:399}$ Even at this scale, by knowing petroleum's density and temperature, very precise volume measurement in these tanks can still be made.$^{:403}$
For even larger volumes such as in a reservoir, the container's volume is modeled by shapes and calculated using mathematics.$^{:403}$

### Units

To ease calculations, a unit of volume is equal to the volume occupied by a unit cube (with a side length of one). Because the volume occupies three dimensions, if the metre (m) is chosen as a unit of length, the corresponding unit of volume is the cubic metre (m$^3$). The cubic metre is also a SI derived unit. Therefore, volume has a unit dimension of L$^3$.
The metric units of volume uses metric prefixes, strictly in powers of ten. When applying prefixes to units of volume, which are expressed in units of length cubed, the cube operators are applied to the unit of length including the prefix. An example of converting cubic centimetre to cubic metre is: 2.3 cm$^3$ = 2.3 (cm)$^3$ = 2.3 (0.01 m)$^3$ = 0.0000023 m$^3$ (five zeros).$^{:143}$
Commonly used prefixes for cubed length units are the cubic millimetre (mm$^3$), cubic centimetre (cm$^3$), cubic decimetre (dm$^3$), cubic metre (m$^3$) and the cubic kilometre (km$^3$). The conversion between the prefix units are as follows: 1000 mm$^3$ = 1 cm$^3$, 1000 cm$^3$ = 1 dm$^3$, and 1000 dm$^3$ = 1 m$^3$. The metric system also includes the litre (L) as a unit of volume, where 1 L = 1 dm$^3$ = 1000 cm$^3$ = 0.001 m$^3$.$^{:145}$ For the litre unit, the commonly used prefixes are the millilitre (mL), centilitre (cL), and the litre (L), with 1000 mL = 1 L, 10 mL = 1 cL, 10 cL = 1 dL, and 10 dL = 1 L.
Various other imperial or U.S. customary units of volume are also in use, including:$^{:396–398}$
* cubic inch, cubic foot, cubic yard, acre-foot, cubic mile;
* minim, drachm, fluid ounce, pint;
* teaspoon, tablespoon;
* gill, quart, gallon, barrel;
* cord, peck, bushel, hogshead.

### Capacity and volume

Capacity is the maximum amount of material that a container can hold, measured in volume or weight. However, the contained volume does not need to fill towards the container's capacity, or vice versa. Containers can only hold a specific amount of physical volume, not weight (excluding practical concerns). For example, a 50,000 bbl (7,900,000 L) tank that can just hold 7,200 t (15,900,000 lb) of fuel oil will not be able to contain the same 7,200 t (15,900,000 lb) of naphtha, due to naphtha's lower density and thus larger volume.$^{:390–391}$

## Computation
### Basic shapes

For many shapes such as the cube, cuboid and cylinder, they have an essentially the same volume calculation formula as one for the prism: the base of the shape multiplied by its height.

### Integral calculus

The calculation of volume is a vital part of integral calculus. One of which is calculating the volume of solids of revolution, by rotating a plane curve around a line on the same plane. The washer or disc integration method is used when integrating by an axis parallel to the axis of rotation. The general equation can be written as:$V=\pi \int _{a}^{b}\left|f(x)^{2}-g(x)^{2}\right|\,dx$where f(x){\textstyle f(x)} and g(x){\textstyle g(x)} are the plane curve boundaries.$^{:1,3}$ The shell integration method is used when integrating by an axis perpendicular to the axis of rotation. The equation can be written as:$^{:6}$$V=2\pi \int _{a}^{b}x|f(x)-g(x)|\,dx$ The volume of a region D in three-dimensional space is given by the triple or volume integral of the constant function $f(x,y,z)=1$ over the region. It is usually written as:$^{:Section14.4}$ $\iiint _{D}1\,dx\,dy\,dz.$
In cylindrical coordinates, the volume integral is $\iiint _{D}r\,dr\,d\theta \,dz,$
In spherical coordinates (using the convention for angles with $\theta$ as the azimuth and $\varphi$ measured from the polar axis; see more on conventions), the volume integral is $\iiint _{D}\rho ^{2}\sin \varphi \,d\rho \,d\theta \,d\varphi .$

### Geometric modeling

A polygon mesh is a representation of the object's surface, using polygons. The volume mesh explicitly define its volume and surface properties.

## Derived quantities

* Density is the substance's mass per unit volume, or total mass divided by total volume.
* Specific volume is total volume divided by mass, or the inverse of density.
* The volumetric flow rate or discharge is the volume of fluid which passes through a given surface per unit time.
* The volumetric heat capacity is the heat capacity of the substance divided by its volume.