Calculates the volume of a sphere as 4 × π × radius³ ÷ 3.
A sphere is the set of all points lying at a fixed distance from a centre. That distance is the radius, and it alone fixes the volume.
With the default radius , and since ,
The volume is about 523.5988.
Sit a sphere of radius snugly inside a cylinder of base radius and height . The cylinder holds , and the sphere fills exactly two thirds of it. A cone on the same base with the same height holds , so cone, sphere and cylinder stand in the ratio — a relationship discovered by Archimedes.
Only the radius is cubed. Writing in place of turns the expression into something close to the surface area formula, which is . Doubling the radius multiplies the volume by eight. If you know the diameter, halve it to get the radius before entering it.