Calculates the surface area of a sphere as 4 × π × radius², exactly four times the area πr² of a circle with the same radius.
The surface area of a sphere is the area of its curved outer skin, and it depends on nothing but the radius.
With the default radius :
The surface area is about 314.1593.
A circle of the same radius has area , so the sphere's skin measures precisely four times as much. The numbers bear this out: a circle of radius 5 has area about 78.5398, and four of those come to 314.1593. Picture peeling the sphere and flattening the pieces onto circles of the same radius; they fill exactly four of them.
The surface area is while the volume is . Both carry a 4 and a , which invites mix-ups, but the surface area squares the radius and the volume cubes it. The units differ accordingly: cm² for the surface, cm³ for the volume. The radius must be a positive number.