MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript / surfaceAreaSphere

Function surfaceAreaSphere

Maths/Area.js:26–29  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

24 * @example surfaceAreaSphere(5) = 314.1592653589793
25 */
26const surfaceAreaSphere = (radius) => {
27 validateNumericParam(radius, 'radius')
28 return 4.0 * Math.PI * radius ** 2.0
29}
30
31/**
32 * @function areaRectangle

Callers

nothing calls this directly

Calls 1

validateNumericParamFunction · 0.85

Tested by

no test coverage detected