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

Function volHemisphere

Maths/Volume.js:110–113  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

108 return (2 * PI * radius^3)/3
109*/
110const volHemisphere = (radius) => {
111 isNumber(radius, 'Radius')
112 return (2.0 * Math.PI * radius ** 3) / 3.0
113}
114
115const isNumber = (number, noName = 'number') => {
116 if (typeof number !== 'number') {

Callers

nothing calls this directly

Calls 1

isNumberFunction · 0.85

Tested by

no test coverage detected