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

Function areaCircle

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

Source from the content-addressed store, hash-verified

143 * @example areaCircle(5, 12, 10) = 85
144 */
145const areaCircle = (radius) => {
146 validateNumericParam(radius, 'Radius')
147 return Math.PI * radius ** 2
148}
149
150/**
151 * @function areaRhombus

Callers

nothing calls this directly

Calls 1

validateNumericParamFunction · 0.85

Tested by

no test coverage detected