Hollow Sphere Weight Calculator

Hollow Sphere Weight Calculator

Please enter valid numbers for outer and inner radius.

'; return; } if (innerRadius >= outerRadius) { document.getElementById('result').innerHTML = '

Inner radius must be less than outer radius.

'; return; } var volume = (4 / 3) * Math.PI * (Math.pow(outerRadius, 3) - Math.pow(innerRadius, 3)); var weight = volume * 0.409; // Lead density in pounds per cubic inch document.getElementById('result').innerHTML = '

The weight of the hollow sphere is approximately ' + weight.toFixed(2) + ' pounds.

'; }

Leave a Comment