I am having problems converting this formula V = 4/3 π r^3. I used Math.PI and Math.pow, but I get this error:
V = 4/3 π r^3
Math.PI
Math.pow
\';\
Replace
volume = (4 / 3) Math.PI * Math.pow(radius, 3);
With:
volume = (4 * Math.PI * Math.pow(radius, 3)) / 3;