powered by
Provides the surface area of a sphere.
areasphere(radius)
The radius of the sphere.
# NOT RUN { ## The function is currently defined as function (radius) { Area <- 4 * pi * radius^2 Area } # Example calculation: radius<-4 areasphere(radius) # }
Run the code above in your browser using DataLab