Learn R Programming

Thermimage (version 2.1)

areasphere: Provides the surface area of a sphere.

Description

Provides the surface area of a sphere.

Usage

areasphere(radius)

Arguments

radius
The radius of the sphere.

Examples

Run this code
## 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