areacircle: Area of a circle

Description Usage Arguments Value Examples

View source: R/areacircle.R

Description

This function calculates the area of a circle.

Usage

1
areacircle(x, plot_it = FALSE)

Arguments

x

The radius of a circle.

plot_it

Display a plot of x vs the output. Use logical. FALSE by default.

Value

The area of a circle with radius x.

Examples

1
2
areacircle(5)
areacircle(2, plot_it=TRUE)

cheungamanda/powers documentation built on May 29, 2019, noon