volcyl: Volume of a cylinder

Description Usage Arguments Value Examples

View source: R/volcyl.R

Description

This function calculates the volume of a cylinder.

Usage

1
volcyl(x, y, plot_it = FALSE)

Arguments

x

The radius of a cylinder.

y

The height of a cylinder.

plot_it

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

Value

The volume of a cylinder with radius x and height y.

Examples

1
2
volcyl(5, 6)
volcyl(2, 7, plot_it=TRUE)

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