my_pow: Power function

Description Usage Arguments Value Examples

View source: R/my_pow.R

Description

This function raises input to a power

Usage

1
my_pow(x, power = 2)

Arguments

x

Numeric input to be raised to the power of power

power

Numeric input for the power that x will be raised to, default to 2

Value

Numeric represrnting x raised to the power of power

Examples

1
2
my_pow(4)
my_pow(4,power = 3)

Xiaoying-Z/Stat302Project03 documentation built on March 22, 2020, 2:09 a.m.