Learn R Programming

extras (version 0.7.3)

pow: Power

Description

R equivalent to the power function.

Usage

pow(x, n)

Value

A numeric atomic object of x raised to n.

Arguments

x

A numeric atomic object of the base.

n

A numeric atomic object of the exponent.

Details

Wrapper on x^n.

See Also

Other translations: exp10(), exp2(), fabs(), ilog(), ilog10(), ilog2(), ilogit(), inv_logit(), invlogit(), log10<-(), log2<-(), log<-(), logit(), logit<-(), phi(), step()

Examples

Run this code
pow(10, 2)

Run the code above in your browser using DataLab