pow: pow

Description Usage Arguments Details Value Examples

View source: R/pow.R

Description

pow functions finds the exponent of 2.

Usage

1
pow(n)

Arguments

n

integer

Details

This function checks the given number is the power of 2 or not If the given number is power of 2 it returns the exponent value; otherwise NULL is returned.

Value

power of 2

Examples

1
2
3
4
5
6
pow(4)
# 2
pow(5)
#NULL
pow(6)
#NULL

HadamardR documentation built on April 14, 2020, 7:01 p.m.