nextDyadic: Next integer power of 2

nextDyadicR Documentation

Next integer power of 2

Description

Find smallest power of two that is greater than or equal to an input x.

Usage

nextDyadic(x)

Arguments

x

a real number. May be positive, zero, or negative.

Value

returns the next power of two that is greater than, or equal to, the input x. If x is negative, 1 is returned.

See Also

isVectorAtomic, decibel.

Examples

nextDyadic(15)

ifultools documentation built on July 14, 2022, 5:07 p.m.