log2

From DavinciWiki
Jump to: navigation, search

Description

Base 2 logarithm.

Arguments and Return Values

Arguments: A numeric array (any format)

Return Value: A numeric array containing the log base 2 of the input; output format is double if input is double, float otherwise

If no arguments are input, log2() prints its description, as shown below.

Usage

Syntax: log2(x)

'x' - a numeric array (any format)

Examples

log2(x) returns ln(x)/ln(2)
Works for arrays
S.Marshall 12-06-2007

0
dv> log2(0//1//2//3//4)
5x1x1 array of float, bsq format [20 bytes]
-inf    0.00000 1.00000 1.58496 2.00000

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-07-2007
Modified On: 01-17-2008

Personal tools