LOG2

Section: Manuel du programmeur Linux (3)
Updated: 20 juillet 2003
Index


NOM
SYNOPSIS
DESCRIPTION
ERREURS
CONFORMITÉ
VOIR AUSSI
TRADUCTION

NOM

log2, log2f, log2l - Fonction logarithme en base 2.

SYNOPSIS

#include <math.h>

double log2(double x);

float log2f(float x);

long double log2l(long double x);

DESCRIPTION

La fonction log2() renvoie le logarithme en base 2 de x.

ERREURS

La fonction log2() peut renvoyer l'erreur suivante :
EDOM
L'argument x est négatif.

CONFORMITÉ

SVID 3, POSIX, BSD 4.3, ISO 9899. Les variantes float et long double sont des demandes de C99.

VOIR AUSSI

exp2(3), log(3), log10(3)

TRADUCTION

Christophe Blaess, 2003.