.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 1995-08-14 by Arnt Gulbrandsen .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH log 3 "20 juillet 2023" "Pages du manuel de Linux 6.05.01" .SH NOM log, logf, logl \- Fonction logarithme népérien .SH BIBLIOTHÈQUE Bibliothèque de math (\fIlibm\fP, \fI\-lm\fP) .SH SYNOPSIS .nf \fB#include \fP .PP \fBdouble log(double \fP\fIx\fP\fB);\fP \fBfloat logf(float \fP\fIx\fP\fB);\fP \fBlong double logl(long double \fP\fIx\fP\fB);\fP .fi .PP .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7))\ : .RE .PP \fBlogf\fP(), \fBlogl\fP()\ : .nf _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || /* Depuis la glibc 2.19 : */ _DEFAULT_SOURCE || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIPTION Ces fonctions renvoient le logarithme népérien de\ \fIx\fP. .SH "VALEUR RENVOYÉE" En cas de réussite, ces fonctions renvoient le logarithme népérien de\ \fIx\fP. .PP Si \fIx\fP n’est pas un nombre, un \fBNaN\fP est renvoyé. .PP Si\ \fIx\fP vaut\ 1, le résultat est\ \fB+0\fP. .PP Si\ \fIx\fP est l’infini positif, l’infini positif est renvoyé. .PP Si\ \fIx\fP est zéro, une erreur de pôle se produit et les fonctions renvoient \-\fBHUGE_VAL\fP, \-\fBHUGE_VALF\fP ou \-\fBHUGE_VALL\fP, respectivement. .PP Si\ \fIx\fP est négatif (l'infini négatif compris), alors une erreur de domaine se produit et \fBNaN\fP est renvoyé. .SH ERREURS Voir \fBmath_error\fP(7) pour savoir comment déterminer si une erreur s'est produite lors de l'appel d'une de ces fonctions. .PP Les erreurs suivantes peuvent se produire\ : .TP Erreur de domaine\ : \fIx\fP est négatif \fIerrno\fP prend la valeur \fBEDOM\fP. Une exception de virgule flottante non valable (\fBFE_INVALID\fP) est levée. .TP Erreur de pôle\ : \fIx\fP est zéro \fIerrno\fP prend la valeur \fBERANGE\fP. Une exception de division par zéro de virgule flottante (\fBFE_DIVBYZERO\fP) est levée. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBlog\fP(), \fBlogf\fP(), \fBlogl\fP() T} Sécurité des threads MT\-Safe .TE .sp 1 .SH STANDARDS C11, POSIX.1\-2008. .SH HISTORIQUE C99, POSIX.1\-2001. .PP La variante renvoyant \fIdouble\fP est également conforme à SVr4, 4.3BSD et C89. .SH BOGUES Dans la glibc 2.5 et les versions antérieures, \fBlog\fP() pour un NaN produit à tort une exception de virgule flottante incorrecte (\fBFE_INVALID\fP). .SH "VOIR AUSSI" \fBcbrt\fP(3), \fBclog\fP(3), \fBlog10\fP(3), \fBlog1p\fP(3), \fBlog2\fP(3), \fBsqrt\fP(3) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Cédric Boutillier . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .