.\" -*- 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 pow 3 "5 février 2023" "Pages du manuel de Linux 6.03" .SH NOM pow, powf, powl \- Fonctions puissance .SH BIBLIOTHÈQUE Bibliothèque de math (\fIlibm\fP, \fI\-lm\fP) .SH SYNOPSIS .nf \fB#include \fP .PP \fBdouble pow(double \fP\fIx\fP\fB, double \fP\fIy\fP\fB);\fP \fBfloat powf(float \fP\fIx\fP\fB, float \fP\fIy\fP\fB);\fP \fBlong double powl(long double \fP\fIx\fP\fB, long double \fP\fIy\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 \fBpowf\fP(), \fBpowl\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 la valeur de \fIx\fP élevée à la puissance \fIy\fP. .SH "VALEUR RENVOYÉE" En cas de réussite, ces fonctions renvoient la valeur de \fIx\fP élevée à la puissance \fIy\fP. .PP .\" The range error is generated at least as far back as glibc 2.4 En cas de dépassement pour le résultat, une erreur d'intervalle se produit et les fonctions renvoient respectivement \fBHUGE_VAL\fP, \fBHUGE_VALF\fP ou \fBHUGE_VALL\fP, avec le bon signe mathématique. .PP .\" POSIX.1 does not specify the sign of the zero, .\" but http://sources.redhat.com/bugzilla/show_bug.cgi?id=2678 .\" points out that the zero has the wrong sign in some cases. If result underflows, and is not representable, a range error occurs, and 0.0 with the appropriate sign is returned. .PP .\" pow(\(+-0, <0 [[odd]]) = HUGE_VAL* Si \fIx\fP vaut \fB+0\fP ou \fB\-0\fP et \fIy\fP est un nombre entier impair négatif, une erreur de pôle se produit et \fBHUGE_VAL\fP, \fBHUGE_VALF\fP ou \fBHUGE_VALL\fP est renvoyé avec le même signe que \fIx\fP. .PP .\" pow(\(+-0, <0 [[!odd]]) = HUGE_VAL* .\" The pole error is generated at least as far back as glibc 2.4 Si \fIx\fP vaut \fB+0\fP ou \fB\-0\fP et \fIy\fP est négatif et pas un nombre impair, une erreur de pôle se produit et +\fBHUGE_VAL\fP, +\fBHUGE_VALF\fP ou +\fBHUGE_VALL\fP est renvoyé. .PP .\" pow(\(+-0, >0 [[odd]]) = \(+-0 Si \fIx\fP vaut \fB+0\fP (resp. \-0) et \fIy\fP est un nombre entier impair positif, le résultat est \fB+0\fP (resp. \-0). .PP .\" pow(\(+-0, >0 [[!odd]]) = +0 Si \fIx\fP est nul et \fIy\fP positif et n'est pas un nombre entier impair, le résultat est \fB+0\fP. .PP .\" pow(-1, \(+-INFINITY) = 1.0 Si \fIx\fP vaut \fB\-1\fP et \fIy\fP est une valeur infinie positive ou négative, le résultat est 1,0. .PP .\" pow(+1, y) = 1.0 Si \fIx\fP vaut \fB+1\fP, le résultat est 1,0 (même si \fIy\fP est un NaN). .PP .\" pow(x, \(+-0) = 1.0 Si \fIy\fP est nul, le résultat est 1,0 (même si \fIx\fP est un NaN). .PP .\" pow(<0, y) = NaN .\" The domain error is generated at least as far back as glibc 2.4 Si \fIx\fP est une valeur finie négative et \fIy\fP un nombre fini non entier, une erreur de domaine se produit et un NaN est renvoyé. .PP .\" pow(|x|<1, -INFINITY) = INFINITY Si la valeur absolue de \fIx\fP est inférieure à \fB1\fP et \fIy\fP est une valeur infinie négative, le résultat est l'infini positif. .PP .\" pow(|x|>1, -INFINITY) = +0 Si la valeur absolue de \fIx\fP est supérieure à \fB1\fP et \fIy\fP est une valeur infinie négative, le résultat est \fB+0\fP. .PP .\" pow(|x|<1, INFINITY) = +0 Si la valeur absolue de \fIx\fP est inférieure à \fB1\fP et \fIy\fP est une valeur infinie positive, le résultat est \fB+0\fP. .PP .\" pow(|x|>1, INFINITY) = INFINITY Si la valeur absolue de \fIx\fP est supérieure à \fB1\fP et \fIy\fP est une valeur infinie positive, le résultat est l'infini positif. .PP .\" pow(-INFINITY, <0 [[odd]]) = -0 Si \fIx\fP est une valeur infinie négative et \fIy\fP est un nombre entier impair négatif, le résultat est \fB\-0\fP. .PP .\" pow(-INFINITY, <0 [[!odd]]) = +0 Si \fIx\fP est une valeur infinie négative et \fIy\fP est négatif et n'est pas un nombre entier impair, le résultat est \fB+0\fP. .PP .\" pow(-INFINITY, >0 [[odd]]) = -INFINITY Si \fIx\fP est une valeur infinie négative et \fIy\fP est un nombre entier impair positif, le résultat est l'infini négatif. .PP .\" pow(-INFINITY, >0 [[!odd]]) = INFINITY Si \fIx\fP est une valeur infinie négative et \fIy\fP est positif et n'est pas un nombre entier impair, le résultat est l'infini positif. .PP .\" pow(INFINITY, <0) = +0 Si \fIx\fP est une valeur infinie positive et \fIy\fP est négatif, le résultat est \fB+0\fP. .PP .\" pow(INFINITY, >0) = INFINITY Si \fIx\fP est une valeur infinie positive et \fIy\fP est positif, le résultat est l'infini positif. .PP .\" pow(NaN, y) or pow(x, NaN) = NaN Except as specified above, if \fIx\fP or \fIy\fP is a NaN, the result is a NaN. .SH ERREURS .\" FIXME . review status of this error .\" longstanding bug report for glibc: .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=369 .\" For negative x, and -large and +large y, glibc 2.8 gives incorrect .\" results .\" pow(-0.5,-DBL_MAX)=nan .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result; .\" FAIL (expected: range-error-overflow (ERANGE, FE_OVERFLOW); +INF) .\" .\" pow(-1.5,-DBL_MAX)=nan .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result; .\" FAIL (expected: range-error-underflow (ERANGE, FE_UNDERFLOW); +0) .\" .\" pow(-0.5,DBL_MAX)=nan .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result; .\" FAIL (expected: range-error-underflow (ERANGE, FE_UNDERFLOW); +0) .\" .\" pow(-1.5,DBL_MAX)=nan .\" EDOM FE_INVALID nan; fail-errno fail-except fail-result; .\" FAIL (expected: range-error-overflow (ERANGE, FE_OVERFLOW); +INF) 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 et \fIy\fP est un nombre fini non entier \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 nul et \fIy\fP est négatif \fIerrno\fP est configuré à la valeur \fBERANGE\fP (mais consultez la section BOGUES). Une exception de virgule flottante divisée par zéro (\fBFE_DIVBYZERO\fP) est déclenchée. .TP Erreur d'intervalle\ : dépassement pour le résultat \fIerrno\fP est configurée à \fBERANGE\fP. Une exception de dépassement par le haut de virgule flottante (\fBFE_OVERFLOW\fP) est levée. .TP Erreur d'intervalle\ : soupassement («\ underflow\ ») du résultat \fIerrno\fP prend la valeur \fBERANGE\fP. Une exception de dépassement par le bas de virgule flottante (\fBFE_UNDERFLOW\fP) est levée. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .ad l .nh .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ \fBpow\fP(), \fBpowf\fP(), \fBpowl\fP() T} Sécurité des threads MT\-Safe .TE .hy .ad .sp 1 .SH STANDARDS C99, POSIX.1\-2001, POSIX.1\-2008. .PP La variante renvoyant \fIdouble\fP est également conforme à SVr4, 4.3BSD. .SH BOGUES .SS "Historical bugs (now fixed)" .\" https://sourceware.org/bugzilla/show_bug.cgi?id=13932 .\" commit c3d466cba1692708a19c6ff829d0386c83a0c6e5 Before glibc 2.28, on some architectures (e.g., x86\-64) \fBpow\fP() may be more than 10,000 times slower for some inputs than for other nearby inputs. This affects only \fBpow\fP(), and not \fBpowf\fP() nor \fBpowl\fP(). This problem was fixed in glibc 2.28. .PP .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=3866 A number of bugs in the glibc implementation of \fBpow\fP() were fixed in glibc 2.16. .PP .\" .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776 .\" or possibly 2.9, I haven't found the source code change .\" and I don't have a 2.9 system to test In glibc 2.9 and earlier, when a pole error occurs, \fIerrno\fP is set to \fBEDOM\fP instead of the POSIX\-mandated \fBERANGE\fP. Since glibc 2.10, glibc does the right thing. .PP .\" Actually, glibc 2.3.2 is the earliest test result I have; so yet .\" to confirm if this error occurs only in glibc 2.3.2. In glibc 2.3.2 and earlier, when an overflow or underflow error occurs, glibc's \fBpow\fP() generates a bogus invalid floating\-point exception (\fBFE_INVALID\fP) in addition to the overflow or underflow exception. .SH "VOIR AUSSI" \fBcbrt\fP(3), \fBcpow\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 , Cédric Boutillier et Jean-Philippe MENGUAL . .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 .