cacos(3) Library Functions Manual cacos(3)

cacos, cacosf, cacosl - Fonction arc cosinus complexe

Bibliothèque de math (libm, -lm)

#include <complex.h>
double complex cacos(double complex z);
float complex cacosf(float complex z);
long double complex cacosl(long double complex z);

Ces fonctions calculent la valeur complexe de l'arc cosinus de z. Si y = cacos(z), alors z = ccos(y). La partie réelle de y est choisie dans l'intervalle [0, pi].

On a :

    cacos(z) = -i * clog(z + i * csqrt(1 - z * z))

Pour une explication des termes utilisés dans cette section, consulter attributes(7).

Interface Attribut Valeur
cacos(), cacosf(), cacosl() Sécurité des threads MT-Safe

C11, POSIX.1-2008.

glibc 2.1. C99, POSIX.1-2001.

/* Link with "-lm" */
#include <complex.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int
main(int argc, char *argv[])
{
    double complex z, c, f;
    double complex i = I;
    if (argc != 3) {
        fprintf(stderr, "Utilisation : %s <real> <imag>\n", argv[0]);
        exit(EXIT_FAILURE);
    }
    z = atof(argv[1]) + atof(argv[2]) * I;
    c = cacos(z);
    printf("cacos() = %6.3f %6.3f*i\n", creal(c), cimag(c));
    f = -i * clog(z + i * csqrt(1 - z * z));
    printf("formule = %6.3f %6.3f*i\n", creal(f), cimag(f));
    exit(EXIT_SUCCESS);
}

ccos(3), clog(3), complex(7)

La traduction française de cette page de manuel a été créée par Christophe Blaess https://www.blaess.fr/christophe/, Stéphan Rafin <stephan.rafin@laposte.net>, Thierry Vignaud <tvignaud@mandriva.com>, François Micaux, Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Guérard <fevrier@tigreraye.org>, Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>, Julien Cristau <jcristau@debian.org>, Thomas Huriaux <thomas.huriaux@gmail.com>, Nicolas François <nicolas.francois@centraliens.net>, Florentin Duneau <fduneau@gmail.com>, Simon Paillard <simon.paillard@resel.enst-bretagne.fr>, Denis Barbier <barbier@debian.org> et David Prévot <david@tilapin.org>

Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.

Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à debian-l10n-french@lists.debian.org.

31 octobre 2023 Pages du manuel de Linux 6.06