Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Cephes/qfloat/     Datei vom 12.5.2026 mit Größe 494 B image not shown  

Quelle  qcosh.c   Sprache: C

 

/* qcosh.c
 *
 * Hyperbolic cosine
 *
 *
 *
 * SYNOPSIS:
 *
 * int qcosh(x, y);
 * QELT *x, *y;
 *
 * qcosh(x, y);
 *
 *
 *
 * DESCRIPTION:
 *
 * cosh(x)  =  ( exp(x) + exp(-x) )/2.
 *
 */


/*
Cephes Math Library Release 2.3:  March, 1995
Copyright 1985, 1995 by Stephen L. Moshier
*/



#include "qhead.h"

extern QELT qone[];

int qcosh(x,y)
QELT x[], y[];
{
QELT h[NQ], w[NQ];

qexp( x, w );  /* w = exp(x) */
qdiv( w, qone, h ); /* 1/exp(x) */
qadd( w, h, y );
y[1] -= 1;
return 0;
}

Messung
CHZG
8210010094

¤ Dauer der Verarbeitung: 0.1 Sekunden  ¤

*© Formatika GbR, Deutschland