/* qlog10.c
*
* Common logarithm
*
*
*
* SYNOPSIS :
*
* int qlog10 ( x , y ) ;
* QELT * x , * y ;
*
* qlog10 ( x , y ) ;
*
*
*
* DESCRIPTION :
*
* Returns base 10 , or common , logarithm of x .
*
* log ( x ) = log ( e ) log ( x )
* 10 10 e
*
*/
/*
Cephes Math Library Release 2 . 3 : March , 1995
Copyright 1984 , 1995 by Stephen L . Moshier
*/
/* qlog10 */
#include "qhead.h"
#if WORDSIZE == 32
#if NQ > 8
static QELT ql10e[NQ] = {
0 ,EXPONE-2 ,0 ,0 xde5bd8a9,0 x37287195,0 x355baaaf,0 xad33dc32,0 x3ee34602,
0 x45c9a202,0 x3a3f2d44,0 xf78ea53c,0 x75424efa,0 x1402f3f2,0 x92235593
};
#else
/* 4.34294481903251827651128918916605082294397005803667E-1 */
static QELT ql10e[NQ] = {
0 ,EXPONE-2 ,0 ,0 xde5bd8a9,0 x37287195,0 x355baaaf,0 xad33dc32,0 x3ee34602};
#endif
#else
/* word size is 16 */
#if NQ > 12
static short ql10e[NQ] = {
0 x0000,EXPONE-2 ,0 x0000,0 xde5b,0 xd8a9,0 x3728,0 x7195,0 x355b,
0 xaaaf,0 xad33,0 xdc32,0 x3ee3,0 x4602,0 x45c9,0 xa202,0 x3a3f,
0 x2d44,0 xf78e,0 xa53c,0 x7542,0 x4efa,0 x1402,0 xf3f2,0 x9223
};
#else
/* 4.34294481903251827651128918916605082294397005803667E-1 */
static short ql10e[NQ] = {
0000000 ,EXPONE-2 ,0000000 ,0157133 ,0154251 ,0033450 ,
0070625 ,0032533 ,0125257 ,0126463 ,0156062 ,0037343 };
#endif
#endif
int qlog10( x, y )
QELT x[], y[];
{
QELT a[NQ];
qlog( x, a );
qmul( ql10e, a, y );
return 0 ;
}
Messung V0.5 in Prozent C=92 H=100 G=95
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-28)
¤
*© Formatika GbR, Deutschland