|
|
HP-UX Reference > Cclog10(3M)HP Integrity Server OnlyHP-UX 11i Version 2: December 2007 Update |
|
NAMEclog10(), clog10f(), clog10l(), clog10w(), clog10q() — complex base-10 logarithm functions SYNOPSIS#include <complex.h> double complex clog10(double complex z); float complex clog10f(float complex z); long double complex clog10l(long double complex z); extended complex clog10w(extended complex z); quad complex clog10q(quad complex z); DESCRIPTIONclog10() returns the complex base-10 logarithm of z in the range of a strip mathematically unbounded along the real axis and in the interval [-iPi/log(10),+iPi/log(10)] along the imaginary axis. There is a branch cut along the negative real axis. clog10f() is a float complex version of clog10(); it takes a float complex argument and returns a float complex result. clog10l() is a long double complex version of clog10(); it takes a long double complex argument and returns a long double complex result. clog10w() is an extended complex version of clog10(); it takes an extended complex argument and returns an extended complex result. clog10q() is equivalent to clog10l() on HP-UX systems. USAGETo use these functions, compile with the default -Ae option. To use clog10w() or clog10q(), compile with the -fpwidetypes option. Make sure your program includes <complex.h>. Link in the math library by specifying -lm on the compiler or linker command line. RETURN VALUEclog10(conj(z)) = conj(clog10(z)). clog10(-0+i0) returns -Inf+iPi/log(10) and raises the divide-by-zero floating-point exception. clog10(+0+i0) returns -Inf+i0 and raises the divide-by-zero floating-point exception. clog10(x+iInf) returns +Inf+iPi/(2log(10)), for finite x. clog10(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite x. clog10(-Inf+iy) returns +Inf+iPi/log(10), for finite positive-signed y. clog10(+Inf+iy) returns +Inf+i0, for finite positive-signed y. clog10(-Inf+iInf) returns +Inf+i3Pi/(4log(10)). clog10(+Inf+iInf) returns +Inf+iPi/(4log(10)). clog10(±Inf+iNaN) returns +Inf+iNaN. clog10(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite y. clog10(NaN+iInf) returns +Inf+iNaN. clog10(NaN+iNaN) returns NaN+iNaN. |
|