JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 3: Library Interfaces and Headers     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

Library Interfaces and Headers

acct(3HEAD)

acct.h(3HEAD)

aio(3HEAD)

aio.h(3HEAD)

ar(3HEAD)

archives(3HEAD)

archives.h(3HEAD)

ar.h(3HEAD)

assert(3HEAD)

assert.h(3HEAD)

complex(3HEAD)

complex.h(3HEAD)

cpio(3HEAD)

cpio.h(3HEAD)

dirent(3HEAD)

dirent.h(3HEAD)

errno(3HEAD)

errno.h(3HEAD)

fcntl(3HEAD)

fcntl.h(3HEAD)

fenv(3HEAD)

fenv.h(3HEAD)

float(3HEAD)

float.h(3HEAD)

floatingpoint(3HEAD)

floatingpoint.h(3HEAD)

fmtmsg(3HEAD)

fmtmsg.h(3HEAD)

fnmatch(3HEAD)

fnmatch.h(3HEAD)

ftw(3HEAD)

ftw.h(3HEAD)

glob(3HEAD)

glob.h(3HEAD)

grp(3HEAD)

grp.h(3HEAD)

iconv(3HEAD)

iconv.h(3HEAD)

if(3HEAD)

if.h(3HEAD)

in(3HEAD)

inet(3HEAD)

inet.h(3HEAD)

in.h(3HEAD)

inttypes(3HEAD)

inttypes.h(3HEAD)

ipc(3HEAD)

ipc.h(3HEAD)

iso646(3HEAD)

iso646.h(3HEAD)

langinfo(3HEAD)

langinfo.h(3HEAD)

lib300(3LIB)

lib300s(3LIB)

lib4014(3LIB)

lib450(3LIB)

libadm(3LIB)

libaio(3LIB)

libauto_ef(3LIB)

libbsdmalloc(3LIB)

libc(3LIB)

libc_db(3LIB)

libcfgadm(3LIB)

libcommputil(3LIB)

libcontract(3LIB)

libcpc(3LIB)

libcrypt(3LIB)

libcurses(3LIB)

libdat(3LIB)

libdevid(3LIB)

libdevinfo(3LIB)

libdl(3LIB)

libdlpi(3LIB)

libdns_sd(3LIB)

libdoor(3LIB)

libdtrace(3LIB)

libefi(3LIB)

libelf(3LIB)

libexacct(3LIB)

libfcoe(3LIB)

libfmevent(3LIB)

libform(3LIB)

libfstyp(3LIB)

libgen(3HEAD)

libgen(3LIB)

libgen.h(3HEAD)

libgss(3LIB)

libhbaapi(3LIB)

libicudata(3LIB)

libicui18n(3LIB)

libicuio(3LIB)

libicule(3LIB)

libiculx(3LIB)

libicutu(3LIB)

libicuuc(3LIB)

libilb(3LIB)

libintl(3HEAD)

libintl(3LIB)

libintl.h(3HEAD)

libiscsit(3LIB)

libkmf(3LIB)

libkrb5(3LIB)

libkstat(3LIB)

libkvm(3LIB)

libl(3LIB)

liblayout(3LIB)

liblgrp(3LIB)

libm(3LIB)

libmail(3LIB)

libmalloc(3LIB)

libmapmalloc(3LIB)

libmd(3LIB)

libmd5(3LIB)

libmenu(3LIB)

libmlib(3LIB)

libmlib_mt(3LIB)

libmp(3LIB)

libMPAPI(3LIB)

libmpapi(3LIB)

libmtmalloc(3LIB)

libmvec(3LIB)

libnsl(3LIB)

libnvpair(3LIB)

libpam(3LIB)

libpanel(3LIB)

libpapi(3LIB)

libpctx(3LIB)

libpicl(3LIB)

libpicltree(3LIB)

libpkcs11(3LIB)

libplot(3LIB)

libpool(3LIB)

libposix4(3LIB)

libproject(3LIB)

libpthread(3LIB)

libreparse(3LIB)

libresolv(3LIB)

librpcsvc(3LIB)

librt(3LIB)

librtld_db(3LIB)

libsasl(3LIB)

libscf(3LIB)

libsctp(3LIB)

libsec(3LIB)

libsecdb(3LIB)

libsendfile(3LIB)

libsip(3LIB)

libslp(3LIB)

libSMHBAAPI(3LIB)

libsmhbaapi(3LIB)

libsocket(3LIB)

libsrpt(3LIB)

libssagent(3LIB)

libssasnmp(3LIB)

libstmf(3LIB)

libsys(3LIB)

libsysevent(3LIB)

libtecla(3LIB)

libtermcap(3LIB)

libtermlib(3LIB)

libthread(3LIB)

libtsalarm(3LIB)

libtsnet(3LIB)

libtsol(3LIB)

libumem(3LIB)

libusb(3LIB)

libuuid(3LIB)

libv12n(3LIB)

libvolmgt(3LIB)

libvt0(3LIB)

libw(3LIB)

libxnet(3LIB)

libXtsol(3LIB)

libxtsol(3LIB)

liby(3LIB)

libzonestat(3LIB)

limits(3HEAD)

limits.h(3HEAD)

locale(3HEAD)

locale.h(3HEAD)

math(3HEAD)

math.h(3HEAD)

mman(3HEAD)

mman.h(3HEAD)

monetary(3HEAD)

monetary.h(3HEAD)

mqueue(3HEAD)

mqueue.h(3HEAD)

msg(3HEAD)

msg.h(3HEAD)

ndbm(3HEAD)

ndbm.h(3HEAD)

netdb(3HEAD)

netdb.h(3HEAD)

nl_types(3HEAD)

nl_types.h(3HEAD)

paths(3HEAD)

paths.h(3HEAD)

poll(3HEAD)

poll.h(3HEAD)

pthread(3HEAD)

pthread.h(3HEAD)

pwd(3HEAD)

pwd.h(3HEAD)

regex(3HEAD)

regex.h(3HEAD)

resource(3HEAD)

resource.h(3HEAD)

sched(3HEAD)

sched.h(3HEAD)

search(3HEAD)

search.h(3HEAD)

select(3HEAD)

select.h(3HEAD)

sem(3HEAD)

semaphore(3HEAD)

semaphore.h(3HEAD)

sem.h(3HEAD)

setjmp(3HEAD)

setjmp.h(3HEAD)

shm(3HEAD)

shm.h(3HEAD)

siginfo(3HEAD)

siginfo.h(3HEAD)

signal(3HEAD)

signal.h(3HEAD)

SMHBA_GetAdapterAttributes(3LIB)

SMHBA_GetAdapterPortAttributes(3LIB)

SMHBA_GetBindingCapability(3LIB)

SMHBA_GetBindingSupport(3LIB)

SMHBA_GetDiscoveredPortAttributes(3LIB)

SMHBA_GetFCPhyAttributes(3LIB)

SMHBA_GetLUNStatistics(3LIB)

SMHBA_GetNumberofPorts(3LIB)

SMHBA_GetPersistentBinding(3LIB)

SMHBA_GetPhyStatistics(3LIB)

SMHBA_GetPortAttributesByWWN(3LIB)

SMHBA_GetPortType(3LIB)

SMHBA_GetProtocolStatistics(3LIB)

SMHBA_GetSASPhyAttributes(3LIB)

SMHBA_GetTargetMapping(3LIB)

SMHBA_GetVendorLibraryAttributes(3LIB)

SMHBA_GetVersion(3LIB)

SMHBA_GetWrapperLibraryAttributes(3LIB)

SMHBA_RegisterForAdapterAddEvents(3LIB)

SMHBA_RegisterForAdapterEvents(3LIB)

SMHBA_RegisterForAdapterPhyStatEvents(3LIB)

SMHBA_RegisterForAdapterPortEvents(3LIB)

SMHBA_RegisterForAdapterPortStatEvents(3LIB)

SMHBA_RegisterForTargetEvents(3LIB)

SMHBA_RegisterLibrary(3LIB)

SMHBA_RemoveAllPersistentBindings(3LIB)

SMHBA_RemovePersistentBinding(3LIB)

SMHBA_ScsiInquiry(3LIB)

SMHBA_ScsiReadCapacity(3LIB)

SMHBA_ScsiReportLuns(3LIB)

SMHBA_SendECHO(3LIB)

SMHBA_SendSMPPassThru(3LIB)

SMHBA_SendTEST(3LIB)

SMHBA_SetBindingSupport(3LIB)

SMHBA_SetPersistentBinding(3LIB)

socket(3HEAD)

socket.h(3HEAD)

spawn(3HEAD)

spawn.h(3HEAD)

stat(3HEAD)

stat.h(3HEAD)

statvfs(3HEAD)

statvfs.h(3HEAD)

stdbool(3HEAD)

stdbool.h(3HEAD)

stddef(3HEAD)

stddef.h(3HEAD)

stdint(3HEAD)

stdint.h(3HEAD)

stdio(3HEAD)

stdio.h(3HEAD)

stdlib(3HEAD)

stdlib.h(3HEAD)

string(3HEAD)

string.h(3HEAD)

strings(3HEAD)

strings.h(3HEAD)

stropts(3HEAD)

stropts.h(3HEAD)

syslog(3HEAD)

syslog.h(3HEAD)

tar(3HEAD)

tar.h(3HEAD)

tcp(3HEAD)

tcp.h(3HEAD)

termios(3HEAD)

termios.h(3HEAD)

tgmath(3HEAD)

tgmath.h(3HEAD)

time(3HEAD)

timeb(3HEAD)

timeb.h(3HEAD)

time.h(3HEAD)

times(3HEAD)

times.h(3HEAD)

types32(3HEAD)

types32.h(3HEAD)

types(3HEAD)

types.h(3HEAD)

ucontext(3HEAD)

ucontext.h(3HEAD)

uio(3HEAD)

uio.h(3HEAD)

ulimit(3HEAD)

ulimit.h(3HEAD)

un(3HEAD)

un.h(3HEAD)

unistd(3HEAD)

unistd.h(3HEAD)

utime(3HEAD)

utime.h(3HEAD)

utmpx(3HEAD)

utmpx.h(3HEAD)

utsname(3HEAD)

utsname.h(3HEAD)

values(3HEAD)

values.h(3HEAD)

wait(3HEAD)

wait.h(3HEAD)

wchar(3HEAD)

wchar.h(3HEAD)

wctype(3HEAD)

wctype.h(3HEAD)

wordexp(3HEAD)

wordexp.h(3HEAD)

libm

- C math library

Synopsis

c99 [ flag... ] file... -lm [ library... ] 

Description

Functions in this library provide common elementary mathematical functions and floating point environment routines defined by System V, ANSI C, POSIX, and so on. See standards(5). Additional functions in this library provide extended support for handling floating point exceptions.

INTERFACES

The shared object libm.so.2 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

acos
acosf
acosh
acoshf
acoshl
acosl
asin
asinf
asinh
asinhf
asinhl
asinl
atan
atan2
atan2f
atan2l
atanf
atanh
atanhf
atanhl
atanl
cabs
cabsf
cabsl
cacos
cacosf
cacosh
cacoshf
cacoshl
cacosl
carg
cargf
cargl
casin
casinf
casinh
casinhf
casinhl
casinl
catan
catanf
catanh
catanhf
catanhl
catanl
cbrt
cbrtf
cbrtl
ccos
ccosf
ccosh
ccoshf
ccoshl
ccosl
ceil
ceilf
ceill
cexp
cexpf
cexpl
cimag
cimagf
cimagl
clog
clogf
clogl
conj
conjf
conjl
copysign
copysignf
copysignl
cos
cosf
cosh
coshf
coshl
cosl
cpow
cpowf
cpowl
cproj
cprojf
cprojl
creal
crealf
creall
csin
csinf
csinh
csinhf
csinhl
csinl
csqrt
csqrtf
csqrtl
ctan
ctanf
ctanh
ctanhf
ctanhl
ctanl
erf
erfc
erfcf
erfcl
erff
erfl
exp
exp2
exp2f
exp2l
expf
expl
expm1
expm1f
expm1l
fabs
fabsf
fabsl
fdim
fdimf
fdiml
feclearexcept
fegetenv
fegetexceptflag
fegetround
feholdexcept
feraiseexcept
fesetenv
fesetexceptflag
fesetround
fetestexcept
feupdateenv
fex_get_handling
fex_get_log
fex_get_log_depth
fex_getexcepthandler
fex_log_entry
fex_merge_flags
fex_set_handling
fex_set_log
fex_set_log_depth
fex_setexcepthandler
floor
floorf
floorl
fma
fmaf
fmal
fmax
fmaxf
fmaxl
fmin
fminf
fminl
fmod
fmodf
fmodl
frexp
frexpf
frexpl
gamma
gamma_r
gammaf
gammaf_r
gammal
gammal_r
hypot
hypotf
hypotl
ilogb
ilogbf
ilogbl
isnan
j0
j0f
j0l
j1
j1f
j1l
jn
jnf
jnl
ldexp
ldexpf
ldexpl
lgamma
lgamma_r
lgammaf
lgammaf_r
lgammal
lgammal_r
llrint
llrintf
llrintl
llround
llroundf
llroundl
log
log10
log10f
log10l
log1p
log1pf
log1pl
log2
log2f
log2l
logb
logbf
logbl
logf
logl
lrint
lrintf
lrintl
lround
lroundf
lroundl
matherr
modf
modff
modfl
nan
nanf
nanl
nearbyint
nearbyintf
nearbyintl
nextafter
nextafterf
nextafterl
nexttoward
nexttowardf
nexttowardl
pow
powf
powl
remainder
remainderf
remainderl
remquo
remquof
remquol
rint
rintf
rintl
round
roundf
roundl
scalb
scalbf
scalbl
scalbln
scalblnf
scalblnl
scalbn
scalbnf
scalbnl
signgam
signgamf
signgaml
significand
significandf
significandl
sin
sincos
sincosf
sincosl
sinf
sinh
sinhf
sinhl
sinl
sqrt
sqrtf
sqrtl
tan
tanf
tanh
tanhf
tanhl
tanl
tgamma
tgammaf
tgammal
trunc
truncf
truncl
y0
y0f
y0l
y1
y1f
y1l
yn
ynf
ynl

The following interfaces are unique to the x86 and x64 versions of this library:

fegetprec
fesetprec

ACCURACY

ISO/IEC 9899:1999, also known as C99, specifies the functions listed in the following tables and states that the accuracy of these functions is “implementation-defined”. The information below characterizes the accuracy of these functions as implemented in libm.so.2. For each function, the tables provide an upper bound on the largest error possible for any argument and the largest error actually observed among a large sample of arguments. Errors are expressed in “units in the last place”, or ulps, relative to the exact function value for each argument (regarding the argument as exact). Ulps depend on the precision of the floating point format: if y is the exact function value, x and x' are adjacent floating point numbers such that x < y < x', and x'' is the computed function value, then provided x, x', and x'' all lie in the same binade, the error in x'' is |y - x''| / |x - x'| ulps. In particular, when the error is less than one ulp, the computed value is one of the two floating point numbers adjacent to the exact value.

The bounds and observed errors listed below apply only in the default floating point modes. Specifically, on SPARC, these bounds assume the rounding direction is round-to-nearest and non-standard mode is disabled. On x86, the bounds assume the rounding direction is round-to-nearest and the rounding precision is round-to-64-bits. Moreover, on x86, floating point function values are returned in a floating point register in extended double precision format, but the bounds below assume that the result value is then stored to memory in the format corresponding to the function's type. On x64, the bounds assume the rounding direction in both the x87 floating point control word and the MXCSR is round-to-nearest, the rounding precision in the x87 control word is round-to-64-bits, and the FTZ and DAZ modes are disabled.

The error bounds listed below are believed to be correct, but smaller bounds might be proved later. The observed errors are the largest ones currently known, but larger errors might be discovered later. Numbers in the notes column refer to the notes following the tables.

Real Functions

Single precision real functions (SPARC, x86, and x64)
error bound
largest error
function
(ulps)
observed (ulps)
notes
acosf
1.0
< 1
acoshf
1.0
< 1
asinf
1.0
< 1
asinhf
1.0
< 1
atanf
1.0
< 1
atan2f
1.0
< 1
atanhf
1.0
< 1
cbrtf
1.0
< 1
cosf
1.0
< 1
coshf
1.0
< 1
erff
1.0
< 1
erfcf
1.0
< 1
expf
1.0
< 1
exp2f
1.0
< 1
expm1f
1.0
< 1
hypotf
1.0
< 1
lgammaf
1.0
< 1
logf
1.0
< 1
log10f
1.0
< 1
log1pf
1.0
< 1
log2f
1.0
< 1
powf
1.0
< 1
sinf
1.0
< 1
sinhf
1.0
< 1
sqrtf
0.5
0.500
[1]
tanf
1.0
< 1
tanhf
1.0
< 1
tgammaf
1.0
< 1
Double precision real functions (SPARC and x64)
error bound
largest error
function
(ulps)
observed (ulps)
notes
acos
1.0
< 1
acosh
4.0
1.878
asin
1.0
< 1
asinh
7.0
1.653
atan
1.0
<1
atan2
2.5
1.475
atanh
4.0
1.960
cbrt
1.0
< 1
cos
1.0
< 1
cosh
3.0
1.168
erf
4.0
0.959
erfc
6.0
2.816
exp
1.0
< 1
exp2
2.0
1.050
expm1
1.0
< 1
hypot
1.0
< 1
lgamma
61.5
5.629
[2]
log
1.0
< 1
log10
3.5
1.592
log1p
1.0
< 1
log2
1.0
< 1
pow
1.0
< 1
sin
1.0
< 1
sinh
4.0
2.078
sqrt
0.5
0.500
[1]
tan
1.0
< 1
tanh
3.5
2.136
tgamma
1.0
< 1
Double precision real functions (x86)
error bound
largest error
function
(ulps)
observed (ulps)
notes
acos
1.0
< 1
acosh
4.0
1.694
asin
1.0
< 1
asinh
7.0
1.493
atan
1.0
< 1
atan2
1.0
< 1
atanh
4.0
1.445
cbrt
1.0
< 1
cos
1.0
< 1
cosh
3.0
1.001
erf
4.0
0.932
erfc
6.0
2.728
exp
1.0
< 1
exp2
1.0
< 1
expm1
1.0
< 1
hypot
1.0
< 1
lgamma
61.5
2.654
[2]
log
1.0
< 1
log10
1.0
< 1
log1p
1.0
< 1
log2
1.0
< 1
pow
1.0
< 1
sin
1.0
< 1
sinh
4.0
1.458
sqrt
0.5003
0.500
[1]
tan
1.0
< 1
tanh
3.5
1.592
tgamma
1.0
< 1
Quadruple precision real functions (SPARC)
error bound
largest error
function
(ulps)
observed (ulps)
notes
acosl
3.5
1.771
acoshl
8.0
1.275
asinl
4.0
2.007
asinhl
9.0
1.823
atanl
1.0
< 1
atan2l
2.5
1.102
atanhl
4.0
1.970
cbrtl
1.0
< 1
cosl
1.0
< 1
coshl
3.5
0.985
erfl
2.0
0.779
erfcl
68.5
13.923
expl
1.0
< 1
exp2l
2.0
0.714
expm1l
2.0
1.020
hypotl
1.0
< 1
lgammal
18.5
2.916
[2]
logl
1.0
< 1
log10l
3.5
1.156
log1pl
2.0
1.216
log2l
3.5
1.675
powl
1.0
< 1
sinl
1.0
< 1
sinhl
4.5
1.589
sqrtl
0.5
0.500
[1]
tanl
4.5
2.380
tanhl
4.5
1.692
tgammal
1.0
< 1
Extended precision real functions (x86 and x64)
error bound
largest error
function
(ulps)
observed (ulps)
notes
acosl
3.0
1.868
acoshl
8.0
2.352
asinl
3.0
1.716
asinhl
9.0
2.346
atanl
1.0
< 1
atan2l
1.0
< 1
atanhl
4.0
2.438
cbrtl
1.0
< 1
cosl
1.0
< 1
coshl
3.5
1.288
erfl
1.0
< 1
erfcl
78.5
13.407
expl
3.5
1.291
exp2l
1.5
0.807
expm1l
4.0
1.936
hypotl
3.5
2.087
lgammal
22.5
4.197
[2]
logl
2.0
0.881
log10l
2.0
1.284
log1pl
5.0
2.370
log2l
1.0
< 1
powl
32770.0
4478.132
sinl
1.0
< 1
sinhl
4.5
2.356
sqrtl
0.5
0.500
[1]
tanl
4.5
2.366
tanhl
4.5
2.417
tgammal
1.0
< 1
Notes:
[1]
On SPARC and x64, sqrtf, sqrt, and sqrtl are correctly rounded in accordance with IEEE 754. On x86, sqrtl is correctly rounded, sqrtf is correctly rounded provided the result is narrowed to single precision as discussed above, but sqrt might not be correctly rounded due to “double rounding”: when the intermediate value computed to extended precision lies exactly halfway between two representable numbers in double precision, the result of rounding the intermediate value to double precision is determined by the round-ties-to-even rule. If this rule causes the second rounding to round in the same direction as the first, the net rounding error can exceed 0.5 ulps. (The error is bounded instead by 0.5*(1 + 2^-11) ulps.)
[2]

Error bounds for lgamma and lgammal apply only for positive arguments.

Complex functions

The real-valued complex functions cabsf, cabs, cabsl, cargf, carg, and cargl are equivalent to the real functions hypotf, hypot, hypotl, atan2f, atan2, and atan2l, respectively. The error bounds and observed errors given above for the latter functions also apply to the former.

The complex functions listed below are complex-valued. For each function, the error bound shown applies separately to both the real and imaginary parts of the result. (For example, both the real and imaginary parts of cacosf(z) are accurate to within 1 ulp regardless of their magnitudes.) Similarly, the largest observed error shown is the largest error found in either the real or the imaginary part of the result.

Single precision complex functions (SPARC and x64)
error bound
largest error
function
(ulps)
observed (ulps)
notes
cacosf, cacoshf
1
< 1
[1]
casinf, casinhf
1
< 1
catanf, catanhf
6
< 1
ccosf, ccoshf
10
2.012
cexpf
3
2.239
clogf
3
< 1
cpowf
< 1
[2]
csinf, csinhf
10
2.009
csqrtf
4
< 1
ctanf, ctanhf
13
6.987
Single precision complex functions (x86)
error bound
largest error
function
(ulps)
observed (ulps)
notes
cacosf, cacoshf
1
< 1
[1]
casinf, casinhf
1
< 1
catanf, catanhf
6
< 1
ccosf, ccoshf
10
1.984
cexpf
3
1.984
clogf
3
< 1
cpowf
< 1
[2]
csinf, csinhf
10
1.973
csqrtf
4
< 1
ctanf, ctanhf
13
4.657
Double precision complex functions (SPARC and x64)
error bound
largest error
function
(ulps)
observed (ulps)
notes
cacos, cacosh
9
3.831
[1]
casin, casinh
9
3.732
catan, catanh
6
4.179
ccos, ccosh
10
3.832
cexp
3
2.255
clog
3
2.870
cpow
-
-
[2]
csin, csinh
10
3.722
csqrt
4
3.204
ctan, ctanh
13
7.143
Double precision complex functions (x86)
error bound
largest error
function
(ulps)
observed (ulps)
notes
cacos, cacosh
9
3.624
[1]
casin, casinh
9
3.624
catan, catanh
6
2.500
ccos, ccosh
10
2.929
cexp
3
2.147
clog
3
1.927
cpow
-
-
[2]
csin, csinh
10
2.918
csqrt
4
1.914
ctan, ctanh
13
4.630
Quadruple precision complex functions (SPARC)
error bound
largest error
function
(ulps)
observed (ulps)
notes
cacosl, cacoshl
9
3
[1]
casinl, casinhl
9
3
catanl, catanhl
6
3
ccosl, ccoshl
10
3
cexpl
3
2
clogl
3
2
cpowl
-
-
[2]
csinl, csinhl
10
3
csqrtl
4
3
ctanl, ctanhl
13
5
Extended precision complex functions (x86 and x64)
error bound
largest error
function
(ulps)
observed (ulps)
notes
cacosl, cacoshl
9
2
[1]
casinl, casinhl
9
2
catanl, catanhl
6
2
ccosl, ccoshl
10
3
cexpl
3
2.699
clogl
3
1
cpowl
-
-
[2]
csinl, csinhl
10
3
csqrtl
4
1.452
ctanl, ctanhl
13
5
Notes:
[1]
The complex hyperbolic trigonometric functions are equivalent by symmetries to their circular trigonometric counterparts. Because the implementations of these functions exploit these symmetries, corresponding functions have the same error bounds and observed errors.
[2]

For large arguments, the results computed by cpowf, cpow, and cpowl can have unbounded relative error. It might be possible to give error bounds for specific domains, but no such bounds are currently available. The observed errors shown are for the domain {(z,w) : max(|Re z|, |Im z|, |Re w|, |Im w|) <= 1}.

Files

/lib/libm.so.2

shared object

/lib/64/libm.so.2

64-bit shared object

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/math
MT-Level
Safe with exceptions

As described on the lgamma(3M) manual page, gamma() and lgamma() and their float and long double counterparts are Unsafe. All other functions in libm.so.2 are MT-Safe.

See Also

Intro(3), lgamma(3M), math.h(3HEAD), attributes(5), standards(5)