|
|
researchv10 Dan Cross
.TH EXP 3M .CT 2 math .SH NAME exp, log, log10, pow, sqrt \(mi exponential, logarithm, power, square root .SH SYNOPSIS .nf .B #include <math.h> .PP .B double exp(x) .B double x; .PP .B double log(x) .B double x; .PP .B double log10(x) .B double x; .PP .B double pow(x, y) .B double x, y; .PP .B double sqrt(x) .B double x; .fi .SH DESCRIPTION .I Exp returns the exponential function of .I x. .PP .I Log returns the natural logarithm of .IR x ; .I log10 returns the base 10 logarithm. .PP .I Pow returns .I x\u\s8y\s10\d. .PP .I Sqrt returns the square root of .I x. .SH SEE ALSO .IR hypot (3), .IR sinh (3), .IR intro (2) .SH DIAGNOSTICS .I Exp and .I pow return a huge value when the correct value would overflow; .I errno is set to .BR ERANGE . .I Pow returns 0 and sets .I errno to .B EDOM when the second argument is negative and non-integral and when both arguments are 0. .PP .I Log returns a huge negative value when .I x is zero or negative; .I errno is set to .BR EDOM . .PP .I Sqrt returns 0 when .I x is negative; .I errno is set to .BR EDOM .
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.