|
|
1.1 ! root 1: .TH EXP 3M ! 2: .CT 2 math ! 3: .SH NAME ! 4: exp, log, log10, pow, sqrt \(mi exponential, logarithm, power, square root ! 5: .SH SYNOPSIS ! 6: .nf ! 7: .B #include <math.h> ! 8: .PP ! 9: .B double exp(x) ! 10: .B double x; ! 11: .PP ! 12: .B double log(x) ! 13: .B double x; ! 14: .PP ! 15: .B double log10(x) ! 16: .B double x; ! 17: .PP ! 18: .B double pow(x, y) ! 19: .B double x, y; ! 20: .PP ! 21: .B double sqrt(x) ! 22: .B double x; ! 23: .fi ! 24: .SH DESCRIPTION ! 25: .I Exp ! 26: returns the exponential function of ! 27: .I x. ! 28: .PP ! 29: .I Log ! 30: returns the natural logarithm of ! 31: .IR x ; ! 32: .I log10 ! 33: returns the base 10 logarithm. ! 34: .PP ! 35: .I Pow ! 36: returns ! 37: .I x\u\s8y\s10\d. ! 38: .PP ! 39: .I Sqrt ! 40: returns the square root of ! 41: .I x. ! 42: .SH SEE ALSO ! 43: .IR hypot (3), ! 44: .IR sinh (3), ! 45: .IR intro (2) ! 46: .SH DIAGNOSTICS ! 47: .I Exp ! 48: and ! 49: .I pow ! 50: return a huge value when the correct value would ! 51: overflow; ! 52: .I errno ! 53: is set to ! 54: .BR ERANGE . ! 55: .I Pow ! 56: returns 0 and sets ! 57: .I errno ! 58: to ! 59: .B EDOM ! 60: when the second argument is negative and non-integral and ! 61: when ! 62: both arguments are 0. ! 63: .PP ! 64: .I Log ! 65: returns a huge negative value when ! 66: .I x ! 67: is zero or negative; ! 68: .I errno ! 69: is set to ! 70: .BR EDOM . ! 71: .PP ! 72: .I Sqrt ! 73: returns 0 when ! 74: .I x ! 75: is negative; ! 76: .I errno ! 77: is set to ! 78: .BR EDOM .
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.