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